Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(408)

Side by Side Diff: chrome/android/java/res/layout/distilled_page_prefs_view.xml

Issue 465493002: Font Size UI for Distilled Pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit from comment Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2014 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2014 The Chromium Authors. All rights reserved.
3 3
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <org.chromium.chrome.browser.dom_distiller.DistilledPagePrefsView 8 <org.chromium.chrome.browser.dom_distiller.DistilledPagePrefsView
9 xmlns:android="http://schemas.android.com/apk/res/android" 9 xmlns:android="http://schemas.android.com/apk/res/android"
10 android:layout_width="match_parent" 10 android:layout_width="match_parent"
11 android:layout_height="wrap_content" 11 android:layout_height="wrap_content"
12 android:orientation="horizontal" 12 android:orientation="vertical"
13 android:background="@drawable/distilled_page_pref_background" 13 android:background="@drawable/distilled_page_pref_background"
14 android:padding="10dp" > 14 android:padding="10dp" >
15 15
16 <RadioButton 16 <RadioGroup
17 android:id="@+id/light_mode" 17 android:id="@+id/radio_button_group"
18 android:text="@string/light_mode" 18 android:layout_width="match_parent"
19 style="@style/DistilledPagePrefThemeButton" /> 19 android:layout_height="wrap_content"
20 android:orientation="horizontal" >
20 21
21 <RadioButton 22 <RadioButton
22 android:id="@+id/dark_mode" 23 android:id="@+id/light_mode"
23 android:text="@string/dark_mode" 24 android:text="@string/light_mode"
24 style="@style/DistilledPagePrefThemeButton" /> 25 style="@style/DistilledPagePrefThemeButton" />
25 26
26 <RadioButton 27 <RadioButton
robliao 2014/08/13 01:14:54 Fix spacing.
smaslo 2014/08/13 16:25:56 Done.
27 android:id="@+id/sepia_mode" 28 android:id="@+id/dark_mode"
28 android:text="@string/sepia_mode" 29 android:text="@string/dark_mode"
29 style="@style/DistilledPagePrefThemeButton" /> 30 style="@style/DistilledPagePrefThemeButton" />
31 <RadioButton
32 android:id="@+id/sepia_mode"
33 android:text="@string/sepia_mode"
34 style="@style/DistilledPagePrefThemeButton" />
35
36 </RadioGroup>
37 <LinearLayout
38 android:layout_width="match_parent"
39 android:layout_height="wrap_content"
40 android:orientation="horizontal"
41 android:layout_marginTop="3dp">
42
43 <TextView
44 android:id="@+id/font_size_percentage"
45 android:layout_width="wrap_content"
46 android:layout_height="match_parent"
47 android:layout_marginEnd="3dp"
48 android:layout_marginStart="3dp"
49 android:minWidth="50dp"
50 android:gravity="center"
51 android:textSize="17sp" />
52
53 <TextView
54 android:layout_width="wrap_content"
55 android:layout_height="match_parent"
56 android:gravity="center_vertical"
57 android:layout_marginStart="5dp"
58 android:textSize="13sp"
59 android:text="@string/text_size_signifier" />
60
61 <SeekBar
62 android:id="@+id/font_size"
63 android:layout_width="0dp"
64 android:layout_height="wrap_content"
65 android:layout_weight="1"
66 android:orientation="horizontal"
67 android:max="30" />
68
69 <TextView
70 android:layout_width="wrap_content"
71 android:layout_height="match_parent"
72 android:gravity="center_vertical"
73 android:layout_marginEnd="3dp"
74 android:textSize="20sp"
75 android:text="@string/text_size_signifier" />
76
77 </LinearLayout>
78
30 </org.chromium.chrome.browser.dom_distiller.DistilledPagePrefsView> 79 </org.chromium.chrome.browser.dom_distiller.DistilledPagePrefsView>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698