summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjrizzoli <joey@cyanogenmoditalia.it>2015-10-11 16:51:09 +0200
committerjrizzoli <joey@cyanogenmoditalia.it>2015-10-11 18:05:37 +0200
commit4006224c49f88baf4b1a2178afe890e4329c0bea (patch)
tree37ae1de19066cfbcd93de553336782535e2666d8
parent9d82b774712cabcedd90d5a9aecca9cf8eeffe1b (diff)
downloadandroid_packages_apps_Gello-4006224c49f88baf4b1a2178afe890e4329c0bea.tar.gz
android_packages_apps_Gello-4006224c49f88baf4b1a2178afe890e4329c0bea.tar.bz2
android_packages_apps_Gello-4006224c49f88baf4b1a2178afe890e4329c0bea.zip
gello: make reader/offline UI consistent
Change-Id: Ifba53555426768e710e5521119fcdfc946f73a4e Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
-rw-r--r--src/gello/res/drawable/ic_action_tabswitcher_inverted.xml12
-rw-r--r--src/gello/res/drawable/ic_suggest_history_inverted.xml15
-rw-r--r--src/res/layout/title_bar_snapshot.xml11
-rw-r--r--src/src/com/android/browser/NavTabView.java2
4 files changed, 34 insertions, 6 deletions
diff --git a/src/gello/res/drawable/ic_action_tabswitcher_inverted.xml b/src/gello/res/drawable/ic_action_tabswitcher_inverted.xml
new file mode 100644
index 00000000..3a211bd2
--- /dev/null
+++ b/src/gello/res/drawable/ic_action_tabswitcher_inverted.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+
+ <path
+ android:fillColor="@color/icon_black"
+ android:pathData="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1 .9 2 2 2h14c1.1 0 2-.9
+2-2V5c0-1.1-.9-2-2-2z" />
+</vector>
diff --git a/src/gello/res/drawable/ic_suggest_history_inverted.xml b/src/gello/res/drawable/ic_suggest_history_inverted.xml
new file mode 100644
index 00000000..ba3f9675
--- /dev/null
+++ b/src/gello/res/drawable/ic_suggest_history_inverted.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+
+ <path
+ android:fillColor="@color/icon_white"
+ android:fillAlpha=".9"
+ android:strokeAlpha=".9"
+ android:pathData="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89 .07 .14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7
+7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13
+21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54 .72 -1.21-3.5-2.08V8H12z" />
+</vector>
diff --git a/src/res/layout/title_bar_snapshot.xml b/src/res/layout/title_bar_snapshot.xml
index 6349a81b..704c0d8c 100644
--- a/src/res/layout/title_bar_snapshot.xml
+++ b/src/res/layout/title_bar_snapshot.xml
@@ -18,7 +18,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:background="@android:color/white"
+ android:background="@color/icon_white"
android:orientation="horizontal" >
<ImageView
android:id="@+id/reader_icon"
@@ -72,7 +72,7 @@
style="@style/NavButton"
android:layout_width="wrap_content"
android:contentDescription="@string/accessibility_button_navscreen"
- android:src="@drawable/ic_action_tabswitcher" />
+ android:src="@drawable/ic_action_tabswitcher_inverted" />
<TextView
android:id="@+id/tab_switcher_text"
@@ -80,9 +80,10 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:clickable="false"
- android:paddingBottom="3dp"
- android:paddingEnd="2dp"
- android:textColor="#333"
+ android:paddingBottom="1dp"
+ android:paddingStart="1dp"
+ android:paddingEnd="1dp"
+ android:textColor="@color/icon_black"
android:textSize="13dp"
android:textStyle="bold" />
</FrameLayout>
diff --git a/src/src/com/android/browser/NavTabView.java b/src/src/com/android/browser/NavTabView.java
index d602aa65..ad760ac0 100644
--- a/src/src/com/android/browser/NavTabView.java
+++ b/src/src/com/android/browser/NavTabView.java
@@ -83,7 +83,7 @@ public class NavTabView extends LinearLayout {
mTitle.setText(txt);
}
if (mTab.isSnapshot()) {
- setTitleIcon(R.drawable.ic_suggest_history_normal);
+ setTitleIcon(R.drawable.ic_suggest_history_inverted);
} else if (mTab.isDistilled()) {
setTitleIcon(R.drawable.ic_deco_reader_mode_normal);
} else if (mTab.isPrivateBrowsingEnabled()) {