summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonsta <konsta09@gmail.com>2015-01-27 21:08:42 +0200
committerSteve Kondik <steve@cyngn.com>2015-11-07 13:57:29 -0800
commiteee8888df58850abc99cfb563fc51992eb1fbd51 (patch)
tree4597802cb58b1d8fe2a4f149c42dab4bf36660cd
parent2a048843326dd22351474b2606916b9bcdf81258 (diff)
downloadpackages_apps_browser-eee8888df58850abc99cfb563fc51992eb1fbd51.zip
packages_apps_browser-eee8888df58850abc99cfb563fc51992eb1fbd51.tar.gz
packages_apps_browser-eee8888df58850abc99cfb563fc51992eb1fbd51.tar.bz2
Expose hardcoded colors
This will allow browser to be themeable. Change-Id: I46d7da6f017cf17bc1265011228bf711dcfd0cd2
-rw-r--r--res/drawable/browser_background_holo.xml4
-rw-r--r--res/drawable/fab_accent.xml2
-rw-r--r--res/drawable/floating_action_button.xml2
-rw-r--r--res/layout-land/nav_screen.xml2
-rw-r--r--res/layout/nav_screen.xml2
-rw-r--r--res/layout/qc_tabs_view.xml2
-rw-r--r--res/values/styles.xml4
7 files changed, 9 insertions, 9 deletions
diff --git a/res/drawable/browser_background_holo.xml b/res/drawable/browser_background_holo.xml
index 6d2d1da..6d8cea0 100644
--- a/res/drawable/browser_background_holo.xml
+++ b/res/drawable/browser_background_holo.xml
@@ -16,6 +16,6 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient android:type="linear"
android:angle="90"
- android:startColor="#fafafa"
- android:endColor="#fafafa" />
+ android:startColor="@color/white"
+ android:endColor="@color/white" />
</shape>
diff --git a/res/drawable/fab_accent.xml b/res/drawable/fab_accent.xml
index 53395c3..fabd583 100644
--- a/res/drawable/fab_accent.xml
+++ b/res/drawable/fab_accent.xml
@@ -15,5 +15,5 @@ limitations under the License.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
- <solid android:color="#4caf50" />
+ <solid android:color="@color/primary" />
</shape>
diff --git a/res/drawable/floating_action_button.xml b/res/drawable/floating_action_button.xml
index bededb5..0f313cb 100644
--- a/res/drawable/floating_action_button.xml
+++ b/res/drawable/floating_action_button.xml
@@ -18,7 +18,7 @@ limitations under the License.
android:color="@color/floating_action_button_touch_tint">
<item android:id="@android:id/mask">
<shape android:shape="oval">
- <solid android:color="#4caf50" />
+ <solid android:color="@color/primary" />
</shape>
</item>
</ripple>
diff --git a/res/layout-land/nav_screen.xml b/res/layout-land/nav_screen.xml
index fb511db..97a230a 100644
--- a/res/layout-land/nav_screen.xml
+++ b/res/layout-land/nav_screen.xml
@@ -31,7 +31,7 @@
android:layout_height="@dimen/toolbar_height"
android:layout_gravity="top"
android:gravity="right"
- android:background="#4caf50"
+ android:background="@color/primary"
android:elevation="8dp">
<ImageButton
android:id="@+id/newtab"
diff --git a/res/layout/nav_screen.xml b/res/layout/nav_screen.xml
index a72a1df..356bf19 100644
--- a/res/layout/nav_screen.xml
+++ b/res/layout/nav_screen.xml
@@ -32,7 +32,7 @@
android:layout_height="@dimen/toolbar_height"
android:layout_gravity="top"
android:gravity="right"
- android:background="#4caf50"
+ android:background="@color/primary"
android:elevation="8dp">
<ImageButton
android:id="@+id/newtab"
diff --git a/res/layout/qc_tabs_view.xml b/res/layout/qc_tabs_view.xml
index 76a4ff7..056a080 100644
--- a/res/layout/qc_tabs_view.xml
+++ b/res/layout/qc_tabs_view.xml
@@ -34,7 +34,7 @@
android:typeface="sans"
android:textSize="12sp"
android:textStyle="bold"
- android:textColor="#4caF50"
+ android:textColor="@color/primary"
android:background="@drawable/tab_nr"
/>
</RelativeLayout>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index b0167c8..7e3c30a 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -36,7 +36,7 @@
</style>
<style name="DialogWhenLarge" parent="@android:style/Theme.Material.DialogWhenLarge" >
<item name="android:windowActionBar">false</item>
- <item name="android:popupBackground">#fafafa</item>
+ <item name="android:popupBackground">@color/white</item>
</style>
<style name="BookmarkTheme" parent="@android:Theme.Material">
<item name="android:colorPrimary">@color/primary</item>
@@ -56,7 +56,7 @@
<item name="android:displayOptions"></item>
</style>
<style name="Suggestions" parent="@android:style/Widget.Material.AutoCompleteTextView">
- <item name="android:popupBackground">#fafafa</item>
+ <item name="android:popupBackground">@color/white</item>
<item name="android:dropDownVerticalOffset">0dip</item>
<item name="android:textColor">?android:attr/textColorPrimaryInverse</item>
<item name="android:textColorHint">?android:attr/textColorHintInverse</item>