summaryrefslogtreecommitdiffstats
path: root/res/values/styles.xml
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-02-17 10:39:44 -0800
committerSunny Goyal <sunnygoyal@google.com>2017-02-17 11:37:30 -0800
commit9b29ca5add472b6bdebfa7936142b3aad6cbe3c5 (patch)
treecbdd86330d225c9300ac2d745e5acd82f68aca01 /res/values/styles.xml
parent519fbdb2b3c58820bb458fda52044e4c8abef596 (diff)
downloadandroid_packages_apps_Trebuchet-9b29ca5add472b6bdebfa7936142b3aad6cbe3c5.tar.gz
android_packages_apps_Trebuchet-9b29ca5add472b6bdebfa7936142b3aad6cbe3c5.tar.bz2
android_packages_apps_Trebuchet-9b29ca5add472b6bdebfa7936142b3aad6cbe3c5.zip
Defining HomeScreenElementTheme for elements which appear on top of
wallpaper > Using HomeScreenElementTheme for workspace items > Fixing view inflation where wrong layout inflater was being used Change-Id: I92e278dbfb609ad7af9c2f47351f23f03cf12049
Diffstat (limited to 'res/values/styles.xml')
-rw-r--r--res/values/styles.xml14
1 files changed, 12 insertions, 2 deletions
diff --git a/res/values/styles.xml b/res/values/styles.xml
index 8a46e839f..26ddb9c6a 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -29,6 +29,17 @@
<style name="LauncherTheme" parent="@style/BaseLauncherTheme"></style>
+ <!--
+ Theme overrides to element on homescreen, i.e., which are drawn on top on wallpaper.
+ Various foreground colors are overridden to be white so that they are properly visible on
+ various wallpapers
+ -->
+ <style name="HomeScreenElementTheme" parent="@style/LauncherTheme">
+ <item name="android:colorEdgeEffect">@android:color/white</item>
+ <item name="android:textColorPrimary">@android:color/white</item>
+ <item name="android:textColorSecondary">@android:color/white</item>
+ </style>
+
<!-- Theme for the widget container. Overridden on API 26. -->
<style name="WidgetContainerTheme" parent="@android:style/Theme.DeviceDefault.Settings">
<item name="android:colorEdgeEffect">?android:attr/textColorSecondaryInverse</item>
@@ -76,7 +87,6 @@
<!-- Icon displayed on the worksapce -->
<style name="BaseIcon.Workspace">
<item name="customShadows">true</item>
- <item name="android:textColor">@color/workspace_icon_text_color</item>
<item name="android:shadowRadius">2.0</item>
<item name="android:shadowColor">#B0000000</item>
</style>
@@ -86,7 +96,7 @@
<item name="android:drawablePadding">7.5dp</item>
<item name="android:paddingLeft">16dp</item>
<item name="android:paddingRight">16dp</item>
- <item name="android:textColor">@color/workspace_icon_text_color</item>
+ <item name="android:textColor">?android:attr/textColorPrimary</item>
<item name="android:textSize">@dimen/drop_target_text_size</item>
<item name="android:singleLine">true</item>
<item name="android:ellipsize">end</item>