summaryrefslogtreecommitdiffstats
path: root/res/values/styles.xml
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-05-24 13:19:15 -0700
committerSunny Goyal <sunnygoyal@google.com>2017-05-24 14:34:04 -0700
commit368ae772018c12349d7bf1b27d8817e7644b08c2 (patch)
tree9163783e4105f12f41bcc3a36d43ba6f58eaa064 /res/values/styles.xml
parent94652a207ff0ae5dcfa436bcdfad3538466fca3d (diff)
downloadandroid_packages_apps_Trebuchet-368ae772018c12349d7bf1b27d8817e7644b08c2.tar.gz
android_packages_apps_Trebuchet-368ae772018c12349d7bf1b27d8817e7644b08c2.tar.bz2
android_packages_apps_Trebuchet-368ae772018c12349d7bf1b27d8817e7644b08c2.zip
Defining a dark theme for launcher
> Removing the code for LIGHT_STATUS_BAR as that will be controlled by the theme > Updating icon cache to always use transparent background for low-res, as the theme can change the bg color Change-Id: Iab64ec29cab629ee515af22ec15b95d3f40a9df5
Diffstat (limited to 'res/values/styles.xml')
-rw-r--r--res/values/styles.xml21
1 files changed, 16 insertions, 5 deletions
diff --git a/res/values/styles.xml b/res/values/styles.xml
index dd6a680c5..f75ca4eeb 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -26,10 +26,23 @@
<item name="android:windowNoTitle">true</item>
<item name="android:colorEdgeEffect">#FF757575</item>
<item name="android:keyboardLayout">@layout/all_apps_search_container</item>
+ <item name="allAppsScrimColor">#DDFFFFFF</item>
+ <item name="isPrimaryColorDark">false</item>
</style>
<style name="LauncherTheme" parent="@style/BaseLauncherTheme"></style>
+ <style name="LauncherThemeDark" parent="@style/LauncherTheme">
+ <item name="android:textColorSecondary">#FFFFFFFF</item>
+ <item name="android:textColorTertiary">#CCFFFFFF</item>
+ <item name="android:textColorHint">#A0FFFFFF</item>
+
+ <item name="android:colorControlHighlight">#A0FFFFFF</item>
+ <item name="android:colorPrimary">#FF333333</item>
+ <item name="allAppsScrimColor">#33000000</item>
+ <item name="isPrimaryColorDark">true</item>
+ </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
@@ -93,13 +106,11 @@
</style>
<!-- Theme for the popup container -->
- <style name="PopupContainer" parent="@style/LauncherTheme">
- <!-- TODO: move hardcoded colors from colors.xml to this theme and use for popup items -->
- </style>
- <style name="IconOnlySystemShortcut">
+ <!-- TODO: Add support for dark theme in shortcuts and widgets popup -->
+ <style name="IconOnlySystemShortcut" parent="@style/LauncherTheme">
<item name="android:tint">?android:attr/textColorHint</item>
</style>
- <style name="IconWithTextSystemShortcut">
+ <style name="IconWithTextSystemShortcut" parent="@style/LauncherTheme">
<item name="android:backgroundTint">?android:attr/textColorTertiary</item>
</style>