diff options
author | Mario Bertschler <bmario@google.com> | 2017-06-08 17:45:55 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2017-06-08 17:45:56 +0000 |
commit | 9483c6f4edf38abb35ae6185abafdb02ea0104ba (patch) | |
tree | 674aafeafceeebe2733ac8a6035f87c3e0772d87 /res/values | |
parent | 4efee85b75651d416d0d55a3bf2e9a9b2cddf4f9 (diff) | |
parent | a69369450281376cb207be554199bb4895843eb2 (diff) | |
download | android_packages_apps_Trebuchet-9483c6f4edf38abb35ae6185abafdb02ea0104ba.tar.gz android_packages_apps_Trebuchet-9483c6f4edf38abb35ae6185abafdb02ea0104ba.tar.bz2 android_packages_apps_Trebuchet-9483c6f4edf38abb35ae6185abafdb02ea0104ba.zip |
Merge "Dark color on super light wallpaper support" into ub-launcher3-dorval-polish
Diffstat (limited to 'res/values')
-rw-r--r-- | res/values/attrs.xml | 10 | ||||
-rw-r--r-- | res/values/styles.xml | 25 |
2 files changed, 30 insertions, 5 deletions
diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 1799b093e..b7189d17c 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -23,7 +23,13 @@ <attr name="popupColorPrimary" format="color" /> <attr name="popupColorSecondary" format="color" /> <attr name="popupColorTertiary" format="color" /> - <attr name="isPrimaryColorDark" format="boolean" /> + <attr name="isMainColorDark" format="boolean" /> + <attr name="isWorkspaceDarkText" format="boolean" /> + <attr name="workspaceTextColor" format="color" /> + <attr name="workspaceShadowColor" format="color" /> + <attr name="workspaceAmbientShadowColor" format="color"/> + <attr name="workspaceKeyShadowColor" format="color" /> + <attr name="workspaceStatusBarScrim" format="reference" /> <!-- BubbleTextView specific attributes. --> <declare-styleable name="BubbleTextView"> @@ -39,6 +45,8 @@ <attr name="deferShadowGeneration" format="boolean" /> <attr name="customShadows" format="boolean" /> <attr name="centerVertically" format="boolean" /> + <attr name="ambientShadowColor" format="color" /> + <attr name="keyShadowColor" format="color" /> </declare-styleable> <!-- PagedView specific attributes. These attributes are used to customize diff --git a/res/values/styles.xml b/res/values/styles.xml index 5ef044e98..dd5602914 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -30,24 +30,38 @@ <item name="popupColorPrimary">#FFF</item> <item name="popupColorSecondary">#F5F5F5</item> <!-- Gray 100 --> <item name="popupColorTertiary">#E0E0E0</item> <!-- Gray 300 --> - <item name="isPrimaryColorDark">false</item> + <item name="isMainColorDark">false</item> + <item name="isWorkspaceDarkText">false</item> + <item name="workspaceTextColor">?android:textColorPrimary</item> + <item name="workspaceShadowColor">#B0000000</item> + <item name="workspaceAmbientShadowColor">#22000000</item> + <item name="workspaceKeyShadowColor">#44000000</item> + <item name="workspaceStatusBarScrim">@drawable/workspace_bg</item> </style> <style name="LauncherTheme" parent="@style/BaseLauncherTheme"></style> + <style name="LauncherThemeDarkText" parent="@style/LauncherTheme"> + <item name="workspaceTextColor">#FF212121</item> + <item name="workspaceShadowColor">@android:color/transparent</item> + <item name="workspaceAmbientShadowColor">@android:color/transparent</item> + <item name="workspaceKeyShadowColor">@android:color/transparent</item> + <item name="isWorkspaceDarkText">true</item> + <item name="workspaceStatusBarScrim">@null</item> + </style> + <style name="LauncherThemeDark" parent="@style/LauncherTheme"> <item name="android:textColorPrimary">#FFFFFFFF</item> <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="popupColorPrimary">?android:attr/colorPrimary</item> <item name="popupColorSecondary">#424242</item> <!-- Gray 800 --> <item name="popupColorTertiary">#757575</item> <!-- Gray 600 --> - <item name="isPrimaryColorDark">true</item> + <item name="isMainColorDark">true</item> </style> <!-- @@ -55,7 +69,7 @@ Various foreground colors are overridden to be white so that they are properly visible on various wallpapers --> - <style name="HomeScreenElementTheme" parent="@style/LauncherTheme"> + <style name="HomeScreenElementTheme"> <item name="android:colorEdgeEffect">@android:color/white</item> <item name="android:textColorPrimary">@android:color/white</item> <item name="android:textColorSecondary">@android:color/white</item> @@ -110,6 +124,9 @@ <item name="customShadows">true</item> <item name="android:shadowRadius">2.0</item> <item name="android:shadowColor">#B0000000</item> + <item name="android:textColor">?attr/workspaceTextColor</item> + <item name="keyShadowColor">?attr/workspaceKeyShadowColor</item> + <item name="ambientShadowColor">?attr/workspaceAmbientShadowColor</item> </style> <!-- Theme for the popup container --> |