diff --git a/quickstep/res/values-night/colors.xml b/quickstep/res/values-night/colors.xml index 6474c48460..8d03ce6f96 100644 --- a/quickstep/res/values-night/colors.xml +++ b/quickstep/res/values-night/colors.xml @@ -26,4 +26,6 @@ ?androidprv:attr/colorAccentSecondaryVariant + ?androidprv:attr/materialColorPrimaryFixedDim + ?androidprv:attr/materialColorOnPrimaryFixed \ No newline at end of file diff --git a/quickstep/res/values/colors.xml b/quickstep/res/values/colors.xml index c6156e65a0..63f192c099 100644 --- a/quickstep/res/values/colors.xml +++ b/quickstep/res/values/colors.xml @@ -86,4 +86,6 @@ ?androidprv:attr/colorAccentPrimaryVariant + ?androidprv:attr/materialColorPrimaryFixedDim + ?androidprv:attr/materialColorOnPrimaryFixed \ No newline at end of file diff --git a/res/color-night-v31/all_apps_tab_background_selected.xml b/res/color-night-v31/all_apps_tab_background_selected.xml index b7c9ff64f2..b35a4b748e 100644 --- a/res/color-night-v31/all_apps_tab_background_selected.xml +++ b/res/color-night-v31/all_apps_tab_background_selected.xml @@ -14,5 +14,5 @@ limitations under the License. --> - + \ No newline at end of file diff --git a/res/color-night-v31/all_apps_tab_text.xml b/res/color-night-v31/all_apps_tab_text.xml index 54b95aee8d..ae46169f0e 100644 --- a/res/color-night-v31/all_apps_tab_text.xml +++ b/res/color-night-v31/all_apps_tab_text.xml @@ -14,6 +14,6 @@ limitations under the License. --> - - + + \ No newline at end of file diff --git a/res/color-night-v31/all_apps_tabs_background.xml b/res/color-night-v31/all_apps_tabs_background.xml index 9213274d5c..671500fc93 100644 --- a/res/color-night-v31/all_apps_tabs_background.xml +++ b/res/color-night-v31/all_apps_tabs_background.xml @@ -14,5 +14,7 @@ limitations under the License. --> - + \ No newline at end of file diff --git a/res/color-night/all_apps_tab_background_selected.xml b/res/color-night/all_apps_tab_background_selected.xml index b22bc8b673..d1bc5f7deb 100644 --- a/res/color-night/all_apps_tab_background_selected.xml +++ b/res/color-night/all_apps_tab_background_selected.xml @@ -14,5 +14,5 @@ limitations under the License. --> - + \ No newline at end of file diff --git a/res/color-night/all_apps_tab_text.xml b/res/color-night/all_apps_tab_text.xml index 183af01f42..6a591b0658 100644 --- a/res/color-night/all_apps_tab_text.xml +++ b/res/color-night/all_apps_tab_text.xml @@ -14,6 +14,6 @@ limitations under the License. --> - - + + \ No newline at end of file diff --git a/res/color-night/all_apps_tabs_background.xml b/res/color-night/all_apps_tabs_background.xml new file mode 100644 index 0000000000..3f7d53589d --- /dev/null +++ b/res/color-night/all_apps_tabs_background.xml @@ -0,0 +1,18 @@ + + + + + \ No newline at end of file diff --git a/res/color-v31/all_apps_tab_background_selected.xml b/res/color-v31/all_apps_tab_background_selected.xml index dac8fa2994..4160ac8630 100644 --- a/res/color-v31/all_apps_tab_background_selected.xml +++ b/res/color-v31/all_apps_tab_background_selected.xml @@ -14,5 +14,5 @@ limitations under the License. --> - + \ No newline at end of file diff --git a/res/color-v31/all_apps_tab_text.xml b/res/color-v31/all_apps_tab_text.xml index c3520a7ab5..d254ee1a5d 100644 --- a/res/color-v31/all_apps_tab_text.xml +++ b/res/color-v31/all_apps_tab_text.xml @@ -14,6 +14,6 @@ limitations under the License. --> - - + + \ No newline at end of file diff --git a/res/color-v31/all_apps_tabs_background.xml b/res/color-v31/all_apps_tabs_background.xml index 30757b0b3c..6c777cd6b6 100644 --- a/res/color-v31/all_apps_tabs_background.xml +++ b/res/color-v31/all_apps_tabs_background.xml @@ -14,5 +14,5 @@ limitations under the License. --> - + \ No newline at end of file diff --git a/res/color/all_apps_tab_background_selected.xml b/res/color/all_apps_tab_background_selected.xml index 5cb9bd8928..0fc821fd2d 100644 --- a/res/color/all_apps_tab_background_selected.xml +++ b/res/color/all_apps_tab_background_selected.xml @@ -14,5 +14,5 @@ limitations under the License. --> - + \ No newline at end of file diff --git a/res/color/all_apps_tab_text.xml b/res/color/all_apps_tab_text.xml index dace3800cd..12137fd66c 100644 --- a/res/color/all_apps_tab_text.xml +++ b/res/color/all_apps_tab_text.xml @@ -14,6 +14,6 @@ limitations under the License. --> - - + + \ No newline at end of file diff --git a/res/color/all_apps_tabs_background.xml b/res/color/all_apps_tabs_background.xml index a4b7d1f216..9083aea465 100644 --- a/res/color/all_apps_tabs_background.xml +++ b/res/color/all_apps_tabs_background.xml @@ -14,5 +14,5 @@ limitations under the License. --> - + \ No newline at end of file diff --git a/res/drawable/work_mode_fab_background.xml b/res/drawable/work_mode_fab_background.xml new file mode 100644 index 0000000000..478b8875d2 --- /dev/null +++ b/res/drawable/work_mode_fab_background.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + diff --git a/res/layout/work_mode_fab.xml b/res/layout/work_mode_fab.xml index c116c12bad..32e3b77332 100644 --- a/res/layout/work_mode_fab.xml +++ b/res/layout/work_mode_fab.xml @@ -21,7 +21,7 @@ android:layout_width="wrap_content" android:minHeight="@dimen/work_fab_height" android:gravity="center_vertical" - android:background="@drawable/work_apps_toggle_background" + android:background="@drawable/work_mode_fab_background" android:forceHasOverlappingRendering="false" android:contentDescription="@string/work_apps_pause_btn_text" android:animateLayoutChanges="true"> @@ -31,12 +31,13 @@ android:layout_height="@dimen/work_fab_icon_size" android:importantForAccessibility="no" android:src="@drawable/ic_corp_off" + android:tint="@color/work_fab_icon_color" android:scaleType="center"/> @android:color/system_neutral2_700 + + @android:color/system_accent1_200 + + @android:color/system_accent1_900 \ No newline at end of file diff --git a/res/values-v31/colors.xml b/res/values-v31/colors.xml index ba5adfdc42..4ffff57c99 100644 --- a/res/values-v31/colors.xml +++ b/res/values-v31/colors.xml @@ -97,4 +97,9 @@ @android:color/system_neutral2_700 @android:color/system_neutral2_200 + + + @android:color/system_accent1_200 + + @android:color/system_accent1_900 diff --git a/res/values/colors.xml b/res/values/colors.xml index af6b3e515c..ad7a10b286 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -96,6 +96,8 @@ #40484D ?android:attr/colorAccent + #A8C7FA + #041E49 #EFEDED #FAF9F8 diff --git a/src/com/android/launcher3/allapps/WorkModeSwitch.java b/src/com/android/launcher3/allapps/WorkModeSwitch.java index ca16b24fe9..663fdb9822 100644 --- a/src/com/android/launcher3/allapps/WorkModeSwitch.java +++ b/src/com/android/launcher3/allapps/WorkModeSwitch.java @@ -97,7 +97,6 @@ public class WorkModeSwitch extends LinearLayout implements Insettable, mTextView.setText(cache.workProfilePauseButton); } - mIcon.setColorFilter(mTextView.getCurrentTextColor()); getLayoutTransition().enableTransitionType(LayoutTransition.CHANGING); }