Merge "Update work tab colors and fab background color" into udc-dev am: fe3d513650
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/23331299 Change-Id: I02e6779923beabceafc829bf8caee2077f14bd08 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -26,4 +26,6 @@
|
|||||||
|
|
||||||
<!-- Turn on work apps button -->
|
<!-- Turn on work apps button -->
|
||||||
<color name="work_turn_on_stroke">?androidprv:attr/colorAccentSecondaryVariant</color>
|
<color name="work_turn_on_stroke">?androidprv:attr/colorAccentSecondaryVariant</color>
|
||||||
|
<color name="work_fab_bg_color">?androidprv:attr/materialColorPrimaryFixedDim</color>
|
||||||
|
<color name="work_fab_icon_color">?androidprv:attr/materialColorOnPrimaryFixed</color>
|
||||||
</resources>
|
</resources>
|
||||||
@@ -86,4 +86,6 @@
|
|||||||
|
|
||||||
<!-- Turn on work apps button -->
|
<!-- Turn on work apps button -->
|
||||||
<color name="work_turn_on_stroke">?androidprv:attr/colorAccentPrimaryVariant</color>
|
<color name="work_turn_on_stroke">?androidprv:attr/colorAccentPrimaryVariant</color>
|
||||||
|
<color name="work_fab_bg_color">?androidprv:attr/materialColorPrimaryFixedDim</color>
|
||||||
|
<color name="work_fab_icon_color">?androidprv:attr/materialColorOnPrimaryFixed</color>
|
||||||
</resources>
|
</resources>
|
||||||
@@ -14,5 +14,5 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:color="@android:color/system_accent2_100"/>
|
<item android:color="@android:color/system_accent1_200"/>
|
||||||
</selector>
|
</selector>
|
||||||
@@ -14,6 +14,6 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:color="@android:color/system_neutral2_700" android:state_selected="true"/>
|
<item android:color="@android:color/system_accent1_800" android:state_selected="true"/>
|
||||||
<item android:color="@android:color/system_accent2_100"/>
|
<item android:color="@android:color/system_neutral1_100"/>
|
||||||
</selector>
|
</selector>
|
||||||
@@ -14,5 +14,7 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:color="@android:color/system_neutral1_800"/>
|
<item
|
||||||
|
android:color="@android:color/system_neutral1_800"
|
||||||
|
android:lStar="22"/>
|
||||||
</selector>
|
</selector>
|
||||||
@@ -14,5 +14,5 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:color="#BFEBE3"/>
|
<item android:color="#A8C7FA"/>
|
||||||
</selector>
|
</selector>
|
||||||
@@ -14,6 +14,6 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:color="#F0F0F0" android:state_selected="true"/>
|
<item android:color="#062E6F" android:state_selected="true"/>
|
||||||
<item android:color="#464646"/>
|
<item android:color="#E3E3E3"/>
|
||||||
</selector>
|
</selector>
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2023 The Android Open Source Project
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
-->
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:color="#343535"/>
|
||||||
|
</selector>
|
||||||
@@ -14,5 +14,5 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:color="@android:color/system_accent1_100"/>
|
<item android:color="@android:color/system_accent1_600"/>
|
||||||
</selector>
|
</selector>
|
||||||
@@ -14,6 +14,6 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:color="@android:color/system_neutral1_900" android:state_selected="true"/>
|
<item android:color="@android:color/system_accent1_200" android:state_selected="true"/>
|
||||||
<item android:color="@android:color/system_neutral2_700"/>
|
<item android:color="@android:color/system_neutral1_900"/>
|
||||||
</selector>
|
</selector>
|
||||||
@@ -14,5 +14,5 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:color="@android:color/system_neutral1_500" android:lStar="97" />
|
<item android:color="@android:color/system_neutral1_100"/>
|
||||||
</selector>
|
</selector>
|
||||||
@@ -14,5 +14,5 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:color="#8DF5E3"/>
|
<item android:color="#0B57D0"/>
|
||||||
</selector>
|
</selector>
|
||||||
@@ -14,6 +14,6 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:color="#1B1B1B" android:state_selected="true"/>
|
<item android:color="#FFFFFF" android:state_selected="true"/>
|
||||||
<item android:color="#464646"/>
|
<item android:color="#1F1F1F"/>
|
||||||
</selector>
|
</selector>
|
||||||
@@ -14,5 +14,5 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:color="#F6F6F6"/>
|
<item android:color="#E3E3E3"/>
|
||||||
</selector>
|
</selector>
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2023 The Android Open Source Project
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
-->
|
||||||
|
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:color="@color/accent_ripple_color">
|
||||||
|
<item>
|
||||||
|
<shape android:shape="rectangle">
|
||||||
|
<corners android:radius="@dimen/work_fab_radius" />
|
||||||
|
<solid android:color="@color/work_fab_bg_color" />
|
||||||
|
<padding
|
||||||
|
android:left="@dimen/work_profile_footer_padding"
|
||||||
|
android:right="@dimen/work_profile_footer_padding" />
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
</ripple>
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:minHeight="@dimen/work_fab_height"
|
android:minHeight="@dimen/work_fab_height"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:background="@drawable/work_apps_toggle_background"
|
android:background="@drawable/work_mode_fab_background"
|
||||||
android:forceHasOverlappingRendering="false"
|
android:forceHasOverlappingRendering="false"
|
||||||
android:contentDescription="@string/work_apps_pause_btn_text"
|
android:contentDescription="@string/work_apps_pause_btn_text"
|
||||||
android:animateLayoutChanges="true">
|
android:animateLayoutChanges="true">
|
||||||
@@ -31,12 +31,13 @@
|
|||||||
android:layout_height="@dimen/work_fab_icon_size"
|
android:layout_height="@dimen/work_fab_icon_size"
|
||||||
android:importantForAccessibility="no"
|
android:importantForAccessibility="no"
|
||||||
android:src="@drawable/ic_corp_off"
|
android:src="@drawable/ic_corp_off"
|
||||||
|
android:tint="@color/work_fab_icon_color"
|
||||||
android:scaleType="center"/>
|
android:scaleType="center"/>
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/pause_text"
|
android:id="@+id/pause_text"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textColor="@color/all_apps_tab_text"
|
android:textColor="@color/work_fab_icon_color"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
android:includeFontPadding="false"
|
android:includeFontPadding="false"
|
||||||
android:textDirection="locale"
|
android:textDirection="locale"
|
||||||
|
|||||||
@@ -47,4 +47,8 @@
|
|||||||
<color name="widget_picker_collapse_handle_color_dark">
|
<color name="widget_picker_collapse_handle_color_dark">
|
||||||
@android:color/system_neutral2_700</color>
|
@android:color/system_neutral2_700</color>
|
||||||
|
|
||||||
|
<color name="work_fab_bg_color">
|
||||||
|
@android:color/system_accent1_200</color>
|
||||||
|
<color name="work_fab_icon_color">
|
||||||
|
@android:color/system_accent1_900</color>
|
||||||
</resources>
|
</resources>
|
||||||
@@ -97,4 +97,9 @@
|
|||||||
@android:color/system_neutral2_700</color>
|
@android:color/system_neutral2_700</color>
|
||||||
<color name="widget_picker_collapse_handle_color_light">
|
<color name="widget_picker_collapse_handle_color_light">
|
||||||
@android:color/system_neutral2_200</color>
|
@android:color/system_neutral2_200</color>
|
||||||
|
|
||||||
|
<color name="work_fab_bg_color">
|
||||||
|
@android:color/system_accent1_200</color>
|
||||||
|
<color name="work_fab_icon_color">
|
||||||
|
@android:color/system_accent1_900</color>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -96,6 +96,8 @@
|
|||||||
<color name="preload_icon_background_color_dark">#40484D</color>
|
<color name="preload_icon_background_color_dark">#40484D</color>
|
||||||
|
|
||||||
<color name="work_turn_on_stroke">?android:attr/colorAccent</color>
|
<color name="work_turn_on_stroke">?android:attr/colorAccent</color>
|
||||||
|
<color name="work_fab_bg_color">#A8C7FA</color>
|
||||||
|
<color name="work_fab_icon_color">#041E49</color>
|
||||||
|
|
||||||
<color name="widget_picker_primary_surface_color_light">#EFEDED</color>
|
<color name="widget_picker_primary_surface_color_light">#EFEDED</color>
|
||||||
<color name="widget_picker_secondary_surface_color_light">#FAF9F8</color>
|
<color name="widget_picker_secondary_surface_color_light">#FAF9F8</color>
|
||||||
|
|||||||
@@ -97,7 +97,6 @@ public class WorkModeSwitch extends LinearLayout implements Insettable,
|
|||||||
mTextView.setText(cache.workProfilePauseButton);
|
mTextView.setText(cache.workProfilePauseButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
mIcon.setColorFilter(mTextView.getCurrentTextColor());
|
|
||||||
getLayoutTransition().enableTransitionType(LayoutTransition.CHANGING);
|
getLayoutTransition().enableTransitionType(LayoutTransition.CHANGING);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user