Merge "Fix gesture navigation tutorial colors to match SUW colors." into tm-dev am: 72ef2ed094
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17127461 Change-Id: I9c6ee8b4d6655a0e2480d92db60e0989e1ab3a2f
This commit is contained in:
@@ -16,5 +16,5 @@
|
|||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:shape="rectangle">
|
android:shape="rectangle">
|
||||||
<corners android:radius="?android:attr/dialogCornerRadius"/>
|
<corners android:radius="?android:attr/dialogCornerRadius"/>
|
||||||
<solid android:color="@color/gesture_tutorial_primary_color"/>
|
<solid android:color="?android:attr/colorAccent"/>
|
||||||
</shape>
|
</shape>
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
<shape
|
<shape
|
||||||
android:shape="rectangle">
|
android:shape="rectangle">
|
||||||
<corners android:radius="50dp"/>
|
<corners android:radius="50dp"/>
|
||||||
<solid android:color="@color/gesture_tutorial_primary_color"/>
|
<solid android:color="?android:attr/colorAccent"/>
|
||||||
</shape>
|
</shape>
|
||||||
</item>
|
</item>
|
||||||
</layer-list>
|
</layer-list>
|
||||||
@@ -17,5 +17,5 @@
|
|||||||
android:shape="rectangle">
|
android:shape="rectangle">
|
||||||
<corners android:radius="50dp"/>
|
<corners android:radius="50dp"/>
|
||||||
<solid android:color="@android:color/transparent"/>
|
<solid android:color="@android:color/transparent"/>
|
||||||
<stroke android:width="1dp" android:color="@color/gesture_tutorial_primary_color"/>
|
<stroke android:width="1dp" android:color="?android:attr/colorAccent"/>
|
||||||
</shape>
|
</shape>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:shape="oval">
|
android:shape="oval">
|
||||||
<solid android:color="@color/gesture_tutorial_primary_color" />
|
<solid android:color="?android:attr/colorAccent" />
|
||||||
<size android:width="92dp" android:height="92dp"/>
|
<size android:width="92dp" android:height="92dp"/>
|
||||||
</shape>
|
</shape>
|
||||||
@@ -85,7 +85,7 @@
|
|||||||
<path
|
<path
|
||||||
android:name="_R_G_L_0_G_D_0_P_0"
|
android:name="_R_G_L_0_G_D_0_P_0"
|
||||||
android:fillAlpha="0.25"
|
android:fillAlpha="0.25"
|
||||||
android:fillColor="@color/gesture_tutorial_primary_color"
|
android:fillColor="?android:attr/colorAccent"
|
||||||
android:fillType="nonZero"
|
android:fillType="nonZero"
|
||||||
android:pathData=" M12.5 -446 C12.5,-446 12.5,446 12.5,446 C12.5,446 -12.5,446 -12.5,446 C-12.5,446 -12.5,-446 -12.5,-446 C-12.5,-446 12.5,-446 12.5,-446c " />
|
android:pathData=" M12.5 -446 C12.5,-446 12.5,446 12.5,446 C12.5,446 -12.5,446 -12.5,446 C-12.5,446 -12.5,-446 -12.5,-446 C-12.5,-446 12.5,-446 12.5,-446c " />
|
||||||
</group>
|
</group>
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
<path
|
<path
|
||||||
android:name="_R_G_L_1_G_D_0_P_0"
|
android:name="_R_G_L_1_G_D_0_P_0"
|
||||||
android:fillAlpha="0.25"
|
android:fillAlpha="0.25"
|
||||||
android:fillColor="@color/gesture_tutorial_primary_color"
|
android:fillColor="?android:attr/colorAccent"
|
||||||
android:fillType="nonZero"
|
android:fillType="nonZero"
|
||||||
android:pathData=" M206 -12.5 C206,-12.5 206,12.5 206,12.5 C206,12.5 -206,12.5 -206,12.5 C-206,12.5 -206,-12.5 -206,-12.5 C-206,-12.5 206,-12.5 206,-12.5c " />
|
android:pathData=" M206 -12.5 C206,-12.5 206,12.5 206,12.5 C206,12.5 -206,12.5 -206,12.5 C-206,12.5 -206,-12.5 -206,-12.5 C-206,-12.5 206,-12.5 206,-12.5c " />
|
||||||
</group>
|
</group>
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
<path
|
<path
|
||||||
android:name="_R_G_L_1_G_D_0_P_0"
|
android:name="_R_G_L_1_G_D_0_P_0"
|
||||||
android:fillAlpha="0.25"
|
android:fillAlpha="0.25"
|
||||||
android:fillColor="@color/gesture_tutorial_primary_color"
|
android:fillColor="?android:attr/colorAccent"
|
||||||
android:fillType="nonZero"
|
android:fillType="nonZero"
|
||||||
android:pathData=" M206 -12.5 C206,-12.5 206,12.5 206,12.5 C206,12.5 -206,12.5 -206,12.5 C-206,12.5 -206,-12.5 -206,-12.5 C-206,-12.5 206,-12.5 206,-12.5c " />
|
android:pathData=" M206 -12.5 C206,-12.5 206,12.5 206,12.5 C206,12.5 -206,12.5 -206,12.5 C-206,12.5 -206,-12.5 -206,-12.5 C-206,-12.5 206,-12.5 206,-12.5c " />
|
||||||
</group>
|
</group>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<resources>
|
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<color name="chip_hint_foreground_color">#fff</color>
|
<color name="chip_hint_foreground_color">#fff</color>
|
||||||
<color name="chip_scrim_start_color">#39000000</color>
|
<color name="chip_scrim_start_color">#39000000</color>
|
||||||
@@ -41,8 +41,6 @@
|
|||||||
<color name="gesture_tutorial_fake_task_view_color">#6DA1FF</color> <!-- Light Blue -->
|
<color name="gesture_tutorial_fake_task_view_color">#6DA1FF</color> <!-- Light Blue -->
|
||||||
<!-- Must contrast gesture_tutorial_fake_wallpaper_color -->
|
<!-- Must contrast gesture_tutorial_fake_wallpaper_color -->
|
||||||
<color name="gesture_tutorial_fake_previous_task_view_color">#3C4043</color> <!-- Gray -->
|
<color name="gesture_tutorial_fake_previous_task_view_color">#3C4043</color> <!-- Gray -->
|
||||||
<color name="gesture_tutorial_action_button_label_color">#FF000000</color>
|
|
||||||
<color name="gesture_tutorial_primary_color">#B7F29F</color> <!-- Light Green -->
|
|
||||||
<color name="gesture_tutorial_taskbar_color">#202124</color>
|
<color name="gesture_tutorial_taskbar_color">#202124</color>
|
||||||
|
|
||||||
<!-- Mock hotseat -->
|
<!-- Mock hotseat -->
|
||||||
|
|||||||
@@ -88,7 +88,8 @@
|
|||||||
|
|
||||||
<style name="TextAppearance.GestureTutorial.Feedback.Subtext"
|
<style name="TextAppearance.GestureTutorial.Feedback.Subtext"
|
||||||
parent="TextAppearance.GestureTutorial.Feedback.Subtitle">
|
parent="TextAppearance.GestureTutorial.Feedback.Subtitle">
|
||||||
<item name="android:textColor">@color/gesture_tutorial_primary_color</item>
|
<item name="android:textSize">16sp</item>
|
||||||
|
<item name="android:textColor">?android:attr/colorAccent</item>
|
||||||
<item name="android:gravity">start</item>
|
<item name="android:gravity">start</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
@@ -100,7 +101,7 @@
|
|||||||
<style name="TextAppearance.GestureTutorial.ButtonLabel"
|
<style name="TextAppearance.GestureTutorial.ButtonLabel"
|
||||||
parent="TextAppearance.GestureTutorial.CallToAction">
|
parent="TextAppearance.GestureTutorial.CallToAction">
|
||||||
<item name="android:gravity">center</item>
|
<item name="android:gravity">center</item>
|
||||||
<item name="android:textColor">@color/gesture_tutorial_action_button_label_color</item>
|
<item name="android:textColor">?android:attr/textColorPrimaryInverse</item>
|
||||||
<item name="android:letterSpacing">0.02</item>
|
<item name="android:letterSpacing">0.02</item>
|
||||||
<item name="android:textSize">16sp</item>
|
<item name="android:textSize">16sp</item>
|
||||||
<item name="android:textAllCaps">false</item>
|
<item name="android:textAllCaps">false</item>
|
||||||
@@ -108,12 +109,12 @@
|
|||||||
|
|
||||||
<style name="TextAppearance.GestureTutorial.CancelButtonLabel"
|
<style name="TextAppearance.GestureTutorial.CancelButtonLabel"
|
||||||
parent="TextAppearance.GestureTutorial.ButtonLabel">
|
parent="TextAppearance.GestureTutorial.ButtonLabel">
|
||||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
<item name="android:textColor">?android:attr/colorAccent</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="TextAppearance.GestureTutorial.TextButtonLabel"
|
<style name="TextAppearance.GestureTutorial.TextButtonLabel"
|
||||||
parent="TextAppearance.GestureTutorial.ButtonLabel">
|
parent="TextAppearance.GestureTutorial.ButtonLabel">
|
||||||
<item name="android:textColor">@color/gesture_tutorial_primary_color</item>
|
<item name="android:textColor">?android:attr/colorAccent</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="TextAppearance.GestureTutorial.LinkText"
|
<style name="TextAppearance.GestureTutorial.LinkText"
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ abstract class TutorialController implements BackGestureAttemptCallback,
|
|||||||
|
|
||||||
private static final String TAG = "TutorialController";
|
private static final String TAG = "TutorialController";
|
||||||
|
|
||||||
private static final float FINGER_DOT_VISIBLE_ALPHA = 0.6f;
|
private static final float FINGER_DOT_VISIBLE_ALPHA = 0.7f;
|
||||||
private static final float FINGER_DOT_SMALL_SCALE = 0.7f;
|
private static final float FINGER_DOT_SMALL_SCALE = 0.7f;
|
||||||
private static final int FINGER_DOT_ANIMATION_DURATION_MILLIS = 500;
|
private static final int FINGER_DOT_ANIMATION_DURATION_MILLIS = 500;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user