mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
Fix gesture navigation tutorial colors to match SUW colors.
- Updated the gesture nav tutorial to use the system accent color for buttons and the feedback animations Fixes: 222269039 Test: built change, flashed and factory reset device Change-Id: I4e515aef0ccdab98f1d3900007f6006b1975b41b
This commit is contained in:
@@ -16,5 +16,5 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="?android:attr/dialogCornerRadius"/>
|
||||
<solid android:color="@color/gesture_tutorial_primary_color"/>
|
||||
<solid android:color="?android:attr/colorAccent"/>
|
||||
</shape>
|
||||
@@ -25,7 +25,7 @@
|
||||
<shape
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="50dp"/>
|
||||
<solid android:color="@color/gesture_tutorial_primary_color"/>
|
||||
<solid android:color="?android:attr/colorAccent"/>
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
@@ -17,5 +17,5 @@
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="50dp"/>
|
||||
<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>
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<solid android:color="@color/gesture_tutorial_primary_color" />
|
||||
<solid android:color="?android:attr/colorAccent" />
|
||||
<size android:width="92dp" android:height="92dp"/>
|
||||
</shape>
|
||||
@@ -85,7 +85,7 @@
|
||||
<path
|
||||
android:name="_R_G_L_0_G_D_0_P_0"
|
||||
android:fillAlpha="0.25"
|
||||
android:fillColor="@color/gesture_tutorial_primary_color"
|
||||
android:fillColor="?android:attr/colorAccent"
|
||||
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 " />
|
||||
</group>
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
<path
|
||||
android:name="_R_G_L_1_G_D_0_P_0"
|
||||
android:fillAlpha="0.25"
|
||||
android:fillColor="@color/gesture_tutorial_primary_color"
|
||||
android:fillColor="?android:attr/colorAccent"
|
||||
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 " />
|
||||
</group>
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
<path
|
||||
android:name="_R_G_L_1_G_D_0_P_0"
|
||||
android:fillAlpha="0.25"
|
||||
android:fillColor="@color/gesture_tutorial_primary_color"
|
||||
android:fillColor="?android:attr/colorAccent"
|
||||
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 " />
|
||||
</group>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
See the License for the specific language governing permissions and
|
||||
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_scrim_start_color">#39000000</color>
|
||||
@@ -41,8 +41,6 @@
|
||||
<color name="gesture_tutorial_fake_task_view_color">#6DA1FF</color> <!-- Light Blue -->
|
||||
<!-- Must contrast gesture_tutorial_fake_wallpaper_color -->
|
||||
<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>
|
||||
|
||||
<!-- Mock hotseat -->
|
||||
|
||||
@@ -88,7 +88,8 @@
|
||||
|
||||
<style name="TextAppearance.GestureTutorial.Feedback.Subtext"
|
||||
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>
|
||||
</style>
|
||||
|
||||
@@ -100,7 +101,7 @@
|
||||
<style name="TextAppearance.GestureTutorial.ButtonLabel"
|
||||
parent="TextAppearance.GestureTutorial.CallToAction">
|
||||
<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:textSize">16sp</item>
|
||||
<item name="android:textAllCaps">false</item>
|
||||
@@ -108,12 +109,12 @@
|
||||
|
||||
<style name="TextAppearance.GestureTutorial.CancelButtonLabel"
|
||||
parent="TextAppearance.GestureTutorial.ButtonLabel">
|
||||
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||
<item name="android:textColor">?android:attr/colorAccent</item>
|
||||
</style>
|
||||
|
||||
<style name="TextAppearance.GestureTutorial.TextButtonLabel"
|
||||
parent="TextAppearance.GestureTutorial.ButtonLabel">
|
||||
<item name="android:textColor">@color/gesture_tutorial_primary_color</item>
|
||||
<item name="android:textColor">?android:attr/colorAccent</item>
|
||||
</style>
|
||||
|
||||
<style name="TextAppearance.GestureTutorial.LinkText"
|
||||
|
||||
@@ -64,7 +64,7 @@ abstract class TutorialController implements BackGestureAttemptCallback,
|
||||
|
||||
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 int FINGER_DOT_ANIMATION_DURATION_MILLIS = 500;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user