mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Mostly copied from its location in Tips. Some exceptions: - Accent color (used for the icon at the top and link text) is derived from intent extras to match the rest of SUW. If needed, we could also pass other colors this way; currently they just use default light/dark mode colors. - Currently there is no animation in the middle. Not sure if one is expected, but we can add it later if so. Bug: 184722307 Test: Manually passing arbitrary colors via adb: adb shell am start -a com.android.quickstep.action.GESTURE_ONBOARDING_ALL_SET --ei accent_color_dark_mode -2134901760 --ei accent_color_light_mode 2147418112 Change-Id: I1fb8b20b88b7485d28f06afd2b421999ad847266
128 lines
5.4 KiB
XML
128 lines
5.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2018 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.
|
|
-->
|
|
<resources>
|
|
|
|
<style name="TextAppearance.GestureTutorial"
|
|
parent="android:TextAppearance.Material.Body1" />
|
|
|
|
<style name="TextAppearance.GestureTutorial.CallToAction"
|
|
parent="android:TextAppearance.Material.Body2" />
|
|
|
|
<style name="TextAppearance.GestureTutorial.Title"
|
|
parent="TextAppearance.GestureTutorial">
|
|
<item name="android:gravity">center</item>
|
|
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
|
<item name="android:textSize">28sp</item>
|
|
</style>
|
|
|
|
<style name="TextAppearance.GestureTutorial.Subtitle"
|
|
parent="TextAppearance.GestureTutorial">
|
|
<item name="android:gravity">center</item>
|
|
<item name="android:textColor">?android:attr/textColorTertiary</item>
|
|
<item name="android:letterSpacing">0.03</item>
|
|
<item name="android:textSize">21sp</item>
|
|
</style>
|
|
|
|
<style name="TextAppearance.GestureTutorial.Feedback.Title"
|
|
parent="TextAppearance.GestureTutorial">
|
|
<item name="android:gravity">start</item>
|
|
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
|
<item name="android:fontFamily">google-sans-display</item>
|
|
<item name="android:letterSpacing">0.03</item>
|
|
<item name="android:textSize">36sp</item>
|
|
<item name="android:lineHeight">42sp</item>
|
|
</style>
|
|
|
|
<style name="TextAppearance.GestureTutorial.Dialog.Title"
|
|
parent="TextAppearance.GestureTutorial.Feedback.Title">
|
|
<item name="android:gravity">center_horizontal</item>
|
|
<item name="android:fontFamily">google-sans</item>
|
|
<item name="android:lineHeight">32sp</item>
|
|
<item name="android:textSize">24sp</item>
|
|
</style>
|
|
|
|
<style name="TextAppearance.GestureTutorial.Feedback.Subtitle"
|
|
parent="TextAppearance.GestureTutorial">
|
|
<item name="android:gravity">start</item>
|
|
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
|
<item name="android:fontFamily">google-sans-text</item>
|
|
<item name="android:letterSpacing">0.03</item>
|
|
<item name="android:textSize">18sp</item>
|
|
<item name="android:lineHeight">24sp</item>
|
|
</style>
|
|
|
|
<style name="TextAppearance.GestureTutorial.Dialog.Subtitle"
|
|
parent="TextAppearance.GestureTutorial.Feedback.Subtitle">
|
|
<item name="android:gravity">center_horizontal</item>
|
|
<item name="android:fontFamily">google-sans-text</item>
|
|
<item name="android:letterSpacing">0.025</item>
|
|
<item name="android:lineHeight">20sp</item>
|
|
<item name="android:textSize">14sp</item>
|
|
</style>
|
|
|
|
<style name="TextAppearance.GestureTutorial.Feedback.Subtext"
|
|
parent="TextAppearance.GestureTutorial.Feedback.Subtitle">
|
|
<item name="android:textSize">16sp</item>
|
|
<item name="android:textColor">#909090</item>
|
|
</style>
|
|
|
|
<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:letterSpacing">0.02</item>
|
|
<item name="android:textSize">16sp</item>
|
|
<item name="android:textAllCaps">false</item>
|
|
</style>
|
|
|
|
<style name="TextAppearance.GestureTutorial.CancelButtonLabel"
|
|
parent="TextAppearance.GestureTutorial.ButtonLabel">
|
|
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
|
</style>
|
|
|
|
<style name="TextAppearance.GestureTutorial.TextButtonLabel"
|
|
parent="TextAppearance.GestureTutorial.ButtonLabel">
|
|
<item name="android:textColor">@color/gesture_tutorial_primary_color</item>
|
|
</style>
|
|
|
|
<style name="TextAppearance.GestureTutorial.LinkText"
|
|
parent="TextAppearance.GestureTutorial.Feedback.Subtitle">
|
|
<item name="android:textSize">14sp</item>
|
|
</style>
|
|
|
|
<!--
|
|
Can be applied to views to color things like ripples and list highlights the workspace text
|
|
color.
|
|
-->
|
|
<style name="ThemeControlHighlightWorkspaceColor">
|
|
<item name="android:colorControlHighlight">?attr/workspaceTextColor</item>
|
|
</style>
|
|
|
|
<style name="OverviewActionButton"
|
|
parent="@android:style/Widget.DeviceDefault.Button.Borderless">
|
|
<item name="android:textColor">@color/overview_button</item>
|
|
<item name="android:drawableTint">@color/overview_button</item>
|
|
<item name="android:tint">?android:attr/textColorPrimary</item>
|
|
<item name="android:drawablePadding">8dp</item>
|
|
<item name="android:textAllCaps">false</item>
|
|
</style>
|
|
|
|
<!-- Icon displayed on the taskbar -->
|
|
<style name="BaseIcon.Workspace.Taskbar" >
|
|
<item name="iconDisplay">taskbar</item>
|
|
</style>
|
|
</resources> |