diff options
author | Tony Wickham <twickham@google.com> | 2017-06-06 15:42:32 -0700 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2017-06-06 16:34:20 -0700 |
commit | 90038ebab21ce22eb2bdaf72b0dddfcaa81dcd4e (patch) | |
tree | 13fe4379cd80c8980bfb1485d49b837625c7211e /res/layout | |
parent | 561e53577b150d2f4a8d4c45931bd763f9fbd5ac (diff) | |
download | android_packages_apps_Trebuchet-90038ebab21ce22eb2bdaf72b0dddfcaa81dcd4e.tar.gz android_packages_apps_Trebuchet-90038ebab21ce22eb2bdaf72b0dddfcaa81dcd4e.tar.bz2 android_packages_apps_Trebuchet-90038ebab21ce22eb2bdaf72b0dddfcaa81dcd4e.zip |
Add support for popup dark theme
Bug: 62380473
Change-Id: Ib22e9b82841bf10b7f139638f268f0a878e3c6b9
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/deep_shortcut.xml | 5 | ||||
-rw-r--r-- | res/layout/horizontal_divider.xml | 2 | ||||
-rw-r--r-- | res/layout/notification.xml | 5 | ||||
-rw-r--r-- | res/layout/notification_footer.xml | 2 | ||||
-rw-r--r-- | res/layout/notification_main.xml | 2 | ||||
-rw-r--r-- | res/layout/system_shortcut.xml | 9 | ||||
-rw-r--r-- | res/layout/system_shortcut_icon_only.xml | 5 | ||||
-rw-r--r-- | res/layout/system_shortcut_icons.xml | 2 |
8 files changed, 18 insertions, 14 deletions
diff --git a/res/layout/deep_shortcut.xml b/res/layout/deep_shortcut.xml index 85caba4a0..4a2ad4225 100644 --- a/res/layout/deep_shortcut.xml +++ b/res/layout/deep_shortcut.xml @@ -18,7 +18,8 @@ xmlns:android="http://schemas.android.com/apk/res/android" xmlns:launcher="http://schemas.android.com/apk/res-auto" android:layout_width="@dimen/bg_popup_item_width" - android:layout_height="@dimen/bg_popup_item_height" > + android:layout_height="@dimen/bg_popup_item_height" + android:theme="@style/PopupItem" > <com.android.launcher3.shortcuts.DeepShortcutTextView style="@style/BaseIcon" @@ -50,6 +51,6 @@ android:layout_height="@dimen/popup_item_divider_height" android:layout_gravity="end|bottom" android:visibility="gone" - android:background="?android:attr/listDivider" /> + android:background="?attr/popupColorTertiary" /> </com.android.launcher3.shortcuts.DeepShortcutView> diff --git a/res/layout/horizontal_divider.xml b/res/layout/horizontal_divider.xml index 33773ebfa..167f8f5d8 100644 --- a/res/layout/horizontal_divider.xml +++ b/res/layout/horizontal_divider.xml @@ -2,4 +2,4 @@ <View xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="@dimen/popup_item_divider_height" - android:background="?android:attr/listDivider"/>
\ No newline at end of file + android:background="?attr/popupColorTertiary" />
\ No newline at end of file diff --git a/res/layout/notification.xml b/res/layout/notification.xml index a183c92f7..085dfa93c 100644 --- a/res/layout/notification.xml +++ b/res/layout/notification.xml @@ -19,6 +19,7 @@ android:id="@+id/notification_view" android:layout_width="@dimen/bg_popup_item_width" android:layout_height="wrap_content" + android:theme="@style/PopupItem" android:elevation="@dimen/deep_shortcuts_elevation"> <RelativeLayout @@ -33,7 +34,7 @@ android:layout_height="@dimen/notification_header_height" android:paddingStart="@dimen/notification_padding_start" android:paddingEnd="@dimen/notification_padding_end" - android:background="@color/popup_background_color" + android:background="?attr/popupColorPrimary" android:elevation="@dimen/notification_elevation"> <TextView android:id="@+id/notification_text" @@ -65,7 +66,7 @@ android:id="@+id/divider" android:layout_width="match_parent" android:layout_height="@dimen/popup_item_divider_height" - android:background="?android:attr/listDivider" + android:background="?attr/popupColorTertiary" android:layout_below="@id/main_view" android:visibility="gone" /> diff --git a/res/layout/notification_footer.xml b/res/layout/notification_footer.xml index ed2212be1..86280e0b6 100644 --- a/res/layout/notification_footer.xml +++ b/res/layout/notification_footer.xml @@ -22,7 +22,7 @@ android:elevation="@dimen/notification_elevation" android:clipChildren="false" android:layout_gravity="center_vertical" - android:background="@color/popup_background_color"> + android:background="?attr/popupColorPrimary"> <LinearLayout android:id="@+id/icon_row" diff --git a/res/layout/notification_main.xml b/res/layout/notification_main.xml index ce4e137f7..b2443f5d9 100644 --- a/res/layout/notification_main.xml +++ b/res/layout/notification_main.xml @@ -28,7 +28,7 @@ android:layout_height="match_parent" android:orientation="vertical" android:gravity="center_vertical" - android:background="@color/popup_background_color" + android:background="?attr/popupColorPrimary" android:paddingStart="@dimen/notification_padding_start" android:paddingEnd="@dimen/notification_main_text_padding_end"> <TextView diff --git a/res/layout/system_shortcut.xml b/res/layout/system_shortcut.xml index 6f702f62b..04f3d027d 100644 --- a/res/layout/system_shortcut.xml +++ b/res/layout/system_shortcut.xml @@ -15,11 +15,11 @@ --> <com.android.launcher3.shortcuts.DeepShortcutView - android:theme="@style/IconWithTextSystemShortcut" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:launcher="http://schemas.android.com/apk/res-auto" android:layout_width="@dimen/bg_popup_item_width" - android:layout_height="@dimen/bg_popup_item_height" > + android:layout_height="@dimen/bg_popup_item_height" + android:theme="@style/PopupItem" > <com.android.launcher3.BubbleTextView style="@style/BaseIcon" @@ -41,7 +41,8 @@ android:layout_width="@dimen/system_shortcut_icon_size" android:layout_height="@dimen/system_shortcut_icon_size" android:layout_marginStart="@dimen/system_shortcut_margin_start" - android:layout_gravity="start|center_vertical" /> + android:layout_gravity="start|center_vertical" + android:backgroundTint="?android:attr/textColorTertiary"/> <View android:id="@+id/divider" @@ -49,6 +50,6 @@ android:layout_height="@dimen/popup_item_divider_height" android:layout_gravity="end|bottom" android:visibility="gone" - android:background="?android:attr/listDivider" /> + android:background="?attr/popupColorTertiary" /> </com.android.launcher3.shortcuts.DeepShortcutView> diff --git a/res/layout/system_shortcut_icon_only.xml b/res/layout/system_shortcut_icon_only.xml index 2b58b92ee..c59cb5331 100644 --- a/res/layout/system_shortcut_icon_only.xml +++ b/res/layout/system_shortcut_icon_only.xml @@ -16,8 +16,9 @@ <ImageView xmlns:android="http://schemas.android.com/apk/res/android" - android:theme="@style/IconOnlySystemShortcut" android:layout_width="@dimen/system_shortcut_header_icon_touch_size" android:layout_height="@dimen/system_shortcut_header_icon_touch_size" android:background="?android:attr/selectableItemBackgroundBorderless" - android:padding="@dimen/system_shortcut_header_icon_padding" /> + android:tint="?android:attr/textColorHint" + android:padding="@dimen/system_shortcut_header_icon_padding" + android:theme="@style/PopupItem" /> diff --git a/res/layout/system_shortcut_icons.xml b/res/layout/system_shortcut_icons.xml index 676be8e69..db59d4962 100644 --- a/res/layout/system_shortcut_icons.xml +++ b/res/layout/system_shortcut_icons.xml @@ -21,4 +21,4 @@ android:layout_height="@dimen/system_shortcut_header_height" android:orientation="horizontal" android:gravity="end|center_vertical" - android:background="@color/popup_header_background_color" /> + android:background="?attr/popupColorSecondary" /> |