From 4b0d496174c8ed3860c64477f561d46c65abd276 Mon Sep 17 00:00:00 2001 From: Fahim Date: Fri, 17 Sep 2021 18:44:29 +0600 Subject: [PATCH] 3808-P-Forcefully_enable_dark_mode issue: https://gitlab.e.foundation/e/backlog/-/issues/3808 --- res/drawable/ic_backspace.xml | 2 +- res/layout/custom_pref_dropdown_layout.xml | 2 ++ res/layout/custom_pref_layout.xml | 1 + res/layout/custom_pref_switch_layout.xml | 1 + res/layout/day_button.xml | 1 + res/layout/digital_widget.xml | 6 +++--- res/layout/timer_setup_time.xml | 1 + res/layout/world_clock_remote_list_item.xml | 13 ++++++------- res/values/colors.xml | 1 + res/values/themes.xml | 3 ++- src/com/android/deskclock/DeskClockApplication.java | 3 +++ .../alarms/dataadapter/ExpandedAlarmViewHolder.java | 5 ++--- .../deskclock/stopwatch/StopwatchCircleView.java | 3 ++- .../android/deskclock/timer/TimerCircleView.java | 3 ++- 14 files changed, 28 insertions(+), 17 deletions(-) diff --git a/res/drawable/ic_backspace.xml b/res/drawable/ic_backspace.xml index 3695893ae..ddc63841b 100644 --- a/res/drawable/ic_backspace.xml +++ b/res/drawable/ic_backspace.xml @@ -19,7 +19,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:width="@dimen/backspace_icon_size" android:height="@dimen/backspace_icon_size" - android:tint="?attr/colorControlNormal" + android:tint="@color/accent_color" android:tintMode="src_in" android:viewportHeight="24.0" android:viewportWidth="24.0"> diff --git a/res/layout/custom_pref_dropdown_layout.xml b/res/layout/custom_pref_dropdown_layout.xml index 87c95aef0..2b2663777 100644 --- a/res/layout/custom_pref_dropdown_layout.xml +++ b/res/layout/custom_pref_dropdown_layout.xml @@ -7,6 +7,7 @@ android:gravity="center_vertical" android:paddingEnd="?android:attr/scrollbarSize" android:background="@color/default_background" + android:foreground="?android:attr/selectableItemBackground" android:focusable="true" > diff --git a/res/layout/custom_pref_layout.xml b/res/layout/custom_pref_layout.xml index 3f01a718a..622523185 100644 --- a/res/layout/custom_pref_layout.xml +++ b/res/layout/custom_pref_layout.xml @@ -7,6 +7,7 @@ android:gravity="center_vertical" android:paddingEnd="?android:attr/scrollbarSize" android:background="@color/default_background" + android:foreground="?android:attr/selectableItemBackground" android:focusable="true" > \ No newline at end of file diff --git a/res/layout/digital_widget.xml b/res/layout/digital_widget.xml index 78663f143..5290d8470 100644 --- a/res/layout/digital_widget.xml +++ b/res/layout/digital_widget.xml @@ -33,7 +33,7 @@ android:format24Hour="@string/lock_screen_24_hour_format" android:includeFontPadding="false" android:singleLine="true" - android:textColor="@color/color_default_primary_text" /> + android:textColor="@color/color_default_view_on_accent" /> + android:textColor="@color/color_default_view_on_accent" /> + android:textColor="@color/color_default_view_on_accent" /> diff --git a/res/layout/timer_setup_time.xml b/res/layout/timer_setup_time.xml index e19a2edae..6213bdbde 100644 --- a/res/layout/timer_setup_time.xml +++ b/res/layout/timer_setup_time.xml @@ -47,6 +47,7 @@ android:layout_marginStart="@dimen/timer_setup_delete_margin" android:contentDescription="@string/timer_delete" android:padding="12dp" + android:foreground="?android:attr/selectableItemBackground" android:background="@android:color/transparent" android:scaleType="center" app:srcCompat="@drawable/ic_backspace" /> diff --git a/res/layout/world_clock_remote_list_item.xml b/res/layout/world_clock_remote_list_item.xml index 86e12d95f..fa6698fa7 100644 --- a/res/layout/world_clock_remote_list_item.xml +++ b/res/layout/world_clock_remote_list_item.xml @@ -19,7 +19,6 @@ android:id="@+id/widget_item" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="@color/default_background" android:orientation="vertical"> + android:textColor="@color/color_default_view_on_accent" /> @@ -83,7 +82,7 @@ android:includeFontPadding="false" android:singleLine="true" android:textAllCaps="true" - android:textColor="@color/color_default_primary_text" + android:textColor="@color/color_default_view_on_accent" android:textSize="@dimen/city_widget_name_font_size" /> @@ -105,7 +104,7 @@ android:layout_gravity="center" android:baselineAligned="true" android:gravity="center" - android:textColor="@color/color_default_primary_text" /> + android:textColor="@color/color_default_view_on_accent" /> @@ -145,7 +144,7 @@ android:includeFontPadding="false" android:singleLine="true" android:textAllCaps="true" - android:textColor="@color/color_default_primary_text" + android:textColor="@color/color_default_view_on_accent" android:textSize="@dimen/city_widget_name_font_size" /> diff --git a/res/values/colors.xml b/res/values/colors.xml index 228167cca..324e76d41 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -34,6 +34,7 @@ @lineageos.platform:color/color_default_primary_text @lineageos.platform:color/color_default_secondary_text @lineageos.platform:color/color_default_divider + @lineageos.platform:color/color_default_view_on_accent @lineageos.platform:color/color_default_gray1 @lineageos.platform:color/color_default_gray2 diff --git a/res/values/themes.xml b/res/values/themes.xml index 98077b29f..08c88b380 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -28,7 +28,8 @@