Switch keyboard shortcuts helper to daynight theme

This one was hardcoded to use light theme, switch it to daynight
so that it switches properly in dark theme. Also the text colors
were hardcoded so I fixed that as well.

Test: visual inspection
Bug: 114520166
Change-Id: Ic4789d0dfec7a7af4a49b37909ee0827ea1554bc
This commit is contained in:
Salvador Martinez
2019-03-28 19:15:57 -07:00
parent 8502e24cd3
commit c85d6c2588
3 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,7 @@
android:layout_height="wrap_content"
android:paddingEnd="12dp"
android:paddingBottom="4dp"
android:textColor="@color/ksh_keyword_color"
android:textColor="?android:attr/textColorPrimary"
android:textSize="16sp"
android:maxLines="5"
android:singleLine="false"

View File

@@ -129,7 +129,6 @@
<!-- Keyboard shortcuts colors -->
<color name="ksh_application_group_color">#fff44336</color>
<color name="ksh_keyword_color">#d9000000</color>
<color name="ksh_key_item_color">@color/material_grey_600</color>
<color name="ksh_key_item_background">@color/material_grey_100</color>

View File

@@ -128,7 +128,8 @@ public final class KeyboardShortcuts {
private KeyCharacterMap mBackupKeyCharacterMap;
private KeyboardShortcuts(Context context) {
this.mContext = new ContextThemeWrapper(context, android.R.style.Theme_DeviceDefault_Light);
this.mContext = new ContextThemeWrapper(
context, android.R.style.Theme_DeviceDefault_Settings);
this.mPackageManager = AppGlobals.getPackageManager();
loadResources(context);
}