mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-28 12:47:43 +00:00
Basic support for A12 colors
Colors don't work in some cards, menus and the hamburger menu ## Summary I'm trying to make KDEConnect pull colours from the Material 3.0 wallpaper in Android 12. I've managed to do this to an extent by editing the xml files in res/values*. There are, however, certain UI elements that do not respond to the changes I've made, with no obvious files where their colours may be changed. ## Screenshots ### The devices screen looks great (Except "KDE Connect Devices" in the App bar isn't themed.)  ### The hamburger menu has a white color in light mode. Don't know where this is set and how to change it  ### Three dot menu has a white colour  ### Add new devices looks good too  ### Not the popup menus though  ### Cards in the About section are still white  ### Dark mode works fine  ### But again, some UI elements like the hamburger menu aren't themed.  I'll keep trying to figure out how to make these elements to their proper colours, but I've done a lot of searching through the source and couldn't figure out how. I'm absolutely new to Android development. Help please. ## Test Plan For the changes made thus far, none are needed.
This commit is contained in:
parent
aacd0fa32a
commit
31d1882c6a
21
res/values-night-v31/colors.xml
Normal file
21
res/values-night-v31/colors.xml
Normal file
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="primary">@android:color/system_accent2_300</color>
|
||||
<color name="primaryDark">@android:color/system_neutral1_900</color>
|
||||
<color name="accent">@android:color/system_accent2_300</color>
|
||||
<color name="disabled_grey">#EEEEEE</color>
|
||||
<color name="on_secondary">@android:color/system_accent1_700</color>
|
||||
<color name="on_high_contrast">@android:color/system_neutral1_50</color>
|
||||
<color name="text_color_primary">@android:color/system_neutral2_0</color>
|
||||
<color name="text_color">@android:color/system_neutral2_50</color>
|
||||
<color name="toolbar_color">@android:color/system_neutral1_900</color>
|
||||
<color name="card_stroke_color">@android:color/system_neutral2_800</color>
|
||||
<color name="activity_background">@android:color/system_neutral1_900</color>
|
||||
<item name="lightMode" type="bool">false</item>
|
||||
|
||||
<!-- This is for dark theme. In dark theme both selected and unselected text in the
|
||||
navigation bar should be white. This is different from the light theme as both states have
|
||||
different colors so light theme has a selector for this value-->
|
||||
<color name="state_list_drawer_text">@android:color/white</color>
|
||||
</resources>
|
||||
|
16
res/values-notnight-v31/colors.xml
Normal file
16
res/values-notnight-v31/colors.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="primary">@android:color/system_accent2_500</color>
|
||||
<color name="primaryDark">@android:color/system_neutral1_50</color>
|
||||
<color name="accent">@android:color/system_accent2_500</color>
|
||||
<color name="disabled_grey">#EEEEEE</color>
|
||||
<color name="on_secondary">@android:color/system_accent1_200</color>
|
||||
<color name="on_high_contrast">@android:color/system_accent1_700</color>
|
||||
<color name="text_color_primary">@android:color/system_accent2_700</color>
|
||||
<color name="text_color">@android:color/system_neutral2_700</color>
|
||||
<color name="toolbar_color">@android:color/system_neutral1_50</color>
|
||||
<color name="card_stroke_color">@android:color/system_neutral2_100</color>
|
||||
<color name="activity_background">@android:color/system_neutral1_50</color>
|
||||
<item name="lightMode" type="bool">true</item>
|
||||
</resources>
|
||||
|
Loading…
x
Reference in New Issue
Block a user