Skip to content

Commit

Permalink
fix: material tonal system colors
Browse files Browse the repository at this point in the history
  • Loading branch information
BrayanDSO committed Dec 17, 2023
1 parent c858bc8 commit 462b724
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
18 changes: 18 additions & 0 deletions AnkiDroid/src/main/res/color/faded_primary.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (c) 2023 Brayan Oliveira <[email protected]>
~
~ This program is free software; you can redistribute it and/or modify it under
~ the terms of the GNU General Public License as published by the Free Software
~ Foundation; either version 3 of the License, or (at your option) any later
~ version.
~
~ This program is distributed in the hope that it will be useful, but WITHOUT ANY
~ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
~ PARTICULAR PURPOSE. See the GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License along with
~ this program. If not, see <http://www.gnu.org/licenses/>.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:alpha="0.06" android:color="?attr/colorPrimary"/>
</selector>
4 changes: 4 additions & 0 deletions AnkiDroid/src/main/res/values/theme_dark.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
<item name="android:textColorSecondary">@color/text_color_secondary_dark</item>
<item name="android:colorBackground">@color/material_theme_grey</item>
<item name="android:windowBackground">@color/material_theme_grey</item>

<item name="colorSurfaceContainerHighest">?attr/colorSurfaceContainer</item>
<item name="colorSurfaceContainer">@color/faded_primary</item>
<item name="colorSurfaceContainerLow">?android:attr/colorBackground</item>
<!-- Widget colors -->
<item name="widgetColorActivated">?attr/colorAccent</item>
<item name="preferenceCategoryTitleTextColor">?attr/colorAccent</item>
Expand Down
4 changes: 4 additions & 0 deletions AnkiDroid/src/main/res/values/theme_light.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
<item name="colorPrimaryContainer">@color/white</item> <!-- Switch thumb color when disabled and being pressed -->
<item name="colorOnPrimaryContainer">@color/white</item> <!-- FAB icons -->

<item name="colorSurfaceContainerHighest">?attr/colorSurfaceContainer</item>
<item name="colorSurfaceContainer">@color/faded_primary</item>
<item name="colorSurfaceContainerLow">?android:attr/colorBackground</item>

<item name="android:textColor">@color/text_color_light</item>
<item name="android:textColorSecondary">@color/text_color_secondary_light</item>
<item name="android:colorBackground">@android:color/white</item>
Expand Down

0 comments on commit 462b724

Please sign in to comment.