Improve: Theming Again (What did u expect?!)

This commit is contained in:
LooKeR
2021-10-17 20:15:08 +05:30
parent e8d1331faf
commit 95d1c6954f
11 changed files with 68 additions and 52 deletions

View File

@@ -3,11 +3,10 @@
<color name="green50">#E8F5E9</color>
<color name="green100">#A3EBB7</color>
<color name="green200">#6EC898</color>
<color name="green300">#58C189</color>
<color name="green400">#3EDA86</color>
<color name="green300">#51DF93</color>
<color name="red200">#EF9A9A</color>
<color name="red300">#E57373</color>
<color name="red300">#EF8A8A</color>
<color name="pitch_black">#000000</color>
<color name="black">#1E1E1E</color>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="text_margin">16dp</dimen>
<dimen name="shape_margin">8dp</dimen>
<dimen name="shape_small_corner">4dp</dimen>
<dimen name="shape_medium_corner">12dp</dimen>
<dimen name="shape_large_corner">16dp</dimen>
</resources>

View File

@@ -6,7 +6,7 @@
</style>
<style name="Theme.Main.Light" parent="Theme.Material3.Light.NoActionBar">
<item name="colorPrimary">@color/green400</item>
<item name="colorPrimary">@color/green300</item>
<item name="colorOnPrimary">@color/black</item>
<item name="colorSurface">@color/green50</item>
<item name="colorOnSurface">@color/black</item>
@@ -79,9 +79,27 @@
<item name="colorOnSurfaceVariant">?attr/colorOnSurface</item>
</style>
<style name="Theme.Progress" parent="Widget.Material3.LinearProgressIndicator">
<item name="trackColor">?attr/colorSurface</item>
<item name="trackThickness">8dp</item>
<item name="trackCornerRadius">4dp</item>
</style>
<style name="Theme.Switch" parent="Widget.Material3.CompoundButton.Switch">
<item name="trackTint">@color/switch_track_color</item>
<item name="thumbTint">@color/switch_thumb_tint</item>
</style>
<style name="Shape.Small" parent="ShapeAppearance.Material3.SmallComponent">
<item name="cornerSize">@dimen/shape_small_corner</item>
</style>
<style name="Shape.Medium" parent="ShapeAppearance.Material3.MediumComponent">
<item name="cornerSize">@dimen/shape_medium_corner</item>
</style>
<style name="Shape.Large" parent="ShapeAppearance.Material3.LargeComponent">
<item name="cornerSize">@dimen/shape_large_corner</item>
</style>
</resources>