blob: 661bcfd2f0b84cca0adad7103f27d598fb416380 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="BaseTheme" parent="Theme.Material3.DayNight.NoActionBar">
<item name="colorPrimary">@color/primary</item>
<item name="colorPrimaryDark">?android:colorPrimary</item>
<item name="colorAccent">@color/accent</item>
<item name="android:statusBarColor">?attr/colorPrimary</item>
<item name="android:windowLightStatusBar">@bool/isDayMode</item>
<item name="android:colorControlNormal">?attr/colorAccent</item>
<item name="android:colorControlActivated">?attr/colorAccent</item>
<item name="android:textColorLink">?android:colorAccent</item>
<item name="android:textColorHighlight">@color/defaultTextHighlightBackground</item>
<item name="windowActionModeOverlay">true</item>
<item name="android:actionModeBackground">?attr/colorPrimary</item>
<!-- Workaround: Preferences Dialogs are using AlertDialogs instead of MaterialAlertDialogs. -->
<!-- https://stackoverflow.com/questions/70650073/adjust-androidx-preference-dialogs-to-follow-material-you -->
<item name="alertDialogTheme">@style/PreferencesAlertDialogTheme</item>
<item name="materialAlertDialogTheme">@style/MaterialAlertDialogTheme</item>
<item name="toolbarStyle">@style/toolbarStyle</item>
<item name="actionModeStyle">@style/actionModeStyle</item>
<item name="tabStyle">@style/tabStyle</item>
</style>
<style name="AppTheme" parent="BaseTheme" />
<style name="toolbarStyle" parent="Widget.Material3.Toolbar">
<item name="popupTheme">@style/PopupTheme</item>
</style>
<style name="PopupTheme" parent="Theme.Material3.DayNight">
<item name="colorPrimary">@color/primary</item>
<item name="checkboxStyle">@style/checkboxStyle</item>
</style>
<style name="checkboxStyle" parent="Widget.Material3.CompoundButton.CheckBox">
<item name="materialThemeOverlay">@style/materialThemeOverlay</item>
</style>
<style name="materialThemeOverlay" parent="Widget.Material3.CompoundButton.CheckBox">
<item name="colorPrimary">@color/accent</item>
</style>
<style name="actionModeStyle" parent="@style/Widget.Material3.ActionMode">
<item name="android:paddingStart">@dimen/spacer_activity_sides</item>
<item name="android:paddingEnd">@dimen/spacer_activity_sides</item>
</style>
<style name="tabStyle" parent="Widget.Material3.TabLayout">
<item name="backgroundColor">@android:color/transparent</item>
<item name="itemBackground">@android:color/transparent</item>
<item name="tabIndicatorColor">@android:color/transparent</item>
<item name="tabTextColor">?attr/colorAccent</item>
<item name="tabIconTint">?attr/colorAccent</item>
</style>
<style name="textInputLayoutStyle" parent="Widget.Material3.TextInputLayout.OutlinedBox.Dense">
<item name="boxStrokeColor">@color/text_input_layout_color</item>
<item name="hintTextColor">@color/text_input_layout_color</item>
</style>
<style name="MaterialAlertDialogTheme" parent="ThemeOverlay.Material3.MaterialAlertDialog">
<item name="buttonBarPositiveButtonStyle">@style/buttonStyle</item>
<item name="buttonBarNegativeButtonStyle">@style/buttonStyle</item>
<item name="buttonBarNeutralButtonStyle">@style/buttonStyle</item>
</style>
<style name="PreferencesAlertDialogTheme" parent="MaterialAlertDialogTheme">
<!-- https://m3.material.io/components/dialogs/specs#6771d107-624e-47cc-b6d8-2b7b620ba2f1 -->
<item name="dialogCornerRadius">28dp</item>
<item name="android:background">?attr/colorSurface</item>
</style>
<style name="buttonStyle" parent="Widget.Material3.Button.TextButton.Dialog">
<item name="android:textColor">?attr/colorAccent</item>
</style>
<style name="Theme.App.Starting" parent="Theme.SplashScreen">
<item name="windowSplashScreenBackground">@color/defaultBrand</item>
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_launcher_foreground</item>
<item name="postSplashScreenTheme">@style/AppTheme</item>
</style>
</resources>
|