aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/values/styles.xml
blob: b5a03bb42f304957622e10fe797abaa4a609cb10 (about) (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
<resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
        <item name="colorPrimary">@color/primary_color</item>
        <item name="colorOnPrimary">@color/color_control_normal</item>
        <item name="colorPrimaryDark">@color/primary_color</item>
        <item name="colorPrimaryVariant">@color/primary_light_color</item>
        <item name="colorSecondary">@color/secondary_color</item>
        <item name="colorOnSecondary">@color/white</item>
        <item name="colorSurface">@color/window_background</item>
        <item name="android:textColor">@color/primary_text_color</item>
        <item name="colorOnSurface">@color/color_control_normal</item>
        <item name="colorControlNormal">@color/color_control_normal</item>
        <item name="android:colorBackgroundFloating">@color/primary_color</item>
        <item name="android:statusBarColor">@color/status_bar_color</item>
        <item name="android:navigationBarColor">@color/navigation_bar_color</item>
        <item name="android:windowBackground">@color/window_background</item>
        <item name="actionModeStyle">@style/ActionMode</item>
        <item name="alertDialogTheme">@style/AppTheme.Dialog</item>
        <item name="materialAlertDialogTheme">@style/AppTheme.Dialog</item>
        <item name="actionBarPopupTheme">@style/ThemeOverlay.MaterialComponents.ActionBar</item>
        <item name="textInputStyle">@style/TextInputLayoutBase</item>
    </style>

    <style name="AppTheme.Dialog" parent="Theme.MaterialComponents.DayNight.Dialog.Alert">
        <item name="colorPrimary">@color/secondary_color</item>
        <item name="colorSecondary">@color/secondary_color</item>
        <item name="android:windowBackground">@color/window_background</item>
    </style>

    <style name="ActionMode" parent="@style/Widget.AppCompat.ActionMode">
        <item name="background">@color/primary_color</item>
    </style>

    <style name="NoBackgroundTheme" parent="@style/AppTheme">
        <item name="android:background">@android:color/transparent</item>
        <item name="android:backgroundDimEnabled">true</item>
        <item name="android:navigationBarColor">@android:color/transparent</item>
        <item name="android:statusBarColor">@android:color/transparent</item>
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowEnterAnimation">@android:anim/fade_in</item>
        <item name="android:windowExitAnimation">@android:anim/fade_out</item>
        <item name="colorPrimaryDark">@android:color/transparent</item>
        <item name="windowNoTitle">true</item>
    </style>

    <style name="ThemeOverlay.AppTheme.TextInputEditText.OutlinedBox" parent="ThemeOverlay.MaterialComponents.TextInputEditText.OutlinedBox">
        <item name="colorControlActivated">@color/color_control_normal</item>
    </style>

    <style name="TextInputLayoutBase" parent="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
        <item name="boxStrokeColor">@color/secondary_color</item>
        <item name="hintTextColor">@color/color_control_normal</item>
        <item name="hintEnabled">true</item>
        <item name="materialThemeOverlay">@style/ThemeOverlay.AppTheme.TextInputEditText.OutlinedBox</item>
    </style>

    <style name="DialogLikeTheme" parent="AppTheme">
        <item name="android:windowActionBar">false</item>
        <item name="android:windowIsFloating">true</item>
        <item name="android:backgroundDimEnabled">true</item>
        <!-- Needs to be set without android: prefix as per https://stackoverflow.com/a/33417456 -->
        <item name="windowNoTitle">true</item>
    </style>
</resources>