Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
termux
GitHub Repository: termux/termux-app
Path: blob/master/termux-shared/src/main/res/values/themes.xml
1792 views
1
<?xml version="1.0" encoding="utf-8"?>
2
<resources xmlns:tools="http://schemas.android.com/tools">
3
<!--
4
The light themes are only for day mode and must not be defined in night/theme.xml.
5
https://material.io/develop/android/theming/dark
6
-->
7
8
<!--
9
BaseActivity Light DarkActionBar theme.
10
https://github.com/material-components/material-components-android/blob/1.4.0/lib/java/com/google/android/material/theme/res/values/themes.xml#L33
11
-->
12
<style name="Theme.BaseActivity.Light.DarkActionBar" parent="Theme.MaterialComponents.Light.DarkActionBar">
13
<!-- Primary brand color. -->
14
<item name="colorPrimary">@color/red_400</item>
15
<item name="colorPrimaryVariant">@color/red_800</item>
16
<item name="colorOnPrimary">@color/white</item>
17
18
<!-- Secondary brand color. -->
19
<item name="colorSecondary">@color/grey_900</item>
20
<item name="colorSecondaryVariant">@color/black</item>
21
<item name="colorOnSecondary">@color/white</item>
22
23
<!-- Status bar color. -->
24
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
25
<item name="colorPrimaryDark" tools:targetApi="l">?attr/colorPrimary</item>
26
27
<!-- Text color. -->
28
<item name="android:textColorPrimary">@color/black</item>
29
<item name="android:textColorLink">@color/blue_link_light</item>
30
31
<!--
32
Dialog Themes.
33
These MUST be defined for the application `android:theme` so that if dialogs
34
are shown from non-activity context with TYPE_SYSTEM_ALERT, the correct dialog theme is
35
applied, otherwise exceptions like `UnsupportedOperationException: Failed to resolve attribute
36
at index... TypedValue` will be thrown, since ThemeOverlay would have all the activity
37
theme attributes defined.
38
-->
39
<item name="alertDialogTheme">@style/ThemeOverlay.BaseDialog.DayNight</item>
40
<item name="materialAlertDialogTheme">@style/ThemeOverlay.BaseDialog.DayNight</item>
41
</style>
42
43
<!-- BaseActivity Light NoActionBar theme. -->
44
<style name="Theme.BaseActivity.Light.NoActionBar" parent="Theme.BaseActivity.Light.DarkActionBar">
45
<item name="windowActionBar">false</item>
46
<item name="windowNoTitle">true</item>
47
</style>
48
49
50
51
<!-- BaseActivity DayNight DarkActionBar theme. -->
52
<style name="Theme.BaseActivity.DayNight.DarkActionBar" parent="Theme.BaseActivity.Light.DarkActionBar"/>
53
<!-- BaseActivity DayNight NoActionBar theme. -->
54
<style name="Theme.BaseActivity.DayNight.NoActionBar" parent="Theme.BaseActivity.Light.NoActionBar"/>
55
56
57
58
<!-- BaseActivity extended classes Day NoActionBar themes. -->
59
<style name="Theme.MediaViewActivity.Light" parent="Theme.BaseActivity.Light.NoActionBar"/>
60
<style name="Theme.MarkdownViewActivity.Light" parent="Theme.MediaViewActivity.Light"/>
61
62
<!-- BaseActivity extended classes DayNight NoActionBar themes. -->
63
<style name="Theme.MediaViewActivity.DayNight" parent="Theme.BaseActivity.DayNight.NoActionBar"/>
64
<style name="Theme.MarkdownViewActivity.DayNight" parent="Theme.MediaViewActivity.DayNight"/>
65
66
67
68
69
70
<!--
71
BaseDialog Light theme.
72
https://github.com/material-components/material-components-android/blob/1.4.0/lib/java/com/google/android/material/dialog/res/values/themes.xml#L70
73
-->
74
<style name="ThemeOverlay.BaseDialog.Light" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog">
75
<!-- Primary brand color. -->
76
<item name="colorPrimary">@color/red_400</item>
77
<item name="colorPrimaryVariant">@color/red_800</item>
78
<item name="colorOnPrimary">@color/white</item>
79
80
<!-- Secondary brand color. -->
81
<item name="colorSecondary">@color/grey_900</item>
82
<item name="colorSecondaryVariant">@color/black</item>
83
<item name="colorOnSecondary">@color/white</item>
84
85
<!-- Surface color. -->
86
<item name="colorSurface">@color/design_default_color_surface</item>
87
<item name="colorOnSurface">@color/design_default_color_on_surface</item>
88
89
<!-- Dialog title panel style. -->
90
<item name="materialAlertDialogTitlePanelStyle">@style/BaseDialog.Title.Panel</item>
91
92
<!-- Dialog message text style. -->
93
<item name="materialAlertDialogBodyTextStyle">@style/BaseDialog.Message.Text.Light</item>
94
</style>
95
96
<!-- BaseDialog DayNight theme. -->
97
<style name="ThemeOverlay.BaseDialog.DayNight" parent="ThemeOverlay.BaseDialog.Light"/>
98
99
<!-- BaseDialog extended classes DayNight themes. -->
100
<style name="ThemeOverlay.MessageDialog.DayNight" parent="ThemeOverlay.BaseDialog.DayNight"/>
101
102
</resources>
103
104