Path: blob/master/termux-shared/src/main/res/values/themes.xml
1792 views
<?xml version="1.0" encoding="utf-8"?>1<resources xmlns:tools="http://schemas.android.com/tools">2<!--3The light themes are only for day mode and must not be defined in night/theme.xml.4https://material.io/develop/android/theming/dark5-->67<!--8BaseActivity Light DarkActionBar theme.9https://github.com/material-components/material-components-android/blob/1.4.0/lib/java/com/google/android/material/theme/res/values/themes.xml#L3310-->11<style name="Theme.BaseActivity.Light.DarkActionBar" parent="Theme.MaterialComponents.Light.DarkActionBar">12<!-- Primary brand color. -->13<item name="colorPrimary">@color/red_400</item>14<item name="colorPrimaryVariant">@color/red_800</item>15<item name="colorOnPrimary">@color/white</item>1617<!-- Secondary brand color. -->18<item name="colorSecondary">@color/grey_900</item>19<item name="colorSecondaryVariant">@color/black</item>20<item name="colorOnSecondary">@color/white</item>2122<!-- Status bar color. -->23<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>24<item name="colorPrimaryDark" tools:targetApi="l">?attr/colorPrimary</item>2526<!-- Text color. -->27<item name="android:textColorPrimary">@color/black</item>28<item name="android:textColorLink">@color/blue_link_light</item>2930<!--31Dialog Themes.32These MUST be defined for the application `android:theme` so that if dialogs33are shown from non-activity context with TYPE_SYSTEM_ALERT, the correct dialog theme is34applied, otherwise exceptions like `UnsupportedOperationException: Failed to resolve attribute35at index... TypedValue` will be thrown, since ThemeOverlay would have all the activity36theme attributes defined.37-->38<item name="alertDialogTheme">@style/ThemeOverlay.BaseDialog.DayNight</item>39<item name="materialAlertDialogTheme">@style/ThemeOverlay.BaseDialog.DayNight</item>40</style>4142<!-- BaseActivity Light NoActionBar theme. -->43<style name="Theme.BaseActivity.Light.NoActionBar" parent="Theme.BaseActivity.Light.DarkActionBar">44<item name="windowActionBar">false</item>45<item name="windowNoTitle">true</item>46</style>47484950<!-- BaseActivity DayNight DarkActionBar theme. -->51<style name="Theme.BaseActivity.DayNight.DarkActionBar" parent="Theme.BaseActivity.Light.DarkActionBar"/>52<!-- BaseActivity DayNight NoActionBar theme. -->53<style name="Theme.BaseActivity.DayNight.NoActionBar" parent="Theme.BaseActivity.Light.NoActionBar"/>54555657<!-- BaseActivity extended classes Day NoActionBar themes. -->58<style name="Theme.MediaViewActivity.Light" parent="Theme.BaseActivity.Light.NoActionBar"/>59<style name="Theme.MarkdownViewActivity.Light" parent="Theme.MediaViewActivity.Light"/>6061<!-- BaseActivity extended classes DayNight NoActionBar themes. -->62<style name="Theme.MediaViewActivity.DayNight" parent="Theme.BaseActivity.DayNight.NoActionBar"/>63<style name="Theme.MarkdownViewActivity.DayNight" parent="Theme.MediaViewActivity.DayNight"/>646566676869<!--70BaseDialog Light theme.71https://github.com/material-components/material-components-android/blob/1.4.0/lib/java/com/google/android/material/dialog/res/values/themes.xml#L7072-->73<style name="ThemeOverlay.BaseDialog.Light" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog">74<!-- Primary brand color. -->75<item name="colorPrimary">@color/red_400</item>76<item name="colorPrimaryVariant">@color/red_800</item>77<item name="colorOnPrimary">@color/white</item>7879<!-- Secondary brand color. -->80<item name="colorSecondary">@color/grey_900</item>81<item name="colorSecondaryVariant">@color/black</item>82<item name="colorOnSecondary">@color/white</item>8384<!-- Surface color. -->85<item name="colorSurface">@color/design_default_color_surface</item>86<item name="colorOnSurface">@color/design_default_color_on_surface</item>8788<!-- Dialog title panel style. -->89<item name="materialAlertDialogTitlePanelStyle">@style/BaseDialog.Title.Panel</item>9091<!-- Dialog message text style. -->92<item name="materialAlertDialogBodyTextStyle">@style/BaseDialog.Message.Text.Light</item>93</style>9495<!-- BaseDialog DayNight theme. -->96<style name="ThemeOverlay.BaseDialog.DayNight" parent="ThemeOverlay.BaseDialog.Light"/>9798<!-- BaseDialog extended classes DayNight themes. -->99<style name="ThemeOverlay.MessageDialog.DayNight" parent="ThemeOverlay.BaseDialog.DayNight"/>100101</resources>102103104