AndroidAPS/core/src/main/res/values-night/styles.xml

239 lines
13 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:ns2="http://schemas.android.com/tools">
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/secondaryColorDefault</item>
<item name="dialogTitleBackground">@color/dialog_title_background</item>
<item name="dialogTitleColor">@color/dialog_title_color</item>
<item name="dialogTitleIconTint">@color/dialog_title_icon_tint</item>
<!-- New MaterialComponents attributes. -->dialogTitleBackground
<item name="colorSecondary">@color/secondaryColorDefault</item>
<item name="colorPrimaryVariant">@color/primaryLightColorDefault</item>
<item name="colorSecondaryVariant">@color/secondaryLightColorDefault</item>
<item name="colorOnPrimary">@color/primaryTextColorDefault</item>
<item name="colorSurface">@color/black</item>
<item name="colorOnSurface">@color/white</item>
<item name="colorOnSecondary">@color/white</item>
<item name="colorOnBackground">@color/white</item>
<item name="colorOnError">@color/black</item>
<item name="scrimBackground">@color/mtrl_scrim_color</item>
<item name="android:textColorSecondary">@color/white</item>
<item name="android:textColorPrimary">@color/white</item>
<item name="android:textColor">@color/white</item>
<item name="popupMenuStyle">@style/Widget.MaterialComponents.PopupMenu</item>
<item name="actionOverflowMenuStyle">@style/Widget.MaterialComponents.PopupMenu.Overflow</item>
<!-- Fragment background for some themes default transparent -->
<item name="fragmentbackground">@color/transparent</item>
<!---Notification -->
<item name="notificationUrgent">@color/notificationUrgent</item>
<item name="notificationNormal">@color/notificationNormal</item>
<item name="notificationLow">@color/notificationLow</item>
<item name="notificationInfo">@color/notificationInfo</item>
<item name="notificationAnnouncement">@color/notificationAnnouncement</item>
<item name="actionModeCloseDrawable">@drawable/ic_close</item>
<!---bolus color -->
<item name="bolusColor">@color/bolus</item>
<!---Treatment button color -->
<item name="treatmentButton">@color/colorTreatmentButton</item>
<!---Number Picker text color -->
<item name="numPickerText">@color/black</item>
<!---NS Client action text color -->
<item name="actionButton">@color/action</item>
<!---Text color for Quickwizard and more -->
<item name="cardObjectiveText">@color/cardObjectiveText</item>
<!---Text color for misc buttons and texts -->
<item name="alarmColor">@color/alarm</item>
<!-- Number picker and more -->
<item name="totalBackground">@color/sphere_plastic_grey</item>
<!-- BG source temp button -->
<item name="setTempButton">@color/colorSetTempButton</item>
<!-- Card Item-->
<item name="cardItemBackgroundColor">@color/cardColorBackground</item>
<!-- Carbs -->
<item name="carbsColor">@color/carbs</item>
<!-- Exercise -->
<item name="exerciseColor">@color/exercise</item>
<!-- BG low -->
<item name="lowColor">@color/low</item>
<!-- Temp Target -->
<item name="tempTargetConfirmation">@color/tempTargetConfirmation</item>
<!-- Treatments -->
<item name="setExtendedButtonColor">@color/colorSetExtendedButton</item>
<!-- Carbs Button -->
<item name="carbsButtonColor">@color/colorCarbsButton</item>
<!-- Temp Button Button -->
<item name="acceptTempButtonColor">@color/colorAcceptTempButton</item>
<!-- Treatment Button -->
<item name="treatmentButtonColor">@color/colorTreatmentButton</item>
<!-- Insulin Button -->
<item name="insulinButtonColor">@color/colorInsulinButton</item>
<!-- Calculator Button -->
<item name="calculatorButtonColor">@color/colorCalculatorButton</item>
<!-- Calibration Button -->
<item name="calibrationButtonColor">@color/colorCalibrationButton</item>
<!-- QuickWizard Button -->
<item name="quickWizardButtonColor">@color/colorQuickWizardButton</item>
<!-- Pump -->
<item name="pumpStatusBackground">@color/pumpStatusBackground</item>
<!-- Objectives -->
<item name="objectivesBackgroundColor">@color/objectivesBackground</item>
<item name="objectivesDisabledTextColor">@color/colorObjectivesDisabledText</item>
<!---Import List -->
<item name="importListFileNameColor">@color/importListFileName</item>
<item name="importListAdditionalInfoColor">@color/importListAdditionalInfo</item>
<item name="metadataTextWarningColor">@color/metadataTextWarning</item>
<item name="metadataTextOkColor">@color/metadataOk</item>
<!---Delete selection -->
<item name="trashBinTintColor">@color/white</item>
<!---Dialog -->
<item name="activity_title_backgroundColor">@color/activity_title_background</item>
<!---Automation -->
<item name="ribbonDefaultColor">@color/ribbonDefault</item>
<!---Main Activity Tab -->
<item name="tabSelectedTextColor">@color/tabSelectedText</item>
<item name="tabTextColor">@color/tabText</item>
<!---Background -->
<item name="defaultbackground">@color/defaultbackground</item>
<!---Toast -->
<item name="toastBaseTextColor">@color/toastBase</item>
<!---Input -->
<item name="boxStrokeColor">@color/white</item>
<!---Profile Helper -->
<item name="tabBgColorSelected">@color/tabBgColorSelected</item>
<!---Splash Background -->
<item name="splashBackgroundColor">@color/splashBackground</item>
<!---Dialog Helper -->
<item name="materialAlertDialogTheme">@style/DialogTheme</item>
<item name="android:alertDialogTheme">@style/DialogTheme</item>
<item name="alertDialogTheme">@style/DialogTheme</item>
</style>
<style name="Theme.MaterialComponents.DayNight.DarkActionBar" parent="Theme.MaterialComponents.DayNight.Bridge"/>
<style name="AppTheme.NoActionBar" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="windowActionModeOverlay">true</item>
<item name="actionModeCloseDrawable">@drawable/ic_close</item>
</style>
<!-- BolusProgress, Error -->
<style name="Theme.MaterialComponents.Translucent" parent="Theme.MaterialComponents.NoActionBar">
<item name="android:windowNoTitle">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowAnimationStyle">@android:style/Animation</item>
<item name="dialogTitleBackground">@color/dialog_title_background</item>
</style>
<!-- Buttons from MaterialDateTimePicker, Dialogs ... -->
<dimen name="material_button_height">48dp</dimen>
<dimen name="material_button_text_size">14sp</dimen>
<dimen name="material_button_min_width">64dp</dimen>
<dimen name="material_button_text_padding_horizontal">8dp</dimen>
<style name="OkCancelButton">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">@dimen/material_button_height</item>
<item name="android:layout_gravity">center_vertical</item>
<item name="android:focusable">true</item>
</style>
<style name="OkCancelButton.Text" ns2:ignore="NewApi">
<item name="android:textSize">@dimen/material_button_text_size</item>
<item name="android:singleLine">true</item>
<item name="android:layout_gravity">center_vertical</item>
<item name="android:gravity">center</item>
<item name="android:stateListAnimator">@null</item>
<item name="android:background">@drawable/material_button_background</item>
<item name="android:minWidth">@dimen/material_button_min_width</item>
<item name="android:paddingLeft">@dimen/material_button_text_padding_horizontal</item>
<item name="android:paddingRight">@dimen/material_button_text_padding_horizontal</item>
<item name="android:textColor">@color/okButtonText</item>
<item name="android:textAllCaps">true</item>
</style>
<style name="MaterialPickerTheme" parent="android:Theme.Material.Dialog.Alert">
<item name="android:buttonBarPositiveButtonStyle">@style/PickerTextButton</item>
<item name="android:buttonBarNegativeButtonStyle">@style/PickerTextButton</item>
<item name="android:textColorPrimary">@color/okButtonText</item>
<item name="android:colorPrimary">@color/okButtonText</item>
<item name="android:calendarTextColor">@color/okButtonText</item>
<item name="android:colorAccent">@color/okButtonText</item>
</style>
<style name="PickerTextButton" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
<item name="android:textColor">@color/okButtonText</item>
</style>
<!-- Common Buttons -->
<dimen name="gray_material_button_margin_horizontal">5dp</dimen>
<style name="GrayButton" parent="Widget.MaterialComponents.Button">
<item name="android:backgroundTint">@color/buttonBackground</item>
<item name="android:textColor">@color/buttonText</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_gravity">center_vertical</item>
<item name="android:gravity">center</item>
<item name="android:layout_marginStart">@dimen/gray_material_button_margin_horizontal</item>
<item name="android:layout_marginEnd">@dimen/gray_material_button_margin_horizontal</item>
<item name="android:textAllCaps">true</item>
</style>
<style name="ButtonSmallFontStyle" parent="GrayButton">
<item name="android:textSize">10sp</item>
</style>
<style name="ButtonMediumFontStyle" parent="GrayButton">
<item name="android:textSize">15sp</item>
</style>
<!-- Alert Dialogs -->
<style name="DialogTheme" parent="ThemeOverlay.MaterialComponents.Dialog.Alert">
<item name="backgroundColor">@color/dialog_title_background</item>
<item name="buttonBarNegativeButtonStyle">@style/DialogOkCancelButtonStyle</item>
<item name="buttonBarPositiveButtonStyle">@style/DialogOkCancelButtonStyle</item>
<item name="buttonBarNeutralButtonStyle">@style/DialogOkCancelButtonStyle</item>
</style>
<style name="DialogOkCancelButtonStyle" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
<item name="android:textColor">@color/okButtonText</item>
</style>
<style name="AppThemeWarningDialog" parent="DialogTheme">
<item name="alertDialogTheme">@style/AppThemeWarningDialogTheme</item>
<item name="dialogTitleBackground">@color/warningAlertBackground</item>
<item name="dialogTitleColor">@color/warningAlertHeaderText</item>
<item name="dialogTitleIconTint">@color/warningAlertHeaderText</item>
</style>
<style name="AppThemeWarningDialogTheme" parent="Theme.MaterialComponents.Dialog.MinWidth">
<item name="android:windowBackground">@drawable/alert_border_warning</item>
<item name="colorAccent">@color/warningAlertBackground</item>
</style>
<style name="AppThemeErrorDialog" parent="DialogTheme">
<item name="alertDialogTheme">@style/AppThemeErrorDialogTheme</item>
<item name="dialogTitleBackground">@color/errorAlertBackground</item>
<item name="dialogTitleColor">@color/errorAlertHeaderText</item>
<item name="dialogTitleIconTint">@color/errorAlertHeaderText</item>
</style>
<style name="AppThemeErrorDialogTheme" parent="Theme.MaterialComponents.Dialog.MinWidth">
<item name="android:windowBackground">@drawable/alert_border_error</item>
<item name="colorAccent">@color/errorAlertBackground</item>
</style>
<!-- The launcher theme. It sets the main window background to the launch_screen drawable -->
<style name="AppTheme.Launcher" parent="AppTheme">
<item name="android:windowBackground">@drawable/launch_screen</item>
<!-- Optional, on Android 5+ you can modify the colorPrimaryDark color to match the windowBackground color for further branding-->
<!-- <item name="colorPrimaryDark">@android:color/white</item> -->
</style>
</resources>