mirror of
https://github.com/home-assistant/android
synced 2024-10-15 12:32:54 +00:00
Restore night theme (#1403)
* Restore night theme * Don't pull translations on PR. Co-authored-by: Justin Bassett <bassett.justint@gmail.com>
This commit is contained in:
parent
23a7e54d60
commit
46b0b87e59
6
.github/workflows/pr.yml
vendored
6
.github/workflows/pr.yml
vendored
|
@ -112,12 +112,6 @@ jobs:
|
||||||
- uses: ./.github/actions/create-release-notes
|
- uses: ./.github/actions/create-release-notes
|
||||||
name: Create Release Notes
|
name: Create Release Notes
|
||||||
|
|
||||||
- uses: ./.github/actions/download-translations
|
|
||||||
name: Download Translations
|
|
||||||
with:
|
|
||||||
lokalise-project: ${{ secrets.LOKALISE_PROJECT }}
|
|
||||||
lokalise-token: ${{ secrets.LOKALISE_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build Debug APK
|
- name: Build Debug APK
|
||||||
run: ./gradlew assembleDebug
|
run: ./gradlew assembleDebug
|
||||||
|
|
||||||
|
|
18
app/src/main/res/values-night/colors.xml
Normal file
18
app/src/main/res/values-night/colors.xml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<color name="colorDialogBackground">#111111</color>
|
||||||
|
<color name="colorDialogMessage">@android:color/white</color>
|
||||||
|
<color name="colorDialogTitle">@android:color/white</color>
|
||||||
|
<color name="colorActivityBackground">#1c1c1c</color>
|
||||||
|
<color name="colorPrimary">#03A9F4</color>
|
||||||
|
<color name="colorPrimaryDark">#111111</color>
|
||||||
|
<color name="colorAccent">#03A9F4</color>
|
||||||
|
<color name="colorOnPrimary">@android:color/white</color>
|
||||||
|
<color name="colorWarning">#D32F2F</color>
|
||||||
|
<color name="colorHeadline1">@android:color/white</color>
|
||||||
|
<color name="colorHeadline2">@android:color/white</color>
|
||||||
|
<color name="colorActionBar">#1c1c1c</color>
|
||||||
|
<color name="colorIcon">@android:color/white</color>
|
||||||
|
<color name="colorWidgetButtonBackground">#1c1c1c</color>
|
||||||
|
<color name="colorWidgetButtonLabel">#E6E6E6</color>
|
||||||
|
</resources>
|
22
app/src/main/res/values-night/styles.xml
Normal file
22
app/src/main/res/values-night/styles.xml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||||
|
<style name="Theme.HomeAssistant.Dialog.Alert" parent="Theme.MaterialComponents.DayNight.Dialog.Alert">
|
||||||
|
<item name="android:textColor">@color/colorDialogTitle</item>
|
||||||
|
<item name="buttonBarPositiveButtonStyle">@style/Alert.Button.Positive</item>
|
||||||
|
<item name="buttonBarNegativeButtonStyle">@style/Alert.Button.Negative</item>
|
||||||
|
<item name="buttonBarNeutralButtonStyle">@style/Alert.Button.Neutral</item>
|
||||||
|
<item name="android:textColorPrimary">@color/colorDialogMessage</item>
|
||||||
|
<item name="colorAccent">@color/colorAccent</item>
|
||||||
|
<item name="textColorAlertDialogListItem">@color/colorDialogMessage</item>
|
||||||
|
<item name="colorControlNormal">@color/colorDialogMessage</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="Authentication_Dialog" parent="Theme.MaterialComponents.DayNight.Dialog">
|
||||||
|
<item name="android:textColor">@color/colorDialogTitle</item>
|
||||||
|
<item name="buttonBarPositiveButtonStyle">@style/Alert.Button.Positive</item>
|
||||||
|
<item name="buttonBarNegativeButtonStyle">@style/Alert.Button.Negative</item>
|
||||||
|
<item name="buttonBarNeutralButtonStyle">@style/Alert.Button.Neutral</item>
|
||||||
|
<item name="windowMinWidthMajor">300dp</item>
|
||||||
|
<item name="windowMinWidthMinor">0dp</item>
|
||||||
|
<item name="android:textColorPrimary">@color/colorDialogMessage</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
Loading…
Reference in a new issue