This commit is contained in:
@@ -156,6 +156,87 @@
|
||||
|
||||
</com.google.android.material.button.MaterialButtonToggleGroup>
|
||||
|
||||
<!-- Pitch black — enabled only in explicit dark mode -->
|
||||
<LinearLayout
|
||||
android:id="@+id/rowPitchBlack"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/settings_pitch_black"
|
||||
android:textAppearance="?attr/textAppearanceBodyLarge" />
|
||||
|
||||
<com.google.android.material.materialswitch.MaterialSwitch
|
||||
android:id="@+id/switchPitchBlack"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Accent color — always shown, disabled/grayed in system theme mode -->
|
||||
<LinearLayout
|
||||
android:id="@+id/sectionAccentColor"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginTop="24dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/settings_accent_color"
|
||||
android:textAppearance="?attr/textAppearanceTitleMedium"
|
||||
android:layout_marginBottom="12dp" />
|
||||
|
||||
<com.google.android.material.button.MaterialButtonToggleGroup
|
||||
android:id="@+id/accentToggle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:singleSelection="true"
|
||||
app:selectionRequired="true">
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/btnAccentBlue"
|
||||
style="@style/Widget.Material3.Button.OutlinedButton"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/accent_blue" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/btnAccentOrange"
|
||||
style="@style/Widget.Material3.Button.OutlinedButton"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/accent_orange" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/btnAccentGreen"
|
||||
style="@style/Widget.Material3.Button.OutlinedButton"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/accent_green" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/btnAccentCustom"
|
||||
style="@style/Widget.Material3.Button.OutlinedButton"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/accent_custom" />
|
||||
|
||||
</com.google.android.material.button.MaterialButtonToggleGroup>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -148,6 +148,15 @@
|
||||
<string name="theme_system">System</string>
|
||||
<string name="theme_light">Light</string>
|
||||
<string name="theme_dark">Dark</string>
|
||||
<string name="settings_pitch_black">Pitch Black</string>
|
||||
<string name="settings_accent_color">Accent Color</string>
|
||||
<string name="accent_blue">Blue</string>
|
||||
<string name="accent_orange">Red</string>
|
||||
<string name="accent_green">Green</string>
|
||||
<string name="accent_custom">Custom</string>
|
||||
<string name="accent_custom_pick">Custom Accent Color</string>
|
||||
<string name="accent_custom_hint">#RRGGBB hex color</string>
|
||||
<string name="accent_invalid_color">Invalid color — enter a valid hex code</string>
|
||||
<string name="language">Language</string>
|
||||
<string name="lang_english">English</string>
|
||||
<string name="lang_dhivehi">ދިވެހި</string>
|
||||
|
||||
@@ -6,4 +6,32 @@
|
||||
<item name="colorSecondary">@color/seed_secondary</item>
|
||||
<item name="android:windowSoftInputMode">adjustResize</item>
|
||||
</style>
|
||||
|
||||
<!-- Accent overlays — applied on API < 31 as fallback when content-based dynamic colors unavailable -->
|
||||
<style name="ThemeOverlay_Accent_Blue" parent="">
|
||||
<item name="colorPrimary">#3F65AD</item>
|
||||
<item name="colorSecondary">#9AD141</item>
|
||||
</style>
|
||||
|
||||
<style name="ThemeOverlay_Accent_Orange" parent="">
|
||||
<item name="colorPrimary">#D32F2F</item>
|
||||
<item name="colorSecondary">#EF9A9A</item>
|
||||
</style>
|
||||
|
||||
<style name="ThemeOverlay_Accent_Green" parent="">
|
||||
<item name="colorPrimary">#4CAF50</item>
|
||||
<item name="colorSecondary">#80CBC4</item>
|
||||
</style>
|
||||
|
||||
<!-- Pitch black overlay — forces pure black surfaces for OLED displays -->
|
||||
<style name="ThemeOverlay_PitchBlack" parent="">
|
||||
<item name="android:colorBackground">#000000</item>
|
||||
<item name="colorSurface">#000000</item>
|
||||
<item name="colorSurfaceVariant">#0d0d0d</item>
|
||||
<item name="colorSurfaceContainer">#0d0d0d</item>
|
||||
<item name="colorSurfaceContainerLow">#000000</item>
|
||||
<item name="colorSurfaceContainerLowest">#000000</item>
|
||||
<item name="colorSurfaceContainerHigh">#1a1a1a</item>
|
||||
<item name="colorSurfaceContainerHighest">#1a1a1a</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user