mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
fix: grey out sb color preferences when cutom colors disabled
This commit is contained in:
parent
508573a1c1
commit
e35e8c83b5
@ -52,6 +52,7 @@
|
|||||||
app:title="@string/category_sponsor" />
|
app:title="@string/category_sponsor" />
|
||||||
|
|
||||||
<com.github.libretube.ui.views.ColorPreference
|
<com.github.libretube.ui.views.ColorPreference
|
||||||
|
android:dependency="sb_enable_custom_colors"
|
||||||
app:defaultValue="#00d400"
|
app:defaultValue="#00d400"
|
||||||
app:key="sponsor_color"
|
app:key="sponsor_color"
|
||||||
app:title="@string/color" />
|
app:title="@string/color" />
|
||||||
@ -63,6 +64,7 @@
|
|||||||
app:title="@string/category_selfpromo" />
|
app:title="@string/category_selfpromo" />
|
||||||
|
|
||||||
<com.github.libretube.ui.views.ColorPreference
|
<com.github.libretube.ui.views.ColorPreference
|
||||||
|
android:dependency="sb_enable_custom_colors"
|
||||||
app:defaultValue="#ffff00"
|
app:defaultValue="#ffff00"
|
||||||
app:key="selfpromo_color"
|
app:key="selfpromo_color"
|
||||||
app:title="@string/color" />
|
app:title="@string/color" />
|
||||||
@ -74,6 +76,7 @@
|
|||||||
app:title="@string/category_interaction" />
|
app:title="@string/category_interaction" />
|
||||||
|
|
||||||
<com.github.libretube.ui.views.ColorPreference
|
<com.github.libretube.ui.views.ColorPreference
|
||||||
|
android:dependency="sb_enable_custom_colors"
|
||||||
app:defaultValue="#cc00ff"
|
app:defaultValue="#cc00ff"
|
||||||
app:key="interaction_color"
|
app:key="interaction_color"
|
||||||
app:title="@string/color" />
|
app:title="@string/color" />
|
||||||
@ -85,6 +88,7 @@
|
|||||||
app:title="@string/category_intro" />
|
app:title="@string/category_intro" />
|
||||||
|
|
||||||
<com.github.libretube.ui.views.ColorPreference
|
<com.github.libretube.ui.views.ColorPreference
|
||||||
|
android:dependency="sb_enable_custom_colors"
|
||||||
app:defaultValue="#00ffff"
|
app:defaultValue="#00ffff"
|
||||||
app:key="intro_color"
|
app:key="intro_color"
|
||||||
app:title="@string/color" />
|
app:title="@string/color" />
|
||||||
@ -96,6 +100,7 @@
|
|||||||
app:title="@string/category_outro" />
|
app:title="@string/category_outro" />
|
||||||
|
|
||||||
<com.github.libretube.ui.views.ColorPreference
|
<com.github.libretube.ui.views.ColorPreference
|
||||||
|
android:dependency="sb_enable_custom_colors"
|
||||||
app:defaultValue="#0202ED"
|
app:defaultValue="#0202ED"
|
||||||
app:key="outro_color"
|
app:key="outro_color"
|
||||||
app:title="@string/color" />
|
app:title="@string/color" />
|
||||||
@ -107,6 +112,7 @@
|
|||||||
app:title="@string/category_filler" />
|
app:title="@string/category_filler" />
|
||||||
|
|
||||||
<com.github.libretube.ui.views.ColorPreference
|
<com.github.libretube.ui.views.ColorPreference
|
||||||
|
android:dependency="sb_enable_custom_colors"
|
||||||
app:defaultValue="#7300ff"
|
app:defaultValue="#7300ff"
|
||||||
app:key="filler_color"
|
app:key="filler_color"
|
||||||
app:title="@string/color" />
|
app:title="@string/color" />
|
||||||
@ -118,6 +124,7 @@
|
|||||||
app:title="@string/category_music_offtopic" />
|
app:title="@string/category_music_offtopic" />
|
||||||
|
|
||||||
<com.github.libretube.ui.views.ColorPreference
|
<com.github.libretube.ui.views.ColorPreference
|
||||||
|
android:dependency="sb_enable_custom_colors"
|
||||||
app:defaultValue="#ff9900"
|
app:defaultValue="#ff9900"
|
||||||
app:key="music_offtopic_color"
|
app:key="music_offtopic_color"
|
||||||
app:title="@string/color" />
|
app:title="@string/color" />
|
||||||
@ -129,6 +136,7 @@
|
|||||||
app:title="@string/category_preview" />
|
app:title="@string/category_preview" />
|
||||||
|
|
||||||
<com.github.libretube.ui.views.ColorPreference
|
<com.github.libretube.ui.views.ColorPreference
|
||||||
|
android:dependency="sb_enable_custom_colors"
|
||||||
app:defaultValue="#008fd6"
|
app:defaultValue="#008fd6"
|
||||||
app:key="preview_color"
|
app:key="preview_color"
|
||||||
app:title="@string/color" />
|
app:title="@string/color" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user