Accent color theming

Change-Id: I31b19858d0e01e1427df91750875bc470e741bcd
This commit is contained in:
SpiritCroc 2021-07-24 10:41:24 +02:00
parent 8b7cae31a9
commit d54a9302fc
80 changed files with 2849 additions and 21 deletions

184
generate_themes.sh Executable file
View file

@ -0,0 +1,184 @@
#!/bin/bash
set -e
shopt -s globstar
my_dir="$(dirname "$(realpath "$0")")"
pushd "$my_dir" > /dev/null
function add_alpha_to_color() {
local color="$1"
local alpha="$2"
echo "$color" | sed "s|#|#$alpha|"
}
function add_noalpha_to_color() {
local color="$1"
local alpha="$2"
python -c "print('#' + hex(int(255 - $alpha*(255-int('$color'[1:3], 16))))[2:] + hex(int(255 - $alpha*(255-int('$color'[3:5], 16))))[2:] + hex(int(255 - $alpha*(255-int('$color'[5:7], 16))))[2:])"
}
function theme_file() {
local file="$1"
local name="$2"
local color="$3"
local name_lc=`echo "$name" | tr '[:upper:]' '[:lower:]'`
local color_alpha25=`add_alpha_to_color "$color" "3f"`
local color_noalpha12=`add_noalpha_to_color "$color" '0.12'`
local target_file=`echo "$file" | sed "s|bluelight|$name_lc|g"`
if [ "$file" = "$target_file" ]; then
return
fi
cp "$file" "$target_file"
sed -i "s|BlueLight|$name|g;s|bluelight|$name_lc|g;s|#03a9f4|$color|g;s|#3f03a9f4|$color_alpha25|g;s|#e0f4f3|$color_noalpha12|g" "$target_file"
}
function insert_above_comment() {
local comment_pre="$1"
local comment_post="$2"
local file="$3"
local comment="$4"
local insert="$5"
local indention="$6"
if ! grep -q "$insert" "$file"; then
cat "$file" | tr '\n' '\r' | sed "s|\\($comment_pre$comment$comment_post\\)|$insert\r$indention\\1|" | tr '\r' '\n' > "$file.tmp"
mv "$file.tmp" "$file"
fi
}
function insert_above_java_comment() {
insert_above_comment "// " "" "$@"
}
function insert_above_xml_comment() {
insert_above_comment "<!-- " " -->" "$@"
}
function generate_accent_common() {
local name="$1"
local name_str="$2"
local name_lc=`echo "$name" | tr '[:upper:]' '[:lower:]'`
insert_above_xml_comment "vector/src/main/res/values/strings_sc.xml" "do not change this comment for accent generation" "<string name=\"sc_accent_$name_lc\">$name_str</string>" " "
}
function generate_accent_light() {
# Usage:
# generate_accent <name> <color_for_light_themes>
local name="$1"
local name_str="$2"
local color_lt="$3"
local name_lc=`echo "$name" | tr '[:upper:]' '[:lower:]'`
# String
generate_accent_common "$name" "$name_str"
# Settings arrays
insert_above_xml_comment "vector/src/main/res/values/arrays_sc.xml" \
"do not change this comment for light accent entry generation" \
"<item>@string/sc_accent_$name_lc</item> <!-- Light $name name -->" \
" "
insert_above_xml_comment "vector/src/main/res/values/arrays_sc.xml" \
"do not change this comment for light accent value generation" \
"<item>$name_lc</item> <!-- Light $name id -->" \
" "
insert_above_xml_comment "vector/src/main/res/values/arrays_sc.xml" \
"do not change this comment for light accent preview generation" \
"<item>$color_lt</item> <!-- Light $name accent -->" \
" "
# Actual theming
for f in **/"theme_sc_light_accent_bluelight.xml"; do
theme_file "$f" "$name" "$color_lt" \;
done
# Selection code
insert_above_java_comment "vector/src/main/java/im/vector/app/features/themes/ThemeUtils.kt" \
"Do not change this comment for automatic light theme insertion" \
"\"$name_lc\" -> R.style.AppTheme_SC_Light_$name" \
" "
}
function generate_accent_dark() {
# Usage:
# generate_accent <name> <color_for_dark_themes>
local name="$1"
local name_str="$2"
local color_dk="$3"
local name_lc=`echo "$name" | tr '[:upper:]' '[:lower:]'`
# String
generate_accent_common "$name" "$name_str"
# Settings arrays
insert_above_xml_comment "vector/src/main/res/values/arrays_sc.xml" \
"do not change this comment for dark accent entry generation" \
"<item>@string/sc_accent_$name_lc</item> <!-- Dark $name name -->" \
" "
insert_above_xml_comment "vector/src/main/res/values/arrays_sc.xml" \
"do not change this comment for dark accent value generation" \
"<item>$name_lc</item> <!-- Dark $name id -->" \
" "
insert_above_xml_comment "vector/src/main/res/values/arrays_sc.xml" \
"do not change this comment for dark accent preview generation" \
"<item>$color_dk</item> <!-- Dark $name accent -->" \
" "
# Actual theming
for f in **/"theme_sc_accent_bluelight.xml"; do
theme_file "$f" "$name" "$color_dk" \;
done
# Selection code
insert_above_java_comment "vector/src/main/java/im/vector/app/features/themes/ThemeUtils.kt" \
"Do not change this comment for automatic black theme insertion" \
"\"$name_lc\" -> R.style.AppTheme_SC_$name" \
" "
insert_above_java_comment "vector/src/main/java/im/vector/app/features/themes/ThemeUtils.kt" \
"Do not change this comment for automatic dark theme insertion" \
"\"$name_lc\" -> R.style.AppTheme_SC_Dark_$name" \
" "
insert_above_java_comment "vector/src/main/java/im/vector/app/features/themes/ThemeUtils.kt" \
"Do not change this comment for automatic black colored theme insertion" \
"\"$name_lc\" -> R.style.AppTheme_SC_Colored_$name" \
" "
insert_above_java_comment "vector/src/main/java/im/vector/app/features/themes/ThemeUtils.kt" \
"Do not change this comment for automatic dark colored theme insertion" \
"\"$name_lc\" -> R.style.AppTheme_SC_Dark_Colored_$name" \
" "
}
function generate_accent() {
# Usage:
# generate_accent <name> <color_for_light_themes> <color_for_dark_themes>
local name="$1"
local color_lt="$2"
local color_dk="$3"
local name_str="$4"
if [ -z "$name_str" ]; then
name_str="$name"
fi
generate_accent_light "$name" "$name_str" "$color_lt"
generate_accent_dark "$name" "$name_str" "$color_dk"
}
generate_accent "Amber" "#ffa000" "#ffab00"
generate_accent "BlueLight" "#03a9f4" "#03a9f4" "Light blue"
# TODO normal blue
generate_accent "Cyan" "#00bcd4" "#00bcd4"
generate_accent "Gold" "#CFB53B" "#CFB53B"
#generate_accent "GreenLight" "#8bc34a" "#8bc34a"
generate_accent "Lime" "#cddc39" "#cddc39"
generate_accent "Orange" "#ff9800" "#ff9800"
generate_accent "Pink" "#e91e63" "#f48fb1"
generate_accent "Purple" "#673ab7" "#673ab7"
generate_accent "Red" "#ff0000" "#ff0000"
generate_accent "Teal" "#008577" "#80cbc4"
generate_accent "Turquoise" "#00C1C1" "#00FFFF"
generate_accent "Yellow" "#fdd835" "#ffeb3b"
# We have foreground on accent colors, better skip these
#generate_accent "Grey" "#808080" "#808080"
#generate_accent_light "Black" "Black" "#212121"
#generate_accent_dark "White" "White" "#eeeeee"
popd > /dev/null

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Amber.v23" parent="AppTheme.Base.SC.Amber">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Amber.v23" parent="AppTheme.Base.SC.Dark.Amber">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Amber.v23" parent="AppTheme.Base.SC.Colored.Amber">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Amber.v23" parent="AppTheme.Base.SC.Dark.Colored.Amber">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Amber" parent="AppTheme.SC.Amber.v23"/>
<style name="AppTheme.SC.Dark.Amber" parent="AppTheme.SC.Dark.Amber.v23"/>
<style name="AppTheme.SC.Colored.Amber" parent="AppTheme.SC.Colored.Amber.v23"/>
<style name="AppTheme.SC.Dark.Colored.Amber" parent="AppTheme.SC.Dark.Colored.Amber.v23"/>
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.BlueLight.v23" parent="AppTheme.Base.SC.BlueLight">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.BlueLight.v23" parent="AppTheme.Base.SC.Dark.BlueLight">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Colored.BlueLight.v23" parent="AppTheme.Base.SC.Colored.BlueLight">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.BlueLight.v23" parent="AppTheme.Base.SC.Dark.Colored.BlueLight">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.BlueLight" parent="AppTheme.SC.BlueLight.v23"/>
<style name="AppTheme.SC.Dark.BlueLight" parent="AppTheme.SC.Dark.BlueLight.v23"/>
<style name="AppTheme.SC.Colored.BlueLight" parent="AppTheme.SC.Colored.BlueLight.v23"/>
<style name="AppTheme.SC.Dark.Colored.BlueLight" parent="AppTheme.SC.Dark.Colored.BlueLight.v23"/>
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Cyan.v23" parent="AppTheme.Base.SC.Cyan">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Cyan.v23" parent="AppTheme.Base.SC.Dark.Cyan">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Cyan.v23" parent="AppTheme.Base.SC.Colored.Cyan">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Cyan.v23" parent="AppTheme.Base.SC.Dark.Colored.Cyan">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Cyan" parent="AppTheme.SC.Cyan.v23"/>
<style name="AppTheme.SC.Dark.Cyan" parent="AppTheme.SC.Dark.Cyan.v23"/>
<style name="AppTheme.SC.Colored.Cyan" parent="AppTheme.SC.Colored.Cyan.v23"/>
<style name="AppTheme.SC.Dark.Colored.Cyan" parent="AppTheme.SC.Dark.Colored.Cyan.v23"/>
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Gold.v23" parent="AppTheme.Base.SC.Gold">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Gold.v23" parent="AppTheme.Base.SC.Dark.Gold">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Gold.v23" parent="AppTheme.Base.SC.Colored.Gold">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Gold.v23" parent="AppTheme.Base.SC.Dark.Colored.Gold">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Gold" parent="AppTheme.SC.Gold.v23"/>
<style name="AppTheme.SC.Dark.Gold" parent="AppTheme.SC.Dark.Gold.v23"/>
<style name="AppTheme.SC.Colored.Gold" parent="AppTheme.SC.Colored.Gold.v23"/>
<style name="AppTheme.SC.Dark.Colored.Gold" parent="AppTheme.SC.Dark.Colored.Gold.v23"/>
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Lime.v23" parent="AppTheme.Base.SC.Lime">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Lime.v23" parent="AppTheme.Base.SC.Dark.Lime">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Lime.v23" parent="AppTheme.Base.SC.Colored.Lime">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Lime.v23" parent="AppTheme.Base.SC.Dark.Colored.Lime">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Lime" parent="AppTheme.SC.Lime.v23"/>
<style name="AppTheme.SC.Dark.Lime" parent="AppTheme.SC.Dark.Lime.v23"/>
<style name="AppTheme.SC.Colored.Lime" parent="AppTheme.SC.Colored.Lime.v23"/>
<style name="AppTheme.SC.Dark.Colored.Lime" parent="AppTheme.SC.Dark.Colored.Lime.v23"/>
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Orange.v23" parent="AppTheme.Base.SC.Orange">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Orange.v23" parent="AppTheme.Base.SC.Dark.Orange">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Orange.v23" parent="AppTheme.Base.SC.Colored.Orange">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Orange.v23" parent="AppTheme.Base.SC.Dark.Colored.Orange">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Orange" parent="AppTheme.SC.Orange.v23"/>
<style name="AppTheme.SC.Dark.Orange" parent="AppTheme.SC.Dark.Orange.v23"/>
<style name="AppTheme.SC.Colored.Orange" parent="AppTheme.SC.Colored.Orange.v23"/>
<style name="AppTheme.SC.Dark.Colored.Orange" parent="AppTheme.SC.Dark.Colored.Orange.v23"/>
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Pink.v23" parent="AppTheme.Base.SC.Pink">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Pink.v23" parent="AppTheme.Base.SC.Dark.Pink">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Pink.v23" parent="AppTheme.Base.SC.Colored.Pink">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Pink.v23" parent="AppTheme.Base.SC.Dark.Colored.Pink">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Pink" parent="AppTheme.SC.Pink.v23"/>
<style name="AppTheme.SC.Dark.Pink" parent="AppTheme.SC.Dark.Pink.v23"/>
<style name="AppTheme.SC.Colored.Pink" parent="AppTheme.SC.Colored.Pink.v23"/>
<style name="AppTheme.SC.Dark.Colored.Pink" parent="AppTheme.SC.Dark.Colored.Pink.v23"/>
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Purple.v23" parent="AppTheme.Base.SC.Purple">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Purple.v23" parent="AppTheme.Base.SC.Dark.Purple">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Purple.v23" parent="AppTheme.Base.SC.Colored.Purple">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Purple.v23" parent="AppTheme.Base.SC.Dark.Colored.Purple">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Purple" parent="AppTheme.SC.Purple.v23"/>
<style name="AppTheme.SC.Dark.Purple" parent="AppTheme.SC.Dark.Purple.v23"/>
<style name="AppTheme.SC.Colored.Purple" parent="AppTheme.SC.Colored.Purple.v23"/>
<style name="AppTheme.SC.Dark.Colored.Purple" parent="AppTheme.SC.Dark.Colored.Purple.v23"/>
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Red.v23" parent="AppTheme.Base.SC.Red">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Red.v23" parent="AppTheme.Base.SC.Dark.Red">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Red.v23" parent="AppTheme.Base.SC.Colored.Red">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Red.v23" parent="AppTheme.Base.SC.Dark.Colored.Red">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Red" parent="AppTheme.SC.Red.v23"/>
<style name="AppTheme.SC.Dark.Red" parent="AppTheme.SC.Dark.Red.v23"/>
<style name="AppTheme.SC.Colored.Red" parent="AppTheme.SC.Colored.Red.v23"/>
<style name="AppTheme.SC.Dark.Colored.Red" parent="AppTheme.SC.Dark.Colored.Red.v23"/>
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Teal.v23" parent="AppTheme.Base.SC.Teal">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Teal.v23" parent="AppTheme.Base.SC.Dark.Teal">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Teal.v23" parent="AppTheme.Base.SC.Colored.Teal">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Teal.v23" parent="AppTheme.Base.SC.Dark.Colored.Teal">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Teal" parent="AppTheme.SC.Teal.v23"/>
<style name="AppTheme.SC.Dark.Teal" parent="AppTheme.SC.Dark.Teal.v23"/>
<style name="AppTheme.SC.Colored.Teal" parent="AppTheme.SC.Colored.Teal.v23"/>
<style name="AppTheme.SC.Dark.Colored.Teal" parent="AppTheme.SC.Dark.Colored.Teal.v23"/>
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Turquoise.v23" parent="AppTheme.Base.SC.Turquoise">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Turquoise.v23" parent="AppTheme.Base.SC.Dark.Turquoise">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Turquoise.v23" parent="AppTheme.Base.SC.Colored.Turquoise">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Turquoise.v23" parent="AppTheme.Base.SC.Dark.Colored.Turquoise">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Turquoise" parent="AppTheme.SC.Turquoise.v23"/>
<style name="AppTheme.SC.Dark.Turquoise" parent="AppTheme.SC.Dark.Turquoise.v23"/>
<style name="AppTheme.SC.Colored.Turquoise" parent="AppTheme.SC.Colored.Turquoise.v23"/>
<style name="AppTheme.SC.Dark.Colored.Turquoise" parent="AppTheme.SC.Dark.Colored.Turquoise.v23"/>
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Yellow.v23" parent="AppTheme.Base.SC.Yellow">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Yellow.v23" parent="AppTheme.Base.SC.Dark.Yellow">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Yellow.v23" parent="AppTheme.Base.SC.Colored.Yellow">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Yellow.v23" parent="AppTheme.Base.SC.Dark.Colored.Yellow">
<item name="android:windowLightStatusBar">false</item>
</style>
<style name="AppTheme.SC.Yellow" parent="AppTheme.SC.Yellow.v23"/>
<style name="AppTheme.SC.Dark.Yellow" parent="AppTheme.SC.Dark.Yellow.v23"/>
<style name="AppTheme.SC.Colored.Yellow" parent="AppTheme.SC.Colored.Yellow.v23"/>
<style name="AppTheme.SC.Dark.Colored.Yellow" parent="AppTheme.SC.Dark.Colored.Yellow.v23"/>
</resources>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Amber.v23" parent="AppTheme.Base.SC.Light.Amber">
<item name="android:statusBarColor">@color/background_sc_light_statusbar</item>
<item name="android:windowLightStatusBar">true</item>
</style>
<style name="AppTheme.SC.Light.Amber" parent="AppTheme.SC.Light.Amber.v23"/>
</resources>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.BlueLight.v23" parent="AppTheme.Base.SC.Light.BlueLight">
<item name="android:statusBarColor">@color/background_sc_light_statusbar</item>
<item name="android:windowLightStatusBar">true</item>
</style>
<style name="AppTheme.SC.Light.BlueLight" parent="AppTheme.SC.Light.BlueLight.v23"/>
</resources>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Cyan.v23" parent="AppTheme.Base.SC.Light.Cyan">
<item name="android:statusBarColor">@color/background_sc_light_statusbar</item>
<item name="android:windowLightStatusBar">true</item>
</style>
<style name="AppTheme.SC.Light.Cyan" parent="AppTheme.SC.Light.Cyan.v23"/>
</resources>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Gold.v23" parent="AppTheme.Base.SC.Light.Gold">
<item name="android:statusBarColor">@color/background_sc_light_statusbar</item>
<item name="android:windowLightStatusBar">true</item>
</style>
<style name="AppTheme.SC.Light.Gold" parent="AppTheme.SC.Light.Gold.v23"/>
</resources>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Lime.v23" parent="AppTheme.Base.SC.Light.Lime">
<item name="android:statusBarColor">@color/background_sc_light_statusbar</item>
<item name="android:windowLightStatusBar">true</item>
</style>
<style name="AppTheme.SC.Light.Lime" parent="AppTheme.SC.Light.Lime.v23"/>
</resources>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Orange.v23" parent="AppTheme.Base.SC.Light.Orange">
<item name="android:statusBarColor">@color/background_sc_light_statusbar</item>
<item name="android:windowLightStatusBar">true</item>
</style>
<style name="AppTheme.SC.Light.Orange" parent="AppTheme.SC.Light.Orange.v23"/>
</resources>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Pink.v23" parent="AppTheme.Base.SC.Light.Pink">
<item name="android:statusBarColor">@color/background_sc_light_statusbar</item>
<item name="android:windowLightStatusBar">true</item>
</style>
<style name="AppTheme.SC.Light.Pink" parent="AppTheme.SC.Light.Pink.v23"/>
</resources>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Purple.v23" parent="AppTheme.Base.SC.Light.Purple">
<item name="android:statusBarColor">@color/background_sc_light_statusbar</item>
<item name="android:windowLightStatusBar">true</item>
</style>
<style name="AppTheme.SC.Light.Purple" parent="AppTheme.SC.Light.Purple.v23"/>
</resources>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Red.v23" parent="AppTheme.Base.SC.Light.Red">
<item name="android:statusBarColor">@color/background_sc_light_statusbar</item>
<item name="android:windowLightStatusBar">true</item>
</style>
<style name="AppTheme.SC.Light.Red" parent="AppTheme.SC.Light.Red.v23"/>
</resources>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Teal.v23" parent="AppTheme.Base.SC.Light.Teal">
<item name="android:statusBarColor">@color/background_sc_light_statusbar</item>
<item name="android:windowLightStatusBar">true</item>
</style>
<style name="AppTheme.SC.Light.Teal" parent="AppTheme.SC.Light.Teal.v23"/>
</resources>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Turquoise.v23" parent="AppTheme.Base.SC.Light.Turquoise">
<item name="android:statusBarColor">@color/background_sc_light_statusbar</item>
<item name="android:windowLightStatusBar">true</item>
</style>
<style name="AppTheme.SC.Light.Turquoise" parent="AppTheme.SC.Light.Turquoise.v23"/>
</resources>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Yellow.v23" parent="AppTheme.Base.SC.Light.Yellow">
<item name="android:statusBarColor">@color/background_sc_light_statusbar</item>
<item name="android:windowLightStatusBar">true</item>
</style>
<style name="AppTheme.SC.Light.Yellow" parent="AppTheme.SC.Light.Yellow.v23"/>
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Amber.v27" parent="AppTheme.SC.Amber.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Amber.v27" parent="AppTheme.SC.Dark.Amber.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Amber.v27" parent="AppTheme.SC.Colored.Amber.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Amber.v27" parent="AppTheme.SC.Dark.Colored.Amber.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Amber" parent="AppTheme.SC.Amber.v27" />
<style name="AppTheme.SC.Dark.Amber" parent="AppTheme.SC.Dark.Amber.v27" />
<style name="AppTheme.SC.Colored.Amber" parent="AppTheme.SC.Colored.Amber.v27" />
<style name="AppTheme.SC.Dark.Colored.Amber" parent="AppTheme.SC.Dark.Colored.Amber.v27" />
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.BlueLight.v27" parent="AppTheme.SC.BlueLight.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.BlueLight.v27" parent="AppTheme.SC.Dark.BlueLight.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Colored.BlueLight.v27" parent="AppTheme.SC.Colored.BlueLight.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.BlueLight.v27" parent="AppTheme.SC.Dark.Colored.BlueLight.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.BlueLight" parent="AppTheme.SC.BlueLight.v27" />
<style name="AppTheme.SC.Dark.BlueLight" parent="AppTheme.SC.Dark.BlueLight.v27" />
<style name="AppTheme.SC.Colored.BlueLight" parent="AppTheme.SC.Colored.BlueLight.v27" />
<style name="AppTheme.SC.Dark.Colored.BlueLight" parent="AppTheme.SC.Dark.Colored.BlueLight.v27" />
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Cyan.v27" parent="AppTheme.SC.Cyan.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Cyan.v27" parent="AppTheme.SC.Dark.Cyan.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Cyan.v27" parent="AppTheme.SC.Colored.Cyan.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Cyan.v27" parent="AppTheme.SC.Dark.Colored.Cyan.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Cyan" parent="AppTheme.SC.Cyan.v27" />
<style name="AppTheme.SC.Dark.Cyan" parent="AppTheme.SC.Dark.Cyan.v27" />
<style name="AppTheme.SC.Colored.Cyan" parent="AppTheme.SC.Colored.Cyan.v27" />
<style name="AppTheme.SC.Dark.Colored.Cyan" parent="AppTheme.SC.Dark.Colored.Cyan.v27" />
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Gold.v27" parent="AppTheme.SC.Gold.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Gold.v27" parent="AppTheme.SC.Dark.Gold.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Gold.v27" parent="AppTheme.SC.Colored.Gold.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Gold.v27" parent="AppTheme.SC.Dark.Colored.Gold.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Gold" parent="AppTheme.SC.Gold.v27" />
<style name="AppTheme.SC.Dark.Gold" parent="AppTheme.SC.Dark.Gold.v27" />
<style name="AppTheme.SC.Colored.Gold" parent="AppTheme.SC.Colored.Gold.v27" />
<style name="AppTheme.SC.Dark.Colored.Gold" parent="AppTheme.SC.Dark.Colored.Gold.v27" />
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Lime.v27" parent="AppTheme.SC.Lime.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Lime.v27" parent="AppTheme.SC.Dark.Lime.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Lime.v27" parent="AppTheme.SC.Colored.Lime.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Lime.v27" parent="AppTheme.SC.Dark.Colored.Lime.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Lime" parent="AppTheme.SC.Lime.v27" />
<style name="AppTheme.SC.Dark.Lime" parent="AppTheme.SC.Dark.Lime.v27" />
<style name="AppTheme.SC.Colored.Lime" parent="AppTheme.SC.Colored.Lime.v27" />
<style name="AppTheme.SC.Dark.Colored.Lime" parent="AppTheme.SC.Dark.Colored.Lime.v27" />
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Orange.v27" parent="AppTheme.SC.Orange.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Orange.v27" parent="AppTheme.SC.Dark.Orange.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Orange.v27" parent="AppTheme.SC.Colored.Orange.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Orange.v27" parent="AppTheme.SC.Dark.Colored.Orange.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Orange" parent="AppTheme.SC.Orange.v27" />
<style name="AppTheme.SC.Dark.Orange" parent="AppTheme.SC.Dark.Orange.v27" />
<style name="AppTheme.SC.Colored.Orange" parent="AppTheme.SC.Colored.Orange.v27" />
<style name="AppTheme.SC.Dark.Colored.Orange" parent="AppTheme.SC.Dark.Colored.Orange.v27" />
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Pink.v27" parent="AppTheme.SC.Pink.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Pink.v27" parent="AppTheme.SC.Dark.Pink.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Pink.v27" parent="AppTheme.SC.Colored.Pink.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Pink.v27" parent="AppTheme.SC.Dark.Colored.Pink.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Pink" parent="AppTheme.SC.Pink.v27" />
<style name="AppTheme.SC.Dark.Pink" parent="AppTheme.SC.Dark.Pink.v27" />
<style name="AppTheme.SC.Colored.Pink" parent="AppTheme.SC.Colored.Pink.v27" />
<style name="AppTheme.SC.Dark.Colored.Pink" parent="AppTheme.SC.Dark.Colored.Pink.v27" />
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Purple.v27" parent="AppTheme.SC.Purple.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Purple.v27" parent="AppTheme.SC.Dark.Purple.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Purple.v27" parent="AppTheme.SC.Colored.Purple.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Purple.v27" parent="AppTheme.SC.Dark.Colored.Purple.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Purple" parent="AppTheme.SC.Purple.v27" />
<style name="AppTheme.SC.Dark.Purple" parent="AppTheme.SC.Dark.Purple.v27" />
<style name="AppTheme.SC.Colored.Purple" parent="AppTheme.SC.Colored.Purple.v27" />
<style name="AppTheme.SC.Dark.Colored.Purple" parent="AppTheme.SC.Dark.Colored.Purple.v27" />
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Red.v27" parent="AppTheme.SC.Red.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Red.v27" parent="AppTheme.SC.Dark.Red.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Red.v27" parent="AppTheme.SC.Colored.Red.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Red.v27" parent="AppTheme.SC.Dark.Colored.Red.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Red" parent="AppTheme.SC.Red.v27" />
<style name="AppTheme.SC.Dark.Red" parent="AppTheme.SC.Dark.Red.v27" />
<style name="AppTheme.SC.Colored.Red" parent="AppTheme.SC.Colored.Red.v27" />
<style name="AppTheme.SC.Dark.Colored.Red" parent="AppTheme.SC.Dark.Colored.Red.v27" />
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Teal.v27" parent="AppTheme.SC.Teal.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Teal.v27" parent="AppTheme.SC.Dark.Teal.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Teal.v27" parent="AppTheme.SC.Colored.Teal.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Teal.v27" parent="AppTheme.SC.Dark.Colored.Teal.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Teal" parent="AppTheme.SC.Teal.v27" />
<style name="AppTheme.SC.Dark.Teal" parent="AppTheme.SC.Dark.Teal.v27" />
<style name="AppTheme.SC.Colored.Teal" parent="AppTheme.SC.Colored.Teal.v27" />
<style name="AppTheme.SC.Dark.Colored.Teal" parent="AppTheme.SC.Dark.Colored.Teal.v27" />
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Turquoise.v27" parent="AppTheme.SC.Turquoise.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Turquoise.v27" parent="AppTheme.SC.Dark.Turquoise.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Turquoise.v27" parent="AppTheme.SC.Colored.Turquoise.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Turquoise.v27" parent="AppTheme.SC.Dark.Colored.Turquoise.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Turquoise" parent="AppTheme.SC.Turquoise.v27" />
<style name="AppTheme.SC.Dark.Turquoise" parent="AppTheme.SC.Dark.Turquoise.v27" />
<style name="AppTheme.SC.Colored.Turquoise" parent="AppTheme.SC.Colored.Turquoise.v27" />
<style name="AppTheme.SC.Dark.Colored.Turquoise" parent="AppTheme.SC.Dark.Colored.Turquoise.v27" />
</resources>

View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Yellow.v27" parent="AppTheme.SC.Yellow.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Yellow.v27" parent="AppTheme.SC.Dark.Yellow.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Colored.Yellow.v27" parent="AppTheme.SC.Colored.Yellow.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Dark.Colored.Yellow.v27" parent="AppTheme.SC.Dark.Colored.Yellow.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Yellow" parent="AppTheme.SC.Yellow.v27" />
<style name="AppTheme.SC.Dark.Yellow" parent="AppTheme.SC.Dark.Yellow.v27" />
<style name="AppTheme.SC.Colored.Yellow" parent="AppTheme.SC.Colored.Yellow.v27" />
<style name="AppTheme.SC.Dark.Colored.Yellow" parent="AppTheme.SC.Dark.Colored.Yellow.v27" />
</resources>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Amber.v27" parent="AppTheme.SC.Light.Amber.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Light.Amber" parent="AppTheme.SC.Light.Amber.v27" />
</resources>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.BlueLight.v27" parent="AppTheme.SC.Light.BlueLight.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Light.BlueLight" parent="AppTheme.SC.Light.BlueLight.v27" />
</resources>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Cyan.v27" parent="AppTheme.SC.Light.Cyan.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Light.Cyan" parent="AppTheme.SC.Light.Cyan.v27" />
</resources>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Gold.v27" parent="AppTheme.SC.Light.Gold.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Light.Gold" parent="AppTheme.SC.Light.Gold.v27" />
</resources>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Lime.v27" parent="AppTheme.SC.Light.Lime.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Light.Lime" parent="AppTheme.SC.Light.Lime.v27" />
</resources>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Orange.v27" parent="AppTheme.SC.Light.Orange.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Light.Orange" parent="AppTheme.SC.Light.Orange.v27" />
</resources>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Pink.v27" parent="AppTheme.SC.Light.Pink.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Light.Pink" parent="AppTheme.SC.Light.Pink.v27" />
</resources>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Purple.v27" parent="AppTheme.SC.Light.Purple.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Light.Purple" parent="AppTheme.SC.Light.Purple.v27" />
</resources>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Red.v27" parent="AppTheme.SC.Light.Red.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Light.Red" parent="AppTheme.SC.Light.Red.v27" />
</resources>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Teal.v27" parent="AppTheme.SC.Light.Teal.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Light.Teal" parent="AppTheme.SC.Light.Teal.v27" />
</resources>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Turquoise.v27" parent="AppTheme.SC.Light.Turquoise.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Light.Turquoise" parent="AppTheme.SC.Light.Turquoise.v27" />
</resources>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.SC.Light.Yellow.v27" parent="AppTheme.SC.Light.Yellow.v23">
<item name="android:windowLightNavigationBar">false</item>
</style>
<style name="AppTheme.SC.Light.Yellow" parent="AppTheme.SC.Light.Yellow.v27" />
</resources>

View file

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_dark_amber">#ffab00</color>
<color name="accent_sc_dark_amber_alpha25">#3fffab00</color>
<color name="accent_sc_dark_amber_pale">@color/accent_sc_dark_amber</color>
<color name="accent_sc_dark_amber_dark">@color/accent_sc_dark_amber_alpha25</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Amber">
<item name="android:colorAccent">@color/accent_sc_dark_amber</item>
<item name="colorAccent">@color/accent_sc_dark_amber</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Amber">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_amber_dark</item>
<item name="colorAccent">@color/accent_sc_dark_amber</item>
<item name="android:colorAccent">@color/accent_sc_dark_amber</item>
<item name="colorAccentPale">@color/accent_sc_dark_amber_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_amber_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Amber</item>
</style>
<style name="AppTheme.Base.SC.Dark.Amber">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_amber_dark</item>
<item name="colorAccent">@color/accent_sc_dark_amber</item>
<item name="android:colorAccent">@color/accent_sc_dark_amber</item>
<item name="colorAccentPale">@color/accent_sc_dark_amber_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_amber_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Amber</item>
</style>
<style name="AppTheme.Base.SC.Colored.Amber">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_amber_dark</item>
<item name="colorAccent">@color/accent_sc_dark_amber</item>
<item name="android:colorAccent">@color/accent_sc_dark_amber</item>
<item name="colorAccentPale">@color/accent_sc_dark_amber_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Amber</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_amber_alpha25</item>
</style>
<style name="AppTheme.Base.SC.Dark.Colored.Amber">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_amber_dark</item>
<item name="colorAccent">@color/accent_sc_dark_amber</item>
<item name="android:colorAccent">@color/accent_sc_dark_amber</item>
<item name="colorAccentPale">@color/accent_sc_dark_amber_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Amber</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_amber_alpha25</item>
</style>
<style name="AppTheme.SC.Amber" parent="AppTheme.Base.SC.Amber" />
<style name="AppTheme.SC.Dark.Amber" parent="AppTheme.Base.SC.Dark.Amber" />
<style name="AppTheme.SC.Colored.Amber" parent="AppTheme.Base.SC.Colored.Amber" />
<style name="AppTheme.SC.Dark.Colored.Amber" parent="AppTheme.Base.SC.Dark.Colored.Amber" />
<style name="AppTheme.AttachmentsPreview.SC.Amber" parent="AppTheme.Base.SC.Amber"/>
<style name="AppTheme.Transparent.SC.Amber">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_amber_dark</item>
<item name="colorAccent">@color/accent_sc_dark_amber</item>
<item name="android:colorAccent">@color/accent_sc_dark_amber</item>
<item name="colorAccentPale">@color/accent_sc_dark_amber_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_amber_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Amber</item>
</style>
</resources>

View file

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_dark_bluelight">#03a9f4</color>
<color name="accent_sc_dark_bluelight_alpha25">#3f03a9f4</color>
<color name="accent_sc_dark_bluelight_pale">@color/accent_sc_dark_bluelight</color>
<color name="accent_sc_dark_bluelight_dark">@color/accent_sc_dark_bluelight_alpha25</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.BlueLight">
<item name="android:colorAccent">@color/accent_sc_dark_bluelight</item>
<item name="colorAccent">@color/accent_sc_dark_bluelight</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.BlueLight">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_bluelight_dark</item>
<item name="colorAccent">@color/accent_sc_dark_bluelight</item>
<item name="android:colorAccent">@color/accent_sc_dark_bluelight</item>
<item name="colorAccentPale">@color/accent_sc_dark_bluelight_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_bluelight_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.BlueLight</item>
</style>
<style name="AppTheme.Base.SC.Dark.BlueLight">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_bluelight_dark</item>
<item name="colorAccent">@color/accent_sc_dark_bluelight</item>
<item name="android:colorAccent">@color/accent_sc_dark_bluelight</item>
<item name="colorAccentPale">@color/accent_sc_dark_bluelight_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_bluelight_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.BlueLight</item>
</style>
<style name="AppTheme.Base.SC.Colored.BlueLight">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_bluelight_dark</item>
<item name="colorAccent">@color/accent_sc_dark_bluelight</item>
<item name="android:colorAccent">@color/accent_sc_dark_bluelight</item>
<item name="colorAccentPale">@color/accent_sc_dark_bluelight_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.BlueLight</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_bluelight_alpha25</item>
</style>
<style name="AppTheme.Base.SC.Dark.Colored.BlueLight">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_bluelight_dark</item>
<item name="colorAccent">@color/accent_sc_dark_bluelight</item>
<item name="android:colorAccent">@color/accent_sc_dark_bluelight</item>
<item name="colorAccentPale">@color/accent_sc_dark_bluelight_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.BlueLight</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_bluelight_alpha25</item>
</style>
<style name="AppTheme.SC.BlueLight" parent="AppTheme.Base.SC.BlueLight" />
<style name="AppTheme.SC.Dark.BlueLight" parent="AppTheme.Base.SC.Dark.BlueLight" />
<style name="AppTheme.SC.Colored.BlueLight" parent="AppTheme.Base.SC.Colored.BlueLight" />
<style name="AppTheme.SC.Dark.Colored.BlueLight" parent="AppTheme.Base.SC.Dark.Colored.BlueLight" />
<style name="AppTheme.AttachmentsPreview.SC.BlueLight" parent="AppTheme.Base.SC.BlueLight"/>
<style name="AppTheme.Transparent.SC.BlueLight">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_bluelight_dark</item>
<item name="colorAccent">@color/accent_sc_dark_bluelight</item>
<item name="android:colorAccent">@color/accent_sc_dark_bluelight</item>
<item name="colorAccentPale">@color/accent_sc_dark_bluelight_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_bluelight_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.BlueLight</item>
</style>
</resources>

View file

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_dark_cyan">#00bcd4</color>
<color name="accent_sc_dark_cyan_alpha25">#3f00bcd4</color>
<color name="accent_sc_dark_cyan_pale">@color/accent_sc_dark_cyan</color>
<color name="accent_sc_dark_cyan_dark">@color/accent_sc_dark_cyan_alpha25</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Cyan">
<item name="android:colorAccent">@color/accent_sc_dark_cyan</item>
<item name="colorAccent">@color/accent_sc_dark_cyan</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Cyan">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_cyan_dark</item>
<item name="colorAccent">@color/accent_sc_dark_cyan</item>
<item name="android:colorAccent">@color/accent_sc_dark_cyan</item>
<item name="colorAccentPale">@color/accent_sc_dark_cyan_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_cyan_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Cyan</item>
</style>
<style name="AppTheme.Base.SC.Dark.Cyan">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_cyan_dark</item>
<item name="colorAccent">@color/accent_sc_dark_cyan</item>
<item name="android:colorAccent">@color/accent_sc_dark_cyan</item>
<item name="colorAccentPale">@color/accent_sc_dark_cyan_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_cyan_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Cyan</item>
</style>
<style name="AppTheme.Base.SC.Colored.Cyan">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_cyan_dark</item>
<item name="colorAccent">@color/accent_sc_dark_cyan</item>
<item name="android:colorAccent">@color/accent_sc_dark_cyan</item>
<item name="colorAccentPale">@color/accent_sc_dark_cyan_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Cyan</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_cyan_alpha25</item>
</style>
<style name="AppTheme.Base.SC.Dark.Colored.Cyan">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_cyan_dark</item>
<item name="colorAccent">@color/accent_sc_dark_cyan</item>
<item name="android:colorAccent">@color/accent_sc_dark_cyan</item>
<item name="colorAccentPale">@color/accent_sc_dark_cyan_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Cyan</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_cyan_alpha25</item>
</style>
<style name="AppTheme.SC.Cyan" parent="AppTheme.Base.SC.Cyan" />
<style name="AppTheme.SC.Dark.Cyan" parent="AppTheme.Base.SC.Dark.Cyan" />
<style name="AppTheme.SC.Colored.Cyan" parent="AppTheme.Base.SC.Colored.Cyan" />
<style name="AppTheme.SC.Dark.Colored.Cyan" parent="AppTheme.Base.SC.Dark.Colored.Cyan" />
<style name="AppTheme.AttachmentsPreview.SC.Cyan" parent="AppTheme.Base.SC.Cyan"/>
<style name="AppTheme.Transparent.SC.Cyan">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_cyan_dark</item>
<item name="colorAccent">@color/accent_sc_dark_cyan</item>
<item name="android:colorAccent">@color/accent_sc_dark_cyan</item>
<item name="colorAccentPale">@color/accent_sc_dark_cyan_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_cyan_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Cyan</item>
</style>
</resources>

View file

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_dark_gold">#CFB53B</color>
<color name="accent_sc_dark_gold_alpha25">#3fCFB53B</color>
<color name="accent_sc_dark_gold_pale">@color/accent_sc_dark_gold</color>
<color name="accent_sc_dark_gold_dark">@color/accent_sc_dark_gold_alpha25</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Gold">
<item name="android:colorAccent">@color/accent_sc_dark_gold</item>
<item name="colorAccent">@color/accent_sc_dark_gold</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Gold">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_gold_dark</item>
<item name="colorAccent">@color/accent_sc_dark_gold</item>
<item name="android:colorAccent">@color/accent_sc_dark_gold</item>
<item name="colorAccentPale">@color/accent_sc_dark_gold_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_gold_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Gold</item>
</style>
<style name="AppTheme.Base.SC.Dark.Gold">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_gold_dark</item>
<item name="colorAccent">@color/accent_sc_dark_gold</item>
<item name="android:colorAccent">@color/accent_sc_dark_gold</item>
<item name="colorAccentPale">@color/accent_sc_dark_gold_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_gold_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Gold</item>
</style>
<style name="AppTheme.Base.SC.Colored.Gold">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_gold_dark</item>
<item name="colorAccent">@color/accent_sc_dark_gold</item>
<item name="android:colorAccent">@color/accent_sc_dark_gold</item>
<item name="colorAccentPale">@color/accent_sc_dark_gold_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Gold</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_gold_alpha25</item>
</style>
<style name="AppTheme.Base.SC.Dark.Colored.Gold">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_gold_dark</item>
<item name="colorAccent">@color/accent_sc_dark_gold</item>
<item name="android:colorAccent">@color/accent_sc_dark_gold</item>
<item name="colorAccentPale">@color/accent_sc_dark_gold_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Gold</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_gold_alpha25</item>
</style>
<style name="AppTheme.SC.Gold" parent="AppTheme.Base.SC.Gold" />
<style name="AppTheme.SC.Dark.Gold" parent="AppTheme.Base.SC.Dark.Gold" />
<style name="AppTheme.SC.Colored.Gold" parent="AppTheme.Base.SC.Colored.Gold" />
<style name="AppTheme.SC.Dark.Colored.Gold" parent="AppTheme.Base.SC.Dark.Colored.Gold" />
<style name="AppTheme.AttachmentsPreview.SC.Gold" parent="AppTheme.Base.SC.Gold"/>
<style name="AppTheme.Transparent.SC.Gold">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_gold_dark</item>
<item name="colorAccent">@color/accent_sc_dark_gold</item>
<item name="android:colorAccent">@color/accent_sc_dark_gold</item>
<item name="colorAccentPale">@color/accent_sc_dark_gold_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_gold_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Gold</item>
</style>
</resources>

View file

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_dark_lime">#cddc39</color>
<color name="accent_sc_dark_lime_alpha25">#3fcddc39</color>
<color name="accent_sc_dark_lime_pale">@color/accent_sc_dark_lime</color>
<color name="accent_sc_dark_lime_dark">@color/accent_sc_dark_lime_alpha25</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Lime">
<item name="android:colorAccent">@color/accent_sc_dark_lime</item>
<item name="colorAccent">@color/accent_sc_dark_lime</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Lime">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_lime_dark</item>
<item name="colorAccent">@color/accent_sc_dark_lime</item>
<item name="android:colorAccent">@color/accent_sc_dark_lime</item>
<item name="colorAccentPale">@color/accent_sc_dark_lime_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_lime_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Lime</item>
</style>
<style name="AppTheme.Base.SC.Dark.Lime">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_lime_dark</item>
<item name="colorAccent">@color/accent_sc_dark_lime</item>
<item name="android:colorAccent">@color/accent_sc_dark_lime</item>
<item name="colorAccentPale">@color/accent_sc_dark_lime_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_lime_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Lime</item>
</style>
<style name="AppTheme.Base.SC.Colored.Lime">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_lime_dark</item>
<item name="colorAccent">@color/accent_sc_dark_lime</item>
<item name="android:colorAccent">@color/accent_sc_dark_lime</item>
<item name="colorAccentPale">@color/accent_sc_dark_lime_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Lime</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_lime_alpha25</item>
</style>
<style name="AppTheme.Base.SC.Dark.Colored.Lime">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_lime_dark</item>
<item name="colorAccent">@color/accent_sc_dark_lime</item>
<item name="android:colorAccent">@color/accent_sc_dark_lime</item>
<item name="colorAccentPale">@color/accent_sc_dark_lime_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Lime</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_lime_alpha25</item>
</style>
<style name="AppTheme.SC.Lime" parent="AppTheme.Base.SC.Lime" />
<style name="AppTheme.SC.Dark.Lime" parent="AppTheme.Base.SC.Dark.Lime" />
<style name="AppTheme.SC.Colored.Lime" parent="AppTheme.Base.SC.Colored.Lime" />
<style name="AppTheme.SC.Dark.Colored.Lime" parent="AppTheme.Base.SC.Dark.Colored.Lime" />
<style name="AppTheme.AttachmentsPreview.SC.Lime" parent="AppTheme.Base.SC.Lime"/>
<style name="AppTheme.Transparent.SC.Lime">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_lime_dark</item>
<item name="colorAccent">@color/accent_sc_dark_lime</item>
<item name="android:colorAccent">@color/accent_sc_dark_lime</item>
<item name="colorAccentPale">@color/accent_sc_dark_lime_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_lime_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Lime</item>
</style>
</resources>

View file

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_dark_orange">#ff9800</color>
<color name="accent_sc_dark_orange_alpha25">#3fff9800</color>
<color name="accent_sc_dark_orange_pale">@color/accent_sc_dark_orange</color>
<color name="accent_sc_dark_orange_dark">@color/accent_sc_dark_orange_alpha25</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Orange">
<item name="android:colorAccent">@color/accent_sc_dark_orange</item>
<item name="colorAccent">@color/accent_sc_dark_orange</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Orange">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_orange_dark</item>
<item name="colorAccent">@color/accent_sc_dark_orange</item>
<item name="android:colorAccent">@color/accent_sc_dark_orange</item>
<item name="colorAccentPale">@color/accent_sc_dark_orange_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_orange_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Orange</item>
</style>
<style name="AppTheme.Base.SC.Dark.Orange">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_orange_dark</item>
<item name="colorAccent">@color/accent_sc_dark_orange</item>
<item name="android:colorAccent">@color/accent_sc_dark_orange</item>
<item name="colorAccentPale">@color/accent_sc_dark_orange_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_orange_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Orange</item>
</style>
<style name="AppTheme.Base.SC.Colored.Orange">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_orange_dark</item>
<item name="colorAccent">@color/accent_sc_dark_orange</item>
<item name="android:colorAccent">@color/accent_sc_dark_orange</item>
<item name="colorAccentPale">@color/accent_sc_dark_orange_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Orange</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_orange_alpha25</item>
</style>
<style name="AppTheme.Base.SC.Dark.Colored.Orange">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_orange_dark</item>
<item name="colorAccent">@color/accent_sc_dark_orange</item>
<item name="android:colorAccent">@color/accent_sc_dark_orange</item>
<item name="colorAccentPale">@color/accent_sc_dark_orange_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Orange</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_orange_alpha25</item>
</style>
<style name="AppTheme.SC.Orange" parent="AppTheme.Base.SC.Orange" />
<style name="AppTheme.SC.Dark.Orange" parent="AppTheme.Base.SC.Dark.Orange" />
<style name="AppTheme.SC.Colored.Orange" parent="AppTheme.Base.SC.Colored.Orange" />
<style name="AppTheme.SC.Dark.Colored.Orange" parent="AppTheme.Base.SC.Dark.Colored.Orange" />
<style name="AppTheme.AttachmentsPreview.SC.Orange" parent="AppTheme.Base.SC.Orange"/>
<style name="AppTheme.Transparent.SC.Orange">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_orange_dark</item>
<item name="colorAccent">@color/accent_sc_dark_orange</item>
<item name="android:colorAccent">@color/accent_sc_dark_orange</item>
<item name="colorAccentPale">@color/accent_sc_dark_orange_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_orange_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Orange</item>
</style>
</resources>

View file

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_dark_pink">#f48fb1</color>
<color name="accent_sc_dark_pink_alpha25">#3ff48fb1</color>
<color name="accent_sc_dark_pink_pale">@color/accent_sc_dark_pink</color>
<color name="accent_sc_dark_pink_dark">@color/accent_sc_dark_pink_alpha25</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Pink">
<item name="android:colorAccent">@color/accent_sc_dark_pink</item>
<item name="colorAccent">@color/accent_sc_dark_pink</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Pink">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_pink_dark</item>
<item name="colorAccent">@color/accent_sc_dark_pink</item>
<item name="android:colorAccent">@color/accent_sc_dark_pink</item>
<item name="colorAccentPale">@color/accent_sc_dark_pink_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_pink_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Pink</item>
</style>
<style name="AppTheme.Base.SC.Dark.Pink">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_pink_dark</item>
<item name="colorAccent">@color/accent_sc_dark_pink</item>
<item name="android:colorAccent">@color/accent_sc_dark_pink</item>
<item name="colorAccentPale">@color/accent_sc_dark_pink_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_pink_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Pink</item>
</style>
<style name="AppTheme.Base.SC.Colored.Pink">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_pink_dark</item>
<item name="colorAccent">@color/accent_sc_dark_pink</item>
<item name="android:colorAccent">@color/accent_sc_dark_pink</item>
<item name="colorAccentPale">@color/accent_sc_dark_pink_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Pink</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_pink_alpha25</item>
</style>
<style name="AppTheme.Base.SC.Dark.Colored.Pink">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_pink_dark</item>
<item name="colorAccent">@color/accent_sc_dark_pink</item>
<item name="android:colorAccent">@color/accent_sc_dark_pink</item>
<item name="colorAccentPale">@color/accent_sc_dark_pink_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Pink</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_pink_alpha25</item>
</style>
<style name="AppTheme.SC.Pink" parent="AppTheme.Base.SC.Pink" />
<style name="AppTheme.SC.Dark.Pink" parent="AppTheme.Base.SC.Dark.Pink" />
<style name="AppTheme.SC.Colored.Pink" parent="AppTheme.Base.SC.Colored.Pink" />
<style name="AppTheme.SC.Dark.Colored.Pink" parent="AppTheme.Base.SC.Dark.Colored.Pink" />
<style name="AppTheme.AttachmentsPreview.SC.Pink" parent="AppTheme.Base.SC.Pink"/>
<style name="AppTheme.Transparent.SC.Pink">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_pink_dark</item>
<item name="colorAccent">@color/accent_sc_dark_pink</item>
<item name="android:colorAccent">@color/accent_sc_dark_pink</item>
<item name="colorAccentPale">@color/accent_sc_dark_pink_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_pink_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Pink</item>
</style>
</resources>

View file

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_dark_purple">#673ab7</color>
<color name="accent_sc_dark_purple_alpha25">#3f673ab7</color>
<color name="accent_sc_dark_purple_pale">@color/accent_sc_dark_purple</color>
<color name="accent_sc_dark_purple_dark">@color/accent_sc_dark_purple_alpha25</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Purple">
<item name="android:colorAccent">@color/accent_sc_dark_purple</item>
<item name="colorAccent">@color/accent_sc_dark_purple</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Purple">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_purple_dark</item>
<item name="colorAccent">@color/accent_sc_dark_purple</item>
<item name="android:colorAccent">@color/accent_sc_dark_purple</item>
<item name="colorAccentPale">@color/accent_sc_dark_purple_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_purple_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Purple</item>
</style>
<style name="AppTheme.Base.SC.Dark.Purple">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_purple_dark</item>
<item name="colorAccent">@color/accent_sc_dark_purple</item>
<item name="android:colorAccent">@color/accent_sc_dark_purple</item>
<item name="colorAccentPale">@color/accent_sc_dark_purple_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_purple_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Purple</item>
</style>
<style name="AppTheme.Base.SC.Colored.Purple">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_purple_dark</item>
<item name="colorAccent">@color/accent_sc_dark_purple</item>
<item name="android:colorAccent">@color/accent_sc_dark_purple</item>
<item name="colorAccentPale">@color/accent_sc_dark_purple_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Purple</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_purple_alpha25</item>
</style>
<style name="AppTheme.Base.SC.Dark.Colored.Purple">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_purple_dark</item>
<item name="colorAccent">@color/accent_sc_dark_purple</item>
<item name="android:colorAccent">@color/accent_sc_dark_purple</item>
<item name="colorAccentPale">@color/accent_sc_dark_purple_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Purple</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_purple_alpha25</item>
</style>
<style name="AppTheme.SC.Purple" parent="AppTheme.Base.SC.Purple" />
<style name="AppTheme.SC.Dark.Purple" parent="AppTheme.Base.SC.Dark.Purple" />
<style name="AppTheme.SC.Colored.Purple" parent="AppTheme.Base.SC.Colored.Purple" />
<style name="AppTheme.SC.Dark.Colored.Purple" parent="AppTheme.Base.SC.Dark.Colored.Purple" />
<style name="AppTheme.AttachmentsPreview.SC.Purple" parent="AppTheme.Base.SC.Purple"/>
<style name="AppTheme.Transparent.SC.Purple">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_purple_dark</item>
<item name="colorAccent">@color/accent_sc_dark_purple</item>
<item name="android:colorAccent">@color/accent_sc_dark_purple</item>
<item name="colorAccentPale">@color/accent_sc_dark_purple_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_purple_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Purple</item>
</style>
</resources>

View file

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_dark_red">#ff0000</color>
<color name="accent_sc_dark_red_alpha25">#3fff0000</color>
<color name="accent_sc_dark_red_pale">@color/accent_sc_dark_red</color>
<color name="accent_sc_dark_red_dark">@color/accent_sc_dark_red_alpha25</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Red">
<item name="android:colorAccent">@color/accent_sc_dark_red</item>
<item name="colorAccent">@color/accent_sc_dark_red</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Red">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_red_dark</item>
<item name="colorAccent">@color/accent_sc_dark_red</item>
<item name="android:colorAccent">@color/accent_sc_dark_red</item>
<item name="colorAccentPale">@color/accent_sc_dark_red_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_red_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Red</item>
</style>
<style name="AppTheme.Base.SC.Dark.Red">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_red_dark</item>
<item name="colorAccent">@color/accent_sc_dark_red</item>
<item name="android:colorAccent">@color/accent_sc_dark_red</item>
<item name="colorAccentPale">@color/accent_sc_dark_red_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_red_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Red</item>
</style>
<style name="AppTheme.Base.SC.Colored.Red">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_red_dark</item>
<item name="colorAccent">@color/accent_sc_dark_red</item>
<item name="android:colorAccent">@color/accent_sc_dark_red</item>
<item name="colorAccentPale">@color/accent_sc_dark_red_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Red</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_red_alpha25</item>
</style>
<style name="AppTheme.Base.SC.Dark.Colored.Red">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_red_dark</item>
<item name="colorAccent">@color/accent_sc_dark_red</item>
<item name="android:colorAccent">@color/accent_sc_dark_red</item>
<item name="colorAccentPale">@color/accent_sc_dark_red_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Red</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_red_alpha25</item>
</style>
<style name="AppTheme.SC.Red" parent="AppTheme.Base.SC.Red" />
<style name="AppTheme.SC.Dark.Red" parent="AppTheme.Base.SC.Dark.Red" />
<style name="AppTheme.SC.Colored.Red" parent="AppTheme.Base.SC.Colored.Red" />
<style name="AppTheme.SC.Dark.Colored.Red" parent="AppTheme.Base.SC.Dark.Colored.Red" />
<style name="AppTheme.AttachmentsPreview.SC.Red" parent="AppTheme.Base.SC.Red"/>
<style name="AppTheme.Transparent.SC.Red">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_red_dark</item>
<item name="colorAccent">@color/accent_sc_dark_red</item>
<item name="android:colorAccent">@color/accent_sc_dark_red</item>
<item name="colorAccentPale">@color/accent_sc_dark_red_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_red_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Red</item>
</style>
</resources>

View file

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_dark_teal">#80cbc4</color>
<color name="accent_sc_dark_teal_alpha25">#3f80cbc4</color>
<color name="accent_sc_dark_teal_pale">@color/accent_sc_dark_teal</color>
<color name="accent_sc_dark_teal_dark">@color/accent_sc_dark_teal_alpha25</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Teal">
<item name="android:colorAccent">@color/accent_sc_dark_teal</item>
<item name="colorAccent">@color/accent_sc_dark_teal</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Teal">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_teal_dark</item>
<item name="colorAccent">@color/accent_sc_dark_teal</item>
<item name="android:colorAccent">@color/accent_sc_dark_teal</item>
<item name="colorAccentPale">@color/accent_sc_dark_teal_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_teal_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Teal</item>
</style>
<style name="AppTheme.Base.SC.Dark.Teal">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_teal_dark</item>
<item name="colorAccent">@color/accent_sc_dark_teal</item>
<item name="android:colorAccent">@color/accent_sc_dark_teal</item>
<item name="colorAccentPale">@color/accent_sc_dark_teal_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_teal_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Teal</item>
</style>
<style name="AppTheme.Base.SC.Colored.Teal">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_teal_dark</item>
<item name="colorAccent">@color/accent_sc_dark_teal</item>
<item name="android:colorAccent">@color/accent_sc_dark_teal</item>
<item name="colorAccentPale">@color/accent_sc_dark_teal_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Teal</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_teal_alpha25</item>
</style>
<style name="AppTheme.Base.SC.Dark.Colored.Teal">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_teal_dark</item>
<item name="colorAccent">@color/accent_sc_dark_teal</item>
<item name="android:colorAccent">@color/accent_sc_dark_teal</item>
<item name="colorAccentPale">@color/accent_sc_dark_teal_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Teal</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_teal_alpha25</item>
</style>
<style name="AppTheme.SC.Teal" parent="AppTheme.Base.SC.Teal" />
<style name="AppTheme.SC.Dark.Teal" parent="AppTheme.Base.SC.Dark.Teal" />
<style name="AppTheme.SC.Colored.Teal" parent="AppTheme.Base.SC.Colored.Teal" />
<style name="AppTheme.SC.Dark.Colored.Teal" parent="AppTheme.Base.SC.Dark.Colored.Teal" />
<style name="AppTheme.AttachmentsPreview.SC.Teal" parent="AppTheme.Base.SC.Teal"/>
<style name="AppTheme.Transparent.SC.Teal">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_teal_dark</item>
<item name="colorAccent">@color/accent_sc_dark_teal</item>
<item name="android:colorAccent">@color/accent_sc_dark_teal</item>
<item name="colorAccentPale">@color/accent_sc_dark_teal_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_teal_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Teal</item>
</style>
</resources>

View file

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_dark_turquoise">#00FFFF</color>
<color name="accent_sc_dark_turquoise_alpha25">#3f00FFFF</color>
<color name="accent_sc_dark_turquoise_pale">@color/accent_sc_dark_turquoise</color>
<color name="accent_sc_dark_turquoise_dark">@color/accent_sc_dark_turquoise_alpha25</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Turquoise">
<item name="android:colorAccent">@color/accent_sc_dark_turquoise</item>
<item name="colorAccent">@color/accent_sc_dark_turquoise</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Turquoise">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_turquoise_dark</item>
<item name="colorAccent">@color/accent_sc_dark_turquoise</item>
<item name="android:colorAccent">@color/accent_sc_dark_turquoise</item>
<item name="colorAccentPale">@color/accent_sc_dark_turquoise_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_turquoise_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Turquoise</item>
</style>
<style name="AppTheme.Base.SC.Dark.Turquoise">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_turquoise_dark</item>
<item name="colorAccent">@color/accent_sc_dark_turquoise</item>
<item name="android:colorAccent">@color/accent_sc_dark_turquoise</item>
<item name="colorAccentPale">@color/accent_sc_dark_turquoise_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_turquoise_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Turquoise</item>
</style>
<style name="AppTheme.Base.SC.Colored.Turquoise">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_turquoise_dark</item>
<item name="colorAccent">@color/accent_sc_dark_turquoise</item>
<item name="android:colorAccent">@color/accent_sc_dark_turquoise</item>
<item name="colorAccentPale">@color/accent_sc_dark_turquoise_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Turquoise</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_turquoise_alpha25</item>
</style>
<style name="AppTheme.Base.SC.Dark.Colored.Turquoise">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_turquoise_dark</item>
<item name="colorAccent">@color/accent_sc_dark_turquoise</item>
<item name="android:colorAccent">@color/accent_sc_dark_turquoise</item>
<item name="colorAccentPale">@color/accent_sc_dark_turquoise_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Turquoise</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_turquoise_alpha25</item>
</style>
<style name="AppTheme.SC.Turquoise" parent="AppTheme.Base.SC.Turquoise" />
<style name="AppTheme.SC.Dark.Turquoise" parent="AppTheme.Base.SC.Dark.Turquoise" />
<style name="AppTheme.SC.Colored.Turquoise" parent="AppTheme.Base.SC.Colored.Turquoise" />
<style name="AppTheme.SC.Dark.Colored.Turquoise" parent="AppTheme.Base.SC.Dark.Colored.Turquoise" />
<style name="AppTheme.AttachmentsPreview.SC.Turquoise" parent="AppTheme.Base.SC.Turquoise"/>
<style name="AppTheme.Transparent.SC.Turquoise">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_turquoise_dark</item>
<item name="colorAccent">@color/accent_sc_dark_turquoise</item>
<item name="android:colorAccent">@color/accent_sc_dark_turquoise</item>
<item name="colorAccentPale">@color/accent_sc_dark_turquoise_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_turquoise_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Turquoise</item>
</style>
</resources>

View file

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_dark_yellow">#ffeb3b</color>
<color name="accent_sc_dark_yellow_alpha25">#3fffeb3b</color>
<color name="accent_sc_dark_yellow_pale">@color/accent_sc_dark_yellow</color>
<color name="accent_sc_dark_yellow_dark">@color/accent_sc_dark_yellow_alpha25</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Yellow">
<item name="android:colorAccent">@color/accent_sc_dark_yellow</item>
<item name="colorAccent">@color/accent_sc_dark_yellow</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Yellow">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_yellow_dark</item>
<item name="colorAccent">@color/accent_sc_dark_yellow</item>
<item name="android:colorAccent">@color/accent_sc_dark_yellow</item>
<item name="colorAccentPale">@color/accent_sc_dark_yellow_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_yellow_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Yellow</item>
</style>
<style name="AppTheme.Base.SC.Dark.Yellow">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_yellow_dark</item>
<item name="colorAccent">@color/accent_sc_dark_yellow</item>
<item name="android:colorAccent">@color/accent_sc_dark_yellow</item>
<item name="colorAccentPale">@color/accent_sc_dark_yellow_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_yellow_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Yellow</item>
</style>
<style name="AppTheme.Base.SC.Colored.Yellow">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_yellow_dark</item>
<item name="colorAccent">@color/accent_sc_dark_yellow</item>
<item name="android:colorAccent">@color/accent_sc_dark_yellow</item>
<item name="colorAccentPale">@color/accent_sc_dark_yellow_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Yellow</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_yellow_alpha25</item>
</style>
<style name="AppTheme.Base.SC.Dark.Colored.Yellow">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_yellow_dark</item>
<item name="colorAccent">@color/accent_sc_dark_yellow</item>
<item name="android:colorAccent">@color/accent_sc_dark_yellow</item>
<item name="colorAccentPale">@color/accent_sc_dark_yellow_pale</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Yellow</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_dark_yellow_alpha25</item>
</style>
<style name="AppTheme.SC.Yellow" parent="AppTheme.Base.SC.Yellow" />
<style name="AppTheme.SC.Dark.Yellow" parent="AppTheme.Base.SC.Dark.Yellow" />
<style name="AppTheme.SC.Colored.Yellow" parent="AppTheme.Base.SC.Colored.Yellow" />
<style name="AppTheme.SC.Dark.Colored.Yellow" parent="AppTheme.Base.SC.Dark.Colored.Yellow" />
<style name="AppTheme.AttachmentsPreview.SC.Yellow" parent="AppTheme.Base.SC.Yellow"/>
<style name="AppTheme.Transparent.SC.Yellow">
<item name="vctr_reaction_background_on">@color/accent_sc_dark_yellow_dark</item>
<item name="colorAccent">@color/accent_sc_dark_yellow</item>
<item name="android:colorAccent">@color/accent_sc_dark_yellow</item>
<item name="colorAccentPale">@color/accent_sc_dark_yellow_pale</item>
<item name="message_highlight_bg_color">@color/accent_sc_dark_yellow_alpha25</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Yellow</item>
</style>
</resources>

View file

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_light_amber">#ffa000</color>
<color name="accent_sc_light_amber_alpha25">#3fffa000</color>
<color name="accent_sc_light_amber_pale">@color/accent_sc_light_amber</color>
<color name="accent_sc_light_amber_dark">@color/accent_sc_light_amber_alpha25</color>
<color name="accent_sc_light_amber_noalpha12">#fff3e0</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Light.Amber">
<item name="android:colorAccent">@color/accent_sc_light_amber</item>
<item name="colorAccent">@color/accent_sc_light_amber</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Light.Amber">
<!-- SC additions -->
<item name="colorAccent">@color/accent_sc_light_amber</item>
<item name="android:colorAccent">@color/accent_sc_light_amber</item>
<item name="colorAccentPale">@color/accent_sc_light_amber_pale</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_light_amber_noalpha12</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Light.Amber</item>
</style>
<!-- Default AppTheme for usage where settings don't apply -->
<style name="AppTheme.SC.Light.Amber" parent="AppTheme.Base.SC.Light.Amber" />
</resources>

View file

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_light_bluelight">#03a9f4</color>
<color name="accent_sc_light_bluelight_alpha25">#3f03a9f4</color>
<color name="accent_sc_light_bluelight_pale">@color/accent_sc_light_bluelight</color>
<color name="accent_sc_light_bluelight_dark">@color/accent_sc_light_bluelight_alpha25</color>
<color name="accent_sc_light_bluelight_noalpha12">#e0f4f3</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Light.BlueLight">
<item name="android:colorAccent">@color/accent_sc_light_bluelight</item>
<item name="colorAccent">@color/accent_sc_light_bluelight</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Light.BlueLight">
<!-- SC additions -->
<item name="colorAccent">@color/accent_sc_light_bluelight</item>
<item name="android:colorAccent">@color/accent_sc_light_bluelight</item>
<item name="colorAccentPale">@color/accent_sc_light_bluelight_pale</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_light_bluelight_noalpha12</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Light.BlueLight</item>
</style>
<!-- Default AppTheme for usage where settings don't apply -->
<style name="AppTheme.SC.Light.BlueLight" parent="AppTheme.Base.SC.Light.BlueLight" />
</resources>

View file

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_light_cyan">#00bcd4</color>
<color name="accent_sc_light_cyan_alpha25">#3f00bcd4</color>
<color name="accent_sc_light_cyan_pale">@color/accent_sc_light_cyan</color>
<color name="accent_sc_light_cyan_dark">@color/accent_sc_light_cyan_alpha25</color>
<color name="accent_sc_light_cyan_noalpha12">#e0f6f9</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Light.Cyan">
<item name="android:colorAccent">@color/accent_sc_light_cyan</item>
<item name="colorAccent">@color/accent_sc_light_cyan</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Light.Cyan">
<!-- SC additions -->
<item name="colorAccent">@color/accent_sc_light_cyan</item>
<item name="android:colorAccent">@color/accent_sc_light_cyan</item>
<item name="colorAccentPale">@color/accent_sc_light_cyan_pale</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_light_cyan_noalpha12</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Light.Cyan</item>
</style>
<!-- Default AppTheme for usage where settings don't apply -->
<style name="AppTheme.SC.Light.Cyan" parent="AppTheme.Base.SC.Light.Cyan" />
</resources>

View file

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_light_gold">#CFB53B</color>
<color name="accent_sc_light_gold_alpha25">#3fCFB53B</color>
<color name="accent_sc_light_gold_pale">@color/accent_sc_light_gold</color>
<color name="accent_sc_light_gold_dark">@color/accent_sc_light_gold_alpha25</color>
<color name="accent_sc_light_gold_noalpha12">#f9f6e7</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Light.Gold">
<item name="android:colorAccent">@color/accent_sc_light_gold</item>
<item name="colorAccent">@color/accent_sc_light_gold</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Light.Gold">
<!-- SC additions -->
<item name="colorAccent">@color/accent_sc_light_gold</item>
<item name="android:colorAccent">@color/accent_sc_light_gold</item>
<item name="colorAccentPale">@color/accent_sc_light_gold_pale</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_light_gold_noalpha12</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Light.Gold</item>
</style>
<!-- Default AppTheme for usage where settings don't apply -->
<style name="AppTheme.SC.Light.Gold" parent="AppTheme.Base.SC.Light.Gold" />
</resources>

View file

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_light_lime">#cddc39</color>
<color name="accent_sc_light_lime_alpha25">#3fcddc39</color>
<color name="accent_sc_light_lime_pale">@color/accent_sc_light_lime</color>
<color name="accent_sc_light_lime_dark">@color/accent_sc_light_lime_alpha25</color>
<color name="accent_sc_light_lime_noalpha12">#f9fae7</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Light.Lime">
<item name="android:colorAccent">@color/accent_sc_light_lime</item>
<item name="colorAccent">@color/accent_sc_light_lime</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Light.Lime">
<!-- SC additions -->
<item name="colorAccent">@color/accent_sc_light_lime</item>
<item name="android:colorAccent">@color/accent_sc_light_lime</item>
<item name="colorAccentPale">@color/accent_sc_light_lime_pale</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_light_lime_noalpha12</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Light.Lime</item>
</style>
<!-- Default AppTheme for usage where settings don't apply -->
<style name="AppTheme.SC.Light.Lime" parent="AppTheme.Base.SC.Light.Lime" />
</resources>

View file

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_light_orange">#ff9800</color>
<color name="accent_sc_light_orange_alpha25">#3fff9800</color>
<color name="accent_sc_light_orange_pale">@color/accent_sc_light_orange</color>
<color name="accent_sc_light_orange_dark">@color/accent_sc_light_orange_alpha25</color>
<color name="accent_sc_light_orange_noalpha12">#fff2e0</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Light.Orange">
<item name="android:colorAccent">@color/accent_sc_light_orange</item>
<item name="colorAccent">@color/accent_sc_light_orange</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Light.Orange">
<!-- SC additions -->
<item name="colorAccent">@color/accent_sc_light_orange</item>
<item name="android:colorAccent">@color/accent_sc_light_orange</item>
<item name="colorAccentPale">@color/accent_sc_light_orange_pale</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_light_orange_noalpha12</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Light.Orange</item>
</style>
<!-- Default AppTheme for usage where settings don't apply -->
<style name="AppTheme.SC.Light.Orange" parent="AppTheme.Base.SC.Light.Orange" />
</resources>

View file

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_light_pink">#e91e63</color>
<color name="accent_sc_light_pink_alpha25">#3fe91e63</color>
<color name="accent_sc_light_pink_pale">@color/accent_sc_light_pink</color>
<color name="accent_sc_light_pink_dark">@color/accent_sc_light_pink_alpha25</color>
<color name="accent_sc_light_pink_noalpha12">#fce4ec</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Light.Pink">
<item name="android:colorAccent">@color/accent_sc_light_pink</item>
<item name="colorAccent">@color/accent_sc_light_pink</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Light.Pink">
<!-- SC additions -->
<item name="colorAccent">@color/accent_sc_light_pink</item>
<item name="android:colorAccent">@color/accent_sc_light_pink</item>
<item name="colorAccentPale">@color/accent_sc_light_pink_pale</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_light_pink_noalpha12</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Light.Pink</item>
</style>
<!-- Default AppTheme for usage where settings don't apply -->
<style name="AppTheme.SC.Light.Pink" parent="AppTheme.Base.SC.Light.Pink" />
</resources>

View file

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_light_purple">#673ab7</color>
<color name="accent_sc_light_purple_alpha25">#3f673ab7</color>
<color name="accent_sc_light_purple_pale">@color/accent_sc_light_purple</color>
<color name="accent_sc_light_purple_dark">@color/accent_sc_light_purple_alpha25</color>
<color name="accent_sc_light_purple_noalpha12">#ece7f6</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Light.Purple">
<item name="android:colorAccent">@color/accent_sc_light_purple</item>
<item name="colorAccent">@color/accent_sc_light_purple</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Light.Purple">
<!-- SC additions -->
<item name="colorAccent">@color/accent_sc_light_purple</item>
<item name="android:colorAccent">@color/accent_sc_light_purple</item>
<item name="colorAccentPale">@color/accent_sc_light_purple_pale</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_light_purple_noalpha12</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Light.Purple</item>
</style>
<!-- Default AppTheme for usage where settings don't apply -->
<style name="AppTheme.SC.Light.Purple" parent="AppTheme.Base.SC.Light.Purple" />
</resources>

View file

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_light_red">#ff0000</color>
<color name="accent_sc_light_red_alpha25">#3fff0000</color>
<color name="accent_sc_light_red_pale">@color/accent_sc_light_red</color>
<color name="accent_sc_light_red_dark">@color/accent_sc_light_red_alpha25</color>
<color name="accent_sc_light_red_noalpha12">#ffe0e0</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Light.Red">
<item name="android:colorAccent">@color/accent_sc_light_red</item>
<item name="colorAccent">@color/accent_sc_light_red</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Light.Red">
<!-- SC additions -->
<item name="colorAccent">@color/accent_sc_light_red</item>
<item name="android:colorAccent">@color/accent_sc_light_red</item>
<item name="colorAccentPale">@color/accent_sc_light_red_pale</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_light_red_noalpha12</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Light.Red</item>
</style>
<!-- Default AppTheme for usage where settings don't apply -->
<style name="AppTheme.SC.Light.Red" parent="AppTheme.Base.SC.Light.Red" />
</resources>

View file

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_light_teal">#008577</color>
<color name="accent_sc_light_teal_alpha25">#3f008577</color>
<color name="accent_sc_light_teal_pale">@color/accent_sc_light_teal</color>
<color name="accent_sc_light_teal_dark">@color/accent_sc_light_teal_alpha25</color>
<color name="accent_sc_light_teal_noalpha12">#e0f0ee</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Light.Teal">
<item name="android:colorAccent">@color/accent_sc_light_teal</item>
<item name="colorAccent">@color/accent_sc_light_teal</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Light.Teal">
<!-- SC additions -->
<item name="colorAccent">@color/accent_sc_light_teal</item>
<item name="android:colorAccent">@color/accent_sc_light_teal</item>
<item name="colorAccentPale">@color/accent_sc_light_teal_pale</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_light_teal_noalpha12</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Light.Teal</item>
</style>
<!-- Default AppTheme for usage where settings don't apply -->
<style name="AppTheme.SC.Light.Teal" parent="AppTheme.Base.SC.Light.Teal" />
</resources>

View file

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_light_turquoise">#00C1C1</color>
<color name="accent_sc_light_turquoise_alpha25">#3f00C1C1</color>
<color name="accent_sc_light_turquoise_pale">@color/accent_sc_light_turquoise</color>
<color name="accent_sc_light_turquoise_dark">@color/accent_sc_light_turquoise_alpha25</color>
<color name="accent_sc_light_turquoise_noalpha12">#e0f7f7</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Light.Turquoise">
<item name="android:colorAccent">@color/accent_sc_light_turquoise</item>
<item name="colorAccent">@color/accent_sc_light_turquoise</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Light.Turquoise">
<!-- SC additions -->
<item name="colorAccent">@color/accent_sc_light_turquoise</item>
<item name="android:colorAccent">@color/accent_sc_light_turquoise</item>
<item name="colorAccentPale">@color/accent_sc_light_turquoise_pale</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_light_turquoise_noalpha12</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Light.Turquoise</item>
</style>
<!-- Default AppTheme for usage where settings don't apply -->
<style name="AppTheme.SC.Light.Turquoise" parent="AppTheme.Base.SC.Light.Turquoise" />
</resources>

View file

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- COLORS -->
<color name="accent_sc_light_yellow">#fdd835</color>
<color name="accent_sc_light_yellow_alpha25">#3ffdd835</color>
<color name="accent_sc_light_yellow_pale">@color/accent_sc_light_yellow</color>
<color name="accent_sc_light_yellow_dark">@color/accent_sc_light_yellow_alpha25</color>
<color name="accent_sc_light_yellow_noalpha12">#fefae6</color>
<!-- STYLES -->
<style name="Vector.BottomSheet.SC.Light.Yellow">
<item name="android:colorAccent">@color/accent_sc_light_yellow</item>
<item name="colorAccent">@color/accent_sc_light_yellow</item>
</style>
<!-- THEMES -->
<style name="AppTheme.Base.SC.Light.Yellow">
<!-- SC additions -->
<item name="colorAccent">@color/accent_sc_light_yellow</item>
<item name="android:colorAccent">@color/accent_sc_light_yellow</item>
<item name="colorAccentPale">@color/accent_sc_light_yellow_pale</item>
<item name="sc_message_bg_outgoing">@color/accent_sc_light_yellow_noalpha12</item>
<item name="bottomSheetDialogTheme">@style/Vector.BottomSheet.SC.Light.Yellow</item>
</style>
<!-- Default AppTheme for usage where settings don't apply -->
<style name="AppTheme.SC.Light.Yellow" parent="AppTheme.Base.SC.Light.Yellow" />
</resources>

View file

@ -112,6 +112,8 @@ class VectorConfiguration @Inject constructor(private val context: Context) {
+ "_" + FontScale.getFontScaleValue(context).preferenceValue
+ "_" + ThemeUtils.getApplicationLightTheme(context)
+ "_" + ThemeUtils.getApplicationDarkTheme(context)
+ "_" + ThemeUtils.getApplicationLightThemeAccent(context)
+ "_" + ThemeUtils.getApplicationDarkThemeAccent(context)
+ "_" + ThemeUtils.useDarkTheme(context).toString())
}
}

View file

@ -43,7 +43,7 @@ class MatrixItemColorProvider @Inject constructor(
USER_COLORING_FROM_PL -> {
colorProvider.getColorFromAttribute(
when {
userInRoomInformation?.userPowerLevel == null -> R.attr.user_color_pl_0
userInRoomInformation?.userPowerLevel == null -> R.attr.colorAccent // This is also used for avatars in the room overview
userInRoomInformation.userPowerLevel >= 100 -> R.attr.user_color_pl_100
userInRoomInformation.userPowerLevel >= 95 -> R.attr.user_color_pl_95
userInRoomInformation.userPowerLevel >= 51 -> R.attr.user_color_pl_51

View file

@ -16,7 +16,11 @@
package im.vector.app.features.settings
import androidx.preference.Preference
import de.spiritcroc.preference.ColorMatrixListPreference
import im.vector.app.R
import im.vector.app.core.extensions.restart
import im.vector.app.features.themes.ThemeUtils
import javax.inject.Inject
class VectorSettingsAdvancedThemeFragment @Inject constructor(
@ -27,5 +31,33 @@ class VectorSettingsAdvancedThemeFragment @Inject constructor(
override val preferenceXmlRes = R.xml.vector_settings_advanced_theme_settings
override fun bindPref() {
val lightAccentPref = findPreference<ColorMatrixListPreference>(ThemeUtils.SETTINGS_SC_ACCENT_LIGHT)!!
val darkAccentPref = findPreference<ColorMatrixListPreference>(ThemeUtils.SETTINGS_SC_ACCENT_DARK)!!
lightAccentPref.onPreferenceChangeListener = Preference.OnPreferenceChangeListener { _, newValue ->
if (newValue is String) {
ThemeUtils.setApplicationLightThemeAccent(requireContext().applicationContext, newValue)
if (ThemeUtils.isLightTheme(requireContext())) {
// Restart the Activity
activity?.restart()
}
true
} else {
false
}
}
darkAccentPref.onPreferenceChangeListener = Preference.OnPreferenceChangeListener { _, newValue ->
if (newValue is String) {
ThemeUtils.setApplicationDarkThemeAccent(requireContext().applicationContext, newValue)
if (!ThemeUtils.isLightTheme(requireContext())) {
// Restart the Activity
activity?.restart()
}
true
} else {
false
}
}
}
}

View file

@ -19,12 +19,12 @@ package im.vector.app.features.themes
import android.app.Activity
import android.content.Context
import android.content.res.Configuration
import android.content.res.Resources
import android.graphics.drawable.Drawable
import android.os.Build
import android.util.TypedValue
import androidx.annotation.AttrRes
import androidx.annotation.ColorInt
import androidx.annotation.StyleRes
import androidx.core.content.ContextCompat
import androidx.core.content.edit
import androidx.core.graphics.drawable.DrawableCompat
@ -41,6 +41,8 @@ object ThemeUtils {
const val APPLICATION_THEME_KEY = "APPLICATION_THEME_KEY"
const val APPLICATION_DARK_THEME_KEY = "APPLICATION_DARK_THEME_KEY"
const val SYSTEM_DARK_THEME_PRE_TEN = "SYSTEM_DARK_THEME_PRE_TEN"
const val SETTINGS_SC_ACCENT_LIGHT = "SETTINGS_SC_ACCENT_LIGHT"
const val SETTINGS_SC_ACCENT_DARK = "SETTINGS_SC_ACCENT_DARK"
// the theme possible values
//private const val SYSTEM_THEME_VALUE = "system" // SC does not use this
@ -56,15 +58,16 @@ object ThemeUtils {
private var currentLightTheme = AtomicReference<String>(null)
private var currentDarkTheme = AtomicReference<String>(null)
private var currentLightThemeAccent = AtomicReference<String>(null)
private var currentDarkThemeAccent = AtomicReference<String>(null)
// The default theme // SC: from upstream, ignore
//private const val DEFAULT_THEME = SYSTEM_THEME_VALUE
private var currentTheme = AtomicReference<String>(null)
//private var currentTheme = AtomicReference<String>(null)
private val mColorByAttr = HashMap<Int, Int>()
private var mIsScTheme = false
private var mUseDarkTheme = false
private var mThemeInitialized = false
@ -101,8 +104,9 @@ object ThemeUtils {
val lightTheme = getApplicationLightTheme(context)
val darkTheme = getApplicationDarkTheme(context)
if (lightTheme != darkTheme && darkThemePossible(context)) {
mThemeInitialized = false;
setApplicationTheme(context.applicationContext, getApplicationLightTheme(context), getApplicationDarkTheme(context))
mThemeInitialized = false
setApplicationTheme(context.applicationContext, getApplicationLightTheme(context), getApplicationDarkTheme(context),
getApplicationLightThemeAccent(context), getApplicationDarkThemeAccent(context))
}
}
@ -110,7 +114,9 @@ object ThemeUtils {
fun init(context: Context) {
val lightTheme = getApplicationLightTheme(context)
val darkTheme = getApplicationDarkTheme(context)
setApplicationTheme(context, lightTheme, darkTheme)
val lightAccent = getApplicationLightThemeAccent(context)
val darkAccent = getApplicationDarkThemeAccent(context)
setApplicationTheme(context, lightTheme, darkTheme, lightAccent, darkAccent)
}
/**
@ -206,6 +212,28 @@ object ThemeUtils {
}
}
fun getApplicationLightThemeAccent(context: Context): String {
val currentAccent = this.currentLightThemeAccent.get()
return if (currentAccent == null) {
val accentFromPref = DefaultSharedPreferences.getInstance(context).getString(SETTINGS_SC_ACCENT_LIGHT, "green") ?: "green"
this.currentLightThemeAccent.set(accentFromPref)
accentFromPref
} else {
currentAccent
}
}
fun getApplicationDarkThemeAccent(context: Context): String {
val currentAccent = this.currentDarkThemeAccent.get()
return if (currentAccent == null) {
val accentFromPref = DefaultSharedPreferences.getInstance(context).getString(SETTINGS_SC_ACCENT_DARK, "green") ?: "green"
this.currentDarkThemeAccent.set(accentFromPref)
accentFromPref
} else {
currentAccent
}
}
/**
* @return true if system theme is dark
*/
@ -220,9 +248,11 @@ object ThemeUtils {
*
* @param aTheme the new theme
*/
fun setApplicationTheme(context: Context, aLightTheme: String, aDarkTheme: String) {
fun setApplicationTheme(context: Context, aLightTheme: String, aDarkTheme: String, aLightAccent: String, aDarkAccent: String) {
currentLightTheme.set(aLightTheme)
currentDarkTheme.set(aDarkTheme)
currentLightThemeAccent.set(aLightAccent)
currentDarkThemeAccent.set(aDarkAccent)
val aTheme = if (useDarkTheme(context)) aDarkTheme else aLightTheme
context.setTheme(
when (aTheme) {
@ -230,12 +260,12 @@ object ThemeUtils {
THEME_LIGHT_VALUE -> R.style.Theme_Vector_Light
THEME_DARK_VALUE -> R.style.Theme_Vector_Dark
THEME_BLACK_VALUE -> R.style.Theme_Vector_Black
THEME_SC_LIGHT_VALUE -> R.style.AppTheme_SC_Light
THEME_SC_VALUE -> R.style.AppTheme_SC
THEME_SC_DARK_VALUE -> R.style.AppTheme_SC_Dark
THEME_SC_COLORED_VALUE -> R.style.AppTheme_SC_Colored
THEME_SC_DARK_COLORED_VALUE -> R.style.AppTheme_SC_Dark_Colored
else -> R.style.AppTheme_SC_Light
THEME_SC_LIGHT_VALUE -> getAccentedThemeRes(R.style.AppTheme_SC_Light, aLightAccent)
THEME_SC_VALUE -> getAccentedThemeRes(R.style.AppTheme_SC, aDarkAccent)
THEME_SC_DARK_VALUE -> getAccentedThemeRes(R.style.AppTheme_SC_Dark, aDarkAccent)
THEME_SC_COLORED_VALUE -> getAccentedThemeRes(R.style.AppTheme_SC_Colored, aDarkAccent)
THEME_SC_DARK_COLORED_VALUE -> getAccentedThemeRes(R.style.AppTheme_SC_Dark_Colored, aDarkAccent)
else -> getAccentedThemeRes(R.style.AppTheme_SC_Light, aLightAccent)
}
)
@ -244,11 +274,23 @@ object ThemeUtils {
}
fun setApplicationLightTheme(context: Context, theme: String) {
setApplicationTheme(context, theme, getApplicationDarkTheme(context))
setApplicationTheme(context, theme, getApplicationDarkTheme(context),
getApplicationLightThemeAccent(context), getApplicationDarkThemeAccent(context))
}
fun setApplicationDarkTheme(context: Context, theme: String) {
setApplicationTheme(context, getApplicationLightTheme(context), theme)
setApplicationTheme(context, getApplicationLightTheme(context), theme,
getApplicationLightThemeAccent(context), getApplicationDarkThemeAccent(context))
}
fun setApplicationLightThemeAccent(context: Context, themeAccent: String) {
setApplicationTheme(context, getApplicationLightTheme(context), getApplicationDarkTheme(context),
themeAccent, getApplicationDarkThemeAccent(context))
}
fun setApplicationDarkThemeAccent(context: Context, themeAccent: String) {
setApplicationTheme(context, getApplicationLightTheme(context), getApplicationDarkTheme(context),
getApplicationLightThemeAccent(context), themeAccent)
}
/**
@ -262,11 +304,11 @@ object ThemeUtils {
THEME_LIGHT_VALUE -> activity.setTheme(otherThemes.light)
THEME_DARK_VALUE -> activity.setTheme(otherThemes.dark)
THEME_BLACK_VALUE -> activity.setTheme(otherThemes.black)
THEME_SC_LIGHT_VALUE -> activity.setTheme(otherThemes.sc_light)
THEME_SC_VALUE -> activity.setTheme(otherThemes.sc)
THEME_SC_DARK_VALUE -> activity.setTheme(otherThemes.sc_dark)
THEME_SC_COLORED_VALUE -> activity.setTheme(otherThemes.sc_colored)
THEME_SC_DARK_COLORED_VALUE -> activity.setTheme(otherThemes.sc_dark_colored)
THEME_SC_LIGHT_VALUE -> activity.setTheme(getAccentedThemeRes(otherThemes.sc_light, getApplicationLightThemeAccent(activity)))
THEME_SC_VALUE -> activity.setTheme(getAccentedThemeRes(otherThemes.sc, getApplicationDarkThemeAccent(activity)))
THEME_SC_DARK_VALUE -> activity.setTheme(getAccentedThemeRes(otherThemes.sc_dark, getApplicationDarkThemeAccent(activity)))
THEME_SC_COLORED_VALUE -> activity.setTheme(getAccentedThemeRes(otherThemes.sc_colored, getApplicationDarkThemeAccent(activity)))
THEME_SC_DARK_COLORED_VALUE -> activity.setTheme(getAccentedThemeRes(otherThemes.sc_dark_colored, getApplicationDarkThemeAccent(activity)))
}
mColorByAttr.clear()
@ -335,4 +377,107 @@ object ThemeUtils {
DrawableCompat.setTint(tinted, color)
return tinted
}
@StyleRes
private fun getAccentedThemeRes(@StyleRes resId: Int, themeAccent: String): Int {
return when (resId) {
R.style.AppTheme_SC_Light -> {
when (themeAccent) {
"green" -> resId
"bluelight" -> R.style.AppTheme_SC_Light_BlueLight
"amber" -> R.style.AppTheme_SC_Light_Amber
"cyan" -> R.style.AppTheme_SC_Light_Cyan
"gold" -> R.style.AppTheme_SC_Light_Gold
"lime" -> R.style.AppTheme_SC_Light_Lime
"orange" -> R.style.AppTheme_SC_Light_Orange
"pink" -> R.style.AppTheme_SC_Light_Pink
"purple" -> R.style.AppTheme_SC_Light_Purple
"red" -> R.style.AppTheme_SC_Light_Red
"teal" -> R.style.AppTheme_SC_Light_Teal
"turquoise" -> R.style.AppTheme_SC_Light_Turquoise
"yellow" -> R.style.AppTheme_SC_Light_Yellow
// Do not change this comment for automatic light theme insertion
else -> resId
}
}
R.style.AppTheme_SC -> {
when (themeAccent) {
"green" -> resId
"bluelight" -> R.style.AppTheme_SC_BlueLight
"amber" -> R.style.AppTheme_SC_Amber
"cyan" -> R.style.AppTheme_SC_Cyan
"gold" -> R.style.AppTheme_SC_Gold
"lime" -> R.style.AppTheme_SC_Lime
"orange" -> R.style.AppTheme_SC_Orange
"pink" -> R.style.AppTheme_SC_Pink
"purple" -> R.style.AppTheme_SC_Purple
"red" -> R.style.AppTheme_SC_Red
"teal" -> R.style.AppTheme_SC_Teal
"turquoise" -> R.style.AppTheme_SC_Turquoise
"yellow" -> R.style.AppTheme_SC_Yellow
// Do not change this comment for automatic black theme insertion
else -> resId
}
}
R.style.AppTheme_SC_Dark -> {
when (themeAccent) {
"green" -> resId
"bluelight" -> R.style.AppTheme_SC_Dark_BlueLight
"amber" -> R.style.AppTheme_SC_Dark_Amber
"cyan" -> R.style.AppTheme_SC_Dark_Cyan
"gold" -> R.style.AppTheme_SC_Dark_Gold
"lime" -> R.style.AppTheme_SC_Dark_Lime
"orange" -> R.style.AppTheme_SC_Dark_Orange
"pink" -> R.style.AppTheme_SC_Dark_Pink
"purple" -> R.style.AppTheme_SC_Dark_Purple
"red" -> R.style.AppTheme_SC_Dark_Red
"teal" -> R.style.AppTheme_SC_Dark_Teal
"turquoise" -> R.style.AppTheme_SC_Dark_Turquoise
"yellow" -> R.style.AppTheme_SC_Dark_Yellow
// Do not change this comment for automatic dark theme insertion
else -> resId
}
}
R.style.AppTheme_SC_Colored -> {
when (themeAccent) {
"green" -> resId
"bluelight" -> R.style.AppTheme_SC_Colored_BlueLight
"amber" -> R.style.AppTheme_SC_Colored_Amber
"cyan" -> R.style.AppTheme_SC_Colored_Cyan
"gold" -> R.style.AppTheme_SC_Colored_Gold
"lime" -> R.style.AppTheme_SC_Colored_Lime
"orange" -> R.style.AppTheme_SC_Colored_Orange
"pink" -> R.style.AppTheme_SC_Colored_Pink
"purple" -> R.style.AppTheme_SC_Colored_Purple
"red" -> R.style.AppTheme_SC_Colored_Red
"teal" -> R.style.AppTheme_SC_Colored_Teal
"turquoise" -> R.style.AppTheme_SC_Colored_Turquoise
"yellow" -> R.style.AppTheme_SC_Colored_Yellow
// Do not change this comment for automatic black colored theme insertion
else -> resId
}
}
R.style.AppTheme_SC_Dark_Colored -> {
when (themeAccent) {
"green" -> resId
"bluelight" -> R.style.AppTheme_SC_Dark_Colored_BlueLight
"amber" -> R.style.AppTheme_SC_Dark_Colored_Amber
"cyan" -> R.style.AppTheme_SC_Dark_Colored_Cyan
"gold" -> R.style.AppTheme_SC_Dark_Colored_Gold
"lime" -> R.style.AppTheme_SC_Dark_Colored_Lime
"orange" -> R.style.AppTheme_SC_Dark_Colored_Orange
"pink" -> R.style.AppTheme_SC_Dark_Colored_Pink
"purple" -> R.style.AppTheme_SC_Dark_Colored_Purple
"red" -> R.style.AppTheme_SC_Dark_Colored_Red
"teal" -> R.style.AppTheme_SC_Dark_Colored_Teal
"turquoise" -> R.style.AppTheme_SC_Dark_Colored_Turquoise
"yellow" -> R.style.AppTheme_SC_Dark_Colored_Yellow
// Do not change this comment for automatic dark colored theme insertion
else -> resId
}
}
else -> resId
}
}
}

View file

@ -49,4 +49,106 @@
<item>from-id</item>
</string-array>
<string-array name="sc_accent_color_dark_entries" translatable="false">
<item>@string/sc_accent_green</item>
<item>@string/sc_accent_amber</item> <!-- Dark Amber name -->
<item>@string/sc_accent_bluelight</item> <!-- Dark BlueLight name -->
<item>@string/sc_accent_cyan</item> <!-- Dark Cyan name -->
<item>@string/sc_accent_gold</item> <!-- Dark Gold name -->
<item>@string/sc_accent_lime</item> <!-- Dark Lime name -->
<item>@string/sc_accent_orange</item> <!-- Dark Orange name -->
<item>@string/sc_accent_pink</item> <!-- Dark Pink name -->
<item>@string/sc_accent_purple</item> <!-- Dark Purple name -->
<item>@string/sc_accent_red</item> <!-- Dark Red name -->
<item>@string/sc_accent_teal</item> <!-- Dark Teal name -->
<item>@string/sc_accent_turquoise</item> <!-- Dark Turquoise name -->
<item>@string/sc_accent_yellow</item> <!-- Dark Yellow name -->
<!-- do not change this comment for dark accent entry generation -->
</string-array>
<string-array name="sc_accent_color_dark_values" translatable="false">
<item>green</item>
<item>amber</item> <!-- Dark Amber id -->
<item>bluelight</item> <!-- Dark BlueLight id -->
<item>cyan</item> <!-- Dark Cyan id -->
<item>gold</item> <!-- Dark Gold id -->
<item>lime</item> <!-- Dark Lime id -->
<item>orange</item> <!-- Dark Orange id -->
<item>pink</item> <!-- Dark Pink id -->
<item>purple</item> <!-- Dark Purple id -->
<item>red</item> <!-- Dark Red id -->
<item>teal</item> <!-- Dark Teal id -->
<item>turquoise</item> <!-- Dark Turquoise id -->
<item>yellow</item> <!-- Dark Yellow id -->
<!-- do not change this comment for dark accent value generation -->
</string-array>
<string-array name="sc_accent_color_dark_previews" translatable="false">
<item>#8bc34a</item>
<item>#ffab00</item> <!-- Dark Amber accent -->
<item>#03a9f4</item> <!-- Dark BlueLight accent -->
<item>#00bcd4</item> <!-- Dark Cyan accent -->
<item>#CFB53B</item> <!-- Dark Gold accent -->
<item>#cddc39</item> <!-- Dark Lime accent -->
<item>#ff9800</item> <!-- Dark Orange accent -->
<item>#f48fb1</item> <!-- Dark Pink accent -->
<item>#673ab7</item> <!-- Dark Purple accent -->
<item>#ff0000</item> <!-- Dark Red accent -->
<item>#80cbc4</item> <!-- Dark Teal accent -->
<item>#00FFFF</item> <!-- Dark Turquoise accent -->
<item>#ffeb3b</item> <!-- Dark Yellow accent -->
<!-- do not change this comment for dark accent preview generation -->
</string-array>
<string-array name="sc_accent_color_light_entries" translatable="false">
<item>@string/sc_accent_green</item>
<item>@string/sc_accent_amber</item> <!-- Light Amber name -->
<item>@string/sc_accent_bluelight</item> <!-- Light BlueLight name -->
<item>@string/sc_accent_cyan</item> <!-- Light Cyan name -->
<item>@string/sc_accent_gold</item> <!-- Light Gold name -->
<item>@string/sc_accent_lime</item> <!-- Light Lime name -->
<item>@string/sc_accent_orange</item> <!-- Light Orange name -->
<item>@string/sc_accent_pink</item> <!-- Light Pink name -->
<item>@string/sc_accent_purple</item> <!-- Light Purple name -->
<item>@string/sc_accent_red</item> <!-- Light Red name -->
<item>@string/sc_accent_teal</item> <!-- Light Teal name -->
<item>@string/sc_accent_turquoise</item> <!-- Light Turquoise name -->
<item>@string/sc_accent_yellow</item> <!-- Light Yellow name -->
<!-- do not change this comment for light accent entry generation -->
</string-array>
<string-array name="sc_accent_color_light_values" translatable="false">
<item>green</item>
<item>amber</item> <!-- Light Amber id -->
<item>bluelight</item> <!-- Light BlueLight id -->
<item>cyan</item> <!-- Light Cyan id -->
<item>gold</item> <!-- Light Gold id -->
<item>lime</item> <!-- Light Lime id -->
<item>orange</item> <!-- Light Orange id -->
<item>pink</item> <!-- Light Pink id -->
<item>purple</item> <!-- Light Purple id -->
<item>red</item> <!-- Light Red id -->
<item>teal</item> <!-- Light Teal id -->
<item>turquoise</item> <!-- Light Turquoise id -->
<item>yellow</item> <!-- Light Yellow id -->
<!-- do not change this comment for light accent value generation -->
</string-array>
<string-array name="sc_accent_color_light_previews" translatable="false">
<item>#8bc34a</item>
<item>#ffa000</item> <!-- Light Amber accent -->
<item>#03a9f4</item> <!-- Light BlueLight accent -->
<item>#00bcd4</item> <!-- Light Cyan accent -->
<item>#CFB53B</item> <!-- Light Gold accent -->
<item>#cddc39</item> <!-- Light Lime accent -->
<item>#ff9800</item> <!-- Light Orange accent -->
<item>#e91e63</item> <!-- Light Pink accent -->
<item>#673ab7</item> <!-- Light Purple accent -->
<item>#ff0000</item> <!-- Light Red accent -->
<item>#008577</item> <!-- Light Teal accent -->
<item>#00C1C1</item> <!-- Light Turquoise accent -->
<item>#fdd835</item> <!-- Light Yellow accent -->
<!-- do not change this comment for light accent preview generation -->
</string-array>
</resources>

View file

@ -79,5 +79,25 @@
<string name="settings_advanced_theme_settings">Advanced theme settings</string>
<string name="settings_user_colors">User colors</string>
<string name="settings_theme_colors">Theme colors</string>
<string name="setting_sc_accent_color_light">Accent color for light themes</string>
<string name="setting_sc_accent_color_dark">Accent color for dark themes</string>
<string name="settings_sc_accent_disclaimer">Note that these color settings only apply to SC themes, and not Element themes.</string>
<!-- Accent colors -->
<string name="sc_accent_green">Green</string>
<string name="sc_accent_amber">Amber</string>
<string name="sc_accent_bluelight">Light blue</string>
<string name="sc_accent_cyan">Cyan</string>
<string name="sc_accent_gold">Gold</string>
<string name="sc_accent_lime">Lime</string>
<string name="sc_accent_orange">Orange</string>
<string name="sc_accent_pink">Pink</string>
<string name="sc_accent_purple">Purple</string>
<string name="sc_accent_red">Red</string>
<string name="sc_accent_teal">Teal</string>
<string name="sc_accent_turquoise">Turquoise</string>
<string name="sc_accent_yellow">Yellow</string>
<!-- do not change this comment for accent generation -->
</resources>

View file

@ -2,6 +2,33 @@
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<im.vector.app.core.preference.VectorPreferenceCategory
android:title="@string/settings_theme_colors">
<Preference
android:key="SC_ACCENT_DISCLAIMER"
android:summary="@string/settings_sc_accent_disclaimer" />
<de.spiritcroc.preference.ColorMatrixListPreference
android:key="SETTINGS_SC_ACCENT_LIGHT"
android:title="@string/setting_sc_accent_color_light"
android:summary="%s"
android:entries="@array/sc_accent_color_light_entries"
android:entryValues="@array/sc_accent_color_light_values"
android:defaultValue="green"
app:entryPreviews="@array/sc_accent_color_light_previews" />
<de.spiritcroc.preference.ColorMatrixListPreference
android:key="SETTINGS_SC_ACCENT_DARK"
android:title="@string/setting_sc_accent_color_dark"
android:summary="%s"
android:entries="@array/sc_accent_color_dark_entries"
android:entryValues="@array/sc_accent_color_dark_values"
android:defaultValue="green"
app:entryPreviews="@array/sc_accent_color_dark_previews" />
</im.vector.app.core.preference.VectorPreferenceCategory>
<im.vector.app.core.preference.VectorPreferenceCategory android:title="@string/settings_user_colors">
<im.vector.app.core.preference.VectorListPreference