mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-30 10:54:58 +01:00
Make both dark and light themes work for login
-> Allows us to use SC light theme for default theme again - Also tweak default dark theme
This commit is contained in:
parent
3e57e4bec0
commit
efd8a4d88b
@ -104,7 +104,7 @@ object ThemeUtils {
|
||||
*/
|
||||
fun getApplicationLightTheme(context: Context): String {
|
||||
return PreferenceManager.getDefaultSharedPreferences(context)
|
||||
.getString(APPLICATION_THEME_KEY, THEME_SC_DARK_COLORED_VALUE) ?: THEME_SC_DARK_COLORED_VALUE
|
||||
.getString(APPLICATION_THEME_KEY, THEME_SC_LIGHT_VALUE) ?: THEME_SC_LIGHT_VALUE
|
||||
}
|
||||
|
||||
|
||||
@ -116,7 +116,7 @@ object ThemeUtils {
|
||||
*/
|
||||
fun getApplicationDarkTheme(context: Context): String {
|
||||
return PreferenceManager.getDefaultSharedPreferences(context)
|
||||
.getString(APPLICATION_DARK_THEME_KEY, THEME_SC_DARK_COLORED_VALUE) ?: THEME_SC_DARK_COLORED_VALUE
|
||||
.getString(APPLICATION_DARK_THEME_KEY, THEME_SC_DARK_VALUE) ?: THEME_SC_DARK_VALUE
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<corners android:radius="4dp" />
|
||||
|
||||
<stroke
|
||||
android:width="1.2dp"
|
||||
android:color="?colorAccent" />
|
||||
|
||||
<solid android:color="@color/black" />
|
||||
|
||||
</shape>
|
@ -5,8 +5,8 @@
|
||||
|
||||
<stroke
|
||||
android:width="1.2dp"
|
||||
android:color="#212121" />
|
||||
android:color="?android:textColorSecondary" />
|
||||
|
||||
<solid android:color="@color/black" />
|
||||
<solid android:color="?riotx_background" />
|
||||
|
||||
</shape>
|
||||
|
@ -13,7 +13,7 @@
|
||||
app:fragment="im.vector.riotx.features.settings.locale.LocalePickerFragment" />
|
||||
|
||||
<im.vector.riotx.core.preference.VectorListPreference
|
||||
android:defaultValue="sc_dark_colored"
|
||||
android:defaultValue="sc_light"
|
||||
android:entries="@array/theme_entries"
|
||||
android:entryValues="@array/theme_values"
|
||||
android:key="APPLICATION_THEME_KEY"
|
||||
@ -22,7 +22,7 @@
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<im.vector.riotx.core.preference.VectorListPreference
|
||||
android:defaultValue="sc_dark_colored"
|
||||
android:defaultValue="sc_dark"
|
||||
android:entries="@array/theme_entries"
|
||||
android:entryValues="@array/theme_values"
|
||||
android:key="APPLICATION_DARK_THEME_KEY"
|
||||
|
Loading…
x
Reference in New Issue
Block a user