diff --git a/app/src/debug/res/values-night/colors.xml b/app/src/debug/res/values-night/colors.xml index 772427ef..42bde1ac 100644 --- a/app/src/debug/res/values-night/colors.xml +++ b/app/src/debug/res/values-night/colors.xml @@ -17,4 +17,25 @@ @color/background_icon_debug @color/background + + + #0F1C1A + #325B56 + #3bdbc4 + #aff0e7 + #68AEA4 + + + #1C0F11 + #5B3237 + #DB3B52 + #F0AFB8 + #AE6872 + + + #1C190F + #5B5232 + #DBB43B + #F0E1AF + #AE9D68 \ No newline at end of file diff --git a/app/src/debug/res/values/colors.xml b/app/src/debug/res/values/colors.xml index 60c1f863..1d077a9e 100644 --- a/app/src/debug/res/values/colors.xml +++ b/app/src/debug/res/values/colors.xml @@ -20,9 +20,25 @@ @color/background_icon_debug @color/background - #0F1C1A - #325B56 + + + #DBECE9 + #9CC9C3 #3bdbc4 #aff0e7 - #68AEA4 + #4D8F85 + + + #ECDBDE + #C99CA2 + #DB3B52 + #F0AFB8 + #8F4D57 + + + #ECE7DB + #C9BF9C + #DBB43B + #F0E1AF + #8F7E4D \ No newline at end of file diff --git a/app/src/main/java/de/dertyp7214/rboardthememanager/core/Activity.kt b/app/src/main/java/de/dertyp7214/rboardthememanager/core/Activity.kt index 89df4458..e6ffcb67 100644 --- a/app/src/main/java/de/dertyp7214/rboardthememanager/core/Activity.kt +++ b/app/src/main/java/de/dertyp7214/rboardthememanager/core/Activity.kt @@ -52,19 +52,12 @@ fun Activity.applyTheme( ) { setTheme( when (preferences.getString("app_style", "default")) { - "pink" -> when { - main -> R.style.Theme_RboardThemeManagerV3_Main - info -> R.style.Theme_RboardThemeManagerV3_Info - shareFlags -> R.style.Theme_RboardThemeManagerV3_ShareFlags - installPack -> R.style.Theme_RboardThemeManagerV3_InstallPack - else -> R.style.Theme_RboardThemeManagerV3 - } "red" -> when { - main -> R.style.Theme_RboardThemeManagerV3_Main - info -> R.style.Theme_RboardThemeManagerV3_Info - shareFlags -> R.style.Theme_RboardThemeManagerV3_ShareFlags - installPack -> R.style.Theme_RboardThemeManagerV3_InstallPack - else -> R.style.Theme_RboardThemeManagerV3 + main -> R.style.Theme_RboardThemeManagerV3_Main_Red + info -> R.style.Theme_RboardThemeManagerV3_Info_Red + shareFlags -> R.style.Theme_RboardThemeManagerV3_ShareFlags_Red + installPack -> R.style.Theme_RboardThemeManagerV3_InstallPack_Red + else -> R.style.Theme_RboardThemeManagerV3_Red } "green" -> when { main -> R.style.Theme_RboardThemeManagerV3_Main_Green @@ -74,11 +67,11 @@ fun Activity.applyTheme( else -> R.style.Theme_RboardThemeManagerV3_Green } "yellow" -> when { - main -> R.style.Theme_RboardThemeManagerV3_Main - info -> R.style.Theme_RboardThemeManagerV3_Info - shareFlags -> R.style.Theme_RboardThemeManagerV3_ShareFlags - installPack -> R.style.Theme_RboardThemeManagerV3_InstallPack - else -> R.style.Theme_RboardThemeManagerV3 + main -> R.style.Theme_RboardThemeManagerV3_Main_Yellow + info -> R.style.Theme_RboardThemeManagerV3_Info_Yellow + shareFlags -> R.style.Theme_RboardThemeManagerV3_ShareFlags_Yellow + installPack -> R.style.Theme_RboardThemeManagerV3_InstallPack_Yellow + else -> R.style.Theme_RboardThemeManagerV3_Yellow } else -> when { main -> R.style.Theme_RboardThemeManagerV3_Main diff --git a/app/src/main/java/de/dertyp7214/rboardthememanager/preferences/Settings.kt b/app/src/main/java/de/dertyp7214/rboardthememanager/preferences/Settings.kt index 350f8ad1..27cda4ef 100644 --- a/app/src/main/java/de/dertyp7214/rboardthememanager/preferences/Settings.kt +++ b/app/src/main/java/de/dertyp7214/rboardthememanager/preferences/Settings.kt @@ -27,7 +27,7 @@ import de.dertyp7214.rboardthememanager.Config.FLAG_PATH import de.dertyp7214.rboardthememanager.Config.MODULE_ID import de.dertyp7214.rboardthememanager.R import de.dertyp7214.rboardthememanager.core.* -import de.dertyp7214.rboardthememanager.screens.PreferencesActivity +import de.dertyp7214.rboardthememanager.screens.* import de.dertyp7214.rboardthememanager.utils.GboardUtils import de.dertyp7214.rboardthememanager.utils.MagiskUtils @@ -183,8 +183,7 @@ class Settings(private val activity: Activity, private val args: SafeJSON) : Abs SelectionItem("default", R.string.style_default, -1), SelectionItem("green", R.string.style_green, -1), SelectionItem("red", R.string.style_red, -1), - SelectionItem("yellow", R.string.style_yellow, -1), - SelectionItem("pink", R.string.style_pink, -1) + SelectionItem("yellow", R.string.style_yellow, -1) ) ), USE_BLUR( @@ -329,7 +328,7 @@ class Settings(private val activity: Activity, private val args: SafeJSON) : Abs override fun preferences(builder: PreferenceScreen.Builder) { SETTINGS.values().filter { it.visible } - .filter { !(it == SETTINGS.SHOW_SYSTEM_THEME && Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) && !(it == SETTINGS.USE_BLUR && Build.VERSION.SDK_INT < Build.VERSION_CODES.S) && !(it == SETTINGS.APP_STYLE && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) } + .filter { !(it == SETTINGS.SHOW_SYSTEM_THEME && Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) && !(it == SETTINGS.USE_BLUR && Build.VERSION.SDK_INT < Build.VERSION_CODES.S) && !(it == SETTINGS.APP_STYLE && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S && BuildConfig.BUILD_TYPE.equals("release")) } .forEach { item -> val pref: Preference = when (item.type) { TYPE.BOOLEAN -> builder.switch(item.key) { @@ -366,6 +365,21 @@ class Settings(private val activity: Activity, private val args: SafeJSON) : Abs PreferencesActivity::class.java[activity] = { putExtra("type", "settings") } + InstallPackActivity::class.java[activity] = { + putExtra("type", "packs") + } + ManageRepo::class.java[activity] = { + putExtra("type", "repo") + } + ShareFlags::class.java[activity] = { + putExtra("type", "shareflags") + } + ReadMoreReadFast::class.java[activity] = { + putExtra("type", "readmorefast") + } + MainActivity::class.java[activity] = { + putExtra("type", "main") + } activity.finish() } } diff --git a/app/src/main/res/layout/activity_preferences.xml b/app/src/main/res/layout/activity_preferences.xml index bb32b645..c505cd75 100644 --- a/app/src/main/res/layout/activity_preferences.xml +++ b/app/src/main/res/layout/activity_preferences.xml @@ -10,7 +10,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:fitsSystemWindows="true" - android:theme="@style/Theme.RboardThemeManagerV3.AppBarOverlay" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" @@ -21,7 +20,7 @@ android:layout_width="match_parent" android:layout_height="?attr/collapsingToolbarLayoutLargeSize" android:fitsSystemWindows="true" - app:contentScrim="@color/foreground" + app:contentScrim="?attr/colorBackgroundFloating" app:expandedTitleTextAppearance="?attr/textAppearanceHeadlineMedium" app:layout_scrollFlags="scroll|exitUntilCollapsed" app:toolbarId="@+id/toolbar"> diff --git a/app/src/main/res/values-night-v27/themes.xml b/app/src/main/res/values-night-v27/themes.xml index a207dbec..af4c9448 100644 --- a/app/src/main/res/values-night-v27/themes.xml +++ b/app/src/main/res/values-night-v27/themes.xml @@ -72,7 +72,8 @@ @color/foreground @color/foreground - - + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values-night-v30/themes_red.xml b/app/src/main/res/values-night-v30/themes_red.xml new file mode 100644 index 00000000..2e50a108 --- /dev/null +++ b/app/src/main/res/values-night-v30/themes_red.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values-night-v30/themes_yellow.xml b/app/src/main/res/values-night-v30/themes_yellow.xml new file mode 100644 index 00000000..cc4ae703 --- /dev/null +++ b/app/src/main/res/values-night-v30/themes_yellow.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml index 64625afa..89f1e5c4 100644 --- a/app/src/main/res/values-night/themes.xml +++ b/app/src/main/res/values-night/themes.xml @@ -72,7 +72,8 @@ @color/foreground @android:color/black - - - - + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values-v30/themes_yellow.xml b/app/src/main/res/values-v30/themes_yellow.xml new file mode 100644 index 00000000..cc4ae703 --- /dev/null +++ b/app/src/main/res/values-v30/themes_yellow.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 2a646d66..ff997735 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -73,7 +73,8 @@ @color/foreground @android:color/black -