mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 06:17:57 +01:00 
			
		
		
		
	Added "Strawberry Daiquiri" theme (#5176)
This commit is contained in:
		| @@ -18,6 +18,7 @@ object PreferenceValues { | ||||
|     enum class LightThemeVariant { | ||||
|         default, | ||||
|         blue, | ||||
|         strawberrydaiquiri, | ||||
|     } | ||||
|  | ||||
|     // Keys are lowercase to match legacy string values | ||||
|   | ||||
| @@ -33,6 +33,7 @@ abstract class BaseThemedActivity : AppCompatActivity() { | ||||
|             when (preferences.themeLight().get()) { | ||||
|                 LightThemeVariant.default -> R.style.Theme_Tachiyomi_Light | ||||
|                 LightThemeVariant.blue -> R.style.Theme_Tachiyomi_Light_Blue | ||||
|                 LightThemeVariant.strawberrydaiquiri -> R.style.Theme_Tachiyomi_Light_StrawberryDaiquiri | ||||
|             } | ||||
|         } | ||||
|         setTheme(themeId) | ||||
|   | ||||
| @@ -116,11 +116,13 @@ class SettingsGeneralController : SettingsController() { | ||||
|                 titleRes = R.string.pref_theme_light | ||||
|                 entriesRes = arrayOf( | ||||
|                     R.string.theme_light_default, | ||||
|                     R.string.theme_light_blue | ||||
|                     R.string.theme_light_blue, | ||||
|                     R.string.theme_light_strawberrydaiquiri | ||||
|                 ) | ||||
|                 entryValues = arrayOf( | ||||
|                     Values.LightThemeVariant.default.name, | ||||
|                     Values.LightThemeVariant.blue.name | ||||
|                     Values.LightThemeVariant.blue.name, | ||||
|                     Values.LightThemeVariant.strawberrydaiquiri.name | ||||
|                 ) | ||||
|                 defaultValue = Values.LightThemeVariant.default.name | ||||
|                 summary = "%s" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user