mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-06 11:00:09 -06:00
add OLED theme support and update theme settings (#611)
This commit is contained in:
@@ -24,7 +24,9 @@ function BlurredBackground({
|
||||
|
||||
// Calculate dark mode
|
||||
const isDarkMode =
|
||||
themeSetting === 'dark' || (themeSetting === 'system' && colorScheme === 'dark')
|
||||
themeSetting === 'dark' ||
|
||||
themeSetting === 'oled' ||
|
||||
(themeSetting === 'system' && colorScheme === 'dark')
|
||||
|
||||
// Get blurhash safely
|
||||
const blurhash = nowPlaying?.item ? getBlurhashFromDto(nowPlaying.item) : null
|
||||
|
||||
@@ -31,6 +31,11 @@ export default function PreferencesTab(): React.JSX.Element {
|
||||
<RadioGroupItemWithLabel size='$3' value='system' label='System' />
|
||||
<RadioGroupItemWithLabel size='$3' value='light' label='Light' />
|
||||
<RadioGroupItemWithLabel size='$3' value='dark' label='Dark' />
|
||||
<RadioGroupItemWithLabel
|
||||
size='$3'
|
||||
value='oled'
|
||||
label='OLED (True Black)'
|
||||
/>
|
||||
</RadioGroup>
|
||||
</YStack>
|
||||
),
|
||||
|
||||
@@ -63,3 +63,15 @@ export const JellifyLightTheme = {
|
||||
},
|
||||
fonts: JellifyFonts,
|
||||
}
|
||||
|
||||
export const JellifyOLEDTheme: ReactNavigation.Theme = {
|
||||
dark: true,
|
||||
colors: {
|
||||
...DarkTheme.colors,
|
||||
card: getTokens().color.$black.val,
|
||||
border: getTokens().color.$neutral.val,
|
||||
background: getTokens().color.$black.val,
|
||||
primary: getTokens().color.$primaryDark.val,
|
||||
},
|
||||
fonts: JellifyFonts,
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import { stateStorage } from '../../constants/storage'
|
||||
import { create } from 'zustand'
|
||||
import { createJSONStorage, devtools, persist } from 'zustand/middleware'
|
||||
|
||||
export type ThemeSetting = 'system' | 'light' | 'dark'
|
||||
export type ThemeSetting = 'system' | 'light' | 'dark' | 'oled'
|
||||
|
||||
type AppSettingsStore = {
|
||||
sendMetrics: boolean
|
||||
|
||||
Reference in New Issue
Block a user