fix(app): keep theme selection consistent (#3214)
Theme registration, the appearance picker, persistence, and shortcut cycling drifted as new choices were added. Make one ordered catalog own those paths so Auto and Pure Black participate consistently, while lifting the Pure Black selected-workspace surface above its sidebar.
This commit is contained in:
@@ -1,24 +1,8 @@
|
||||
import { StyleSheet } from "react-native-unistyles";
|
||||
import {
|
||||
lightTheme,
|
||||
darkTheme,
|
||||
darkZincTheme,
|
||||
darkMidnightTheme,
|
||||
darkClaudeTheme,
|
||||
darkGhosttyTheme,
|
||||
darkPureBlackTheme,
|
||||
} from "./theme";
|
||||
import { REGISTERED_THEMES } from "./theme";
|
||||
|
||||
StyleSheet.configure({
|
||||
themes: {
|
||||
light: lightTheme,
|
||||
dark: darkTheme,
|
||||
darkZinc: darkZincTheme,
|
||||
darkMidnight: darkMidnightTheme,
|
||||
darkClaude: darkClaudeTheme,
|
||||
darkGhostty: darkGhosttyTheme,
|
||||
darkPureBlack: darkPureBlackTheme,
|
||||
},
|
||||
themes: REGISTERED_THEMES,
|
||||
breakpoints: {
|
||||
xs: 0,
|
||||
sm: 576,
|
||||
@@ -32,15 +16,7 @@ StyleSheet.configure({
|
||||
});
|
||||
|
||||
// Type augmentation for TypeScript
|
||||
interface AppThemes {
|
||||
light: typeof lightTheme;
|
||||
dark: typeof darkTheme;
|
||||
darkZinc: typeof darkZincTheme;
|
||||
darkMidnight: typeof darkMidnightTheme;
|
||||
darkClaude: typeof darkClaudeTheme;
|
||||
darkGhostty: typeof darkGhosttyTheme;
|
||||
darkPureBlack: typeof darkPureBlackTheme;
|
||||
}
|
||||
type AppThemes = typeof REGISTERED_THEMES;
|
||||
|
||||
interface AppBreakpoints {
|
||||
xs: number;
|
||||
|
||||
Reference in New Issue
Block a user