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:
Mohamed Boudra
2026-08-11 14:09:44 +02:00
committed by GitHub
parent 36a13601dd
commit 8c003351d0
9 changed files with 171 additions and 132 deletions
+3 -27
View File
@@ -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;