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.
33 lines
633 B
TypeScript
33 lines
633 B
TypeScript
import { StyleSheet } from "react-native-unistyles";
|
|
import { REGISTERED_THEMES } from "./theme";
|
|
|
|
StyleSheet.configure({
|
|
themes: REGISTERED_THEMES,
|
|
breakpoints: {
|
|
xs: 0,
|
|
sm: 576,
|
|
md: 720,
|
|
lg: 992,
|
|
xl: 1200,
|
|
},
|
|
settings: {
|
|
adaptiveThemes: true,
|
|
},
|
|
});
|
|
|
|
// Type augmentation for TypeScript
|
|
type AppThemes = typeof REGISTERED_THEMES;
|
|
|
|
interface AppBreakpoints {
|
|
xs: number;
|
|
sm: number;
|
|
md: number;
|
|
lg: number;
|
|
xl: number;
|
|
}
|
|
|
|
declare module "react-native-unistyles" {
|
|
export interface UnistylesThemes extends AppThemes {}
|
|
export interface UnistylesBreakpoints extends AppBreakpoints {}
|
|
}
|