mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
fix and update remote design
This commit is contained in:
parent
ad533a1d9c
commit
6689e84f67
24 changed files with 326 additions and 453 deletions
|
|
@ -12,7 +12,7 @@ export const THEME_DATA = [
|
|||
{ label: 'Default Light', type: 'light', value: AppTheme.DEFAULT_LIGHT },
|
||||
];
|
||||
|
||||
export const useAppTheme = () => {
|
||||
export const useAppTheme = (overrideTheme?: AppTheme) => {
|
||||
const accent = useSettingsStore((store) => store.general.accent);
|
||||
const nativeImageAspect = useSettingsStore((store) => store.general.nativeAspectRatio);
|
||||
const { builtIn, custom, system, type } = useSettingsStore((state) => state.font);
|
||||
|
|
@ -28,6 +28,10 @@ export const useAppTheme = () => {
|
|||
};
|
||||
|
||||
const getSelectedTheme = () => {
|
||||
if (overrideTheme) {
|
||||
return overrideTheme;
|
||||
}
|
||||
|
||||
if (followSystemTheme) {
|
||||
return isDarkTheme ? themeDark : themeLight;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue