mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-08-05 21:45:19 +02:00
refactor(ui): getting ride of naive ui buttons
This commit is contained in:
parent
df989e24b3
commit
c45bce36f9
44 changed files with 738 additions and 204 deletions
13
src/ui/theme/theme.models.ts
Normal file
13
src/ui/theme/theme.models.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { useThemeStore } from './theme.store';
|
||||
|
||||
export { defineThemes };
|
||||
|
||||
function defineThemes<Theme>(themes: { light: Theme; dark: Theme }) {
|
||||
return {
|
||||
themes,
|
||||
useTheme() {
|
||||
const themeStore = useThemeStore();
|
||||
return computed(() => themes[themeStore.themeType]);
|
||||
},
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue