Added the ability to export the current color config/theme. (#120)

* Added the ability to export the current color config/theme.

* Added the ability to import a theme.

* Added the ability to import a config only.

* Created preset themes for popular palettes.

* Restart AGS once settings/theme is imported.

* Added tokyo night theme

* Added rose pine themes.

* Move themes

* Organize files
This commit is contained in:
Jas Singh
2024-08-14 23:30:36 -07:00
committed by GitHub
parent 6dd37e686b
commit 0ba89aae4a
18 changed files with 2886 additions and 2 deletions

View File

@@ -13,6 +13,16 @@ export const MenuTheme = () => {
vertical: true,
children: [
Header('General'),
Option({
opt: options.dummy,
title: 'Theme',
subtitle: 'WARNING: Importing a theme will replace your current theme color settings.',
type: 'config_import',
exportData: {
filePath: OPTIONS,
themeOnly: true
}
}),
Option({ opt: options.theme.bar.menus.monochrome, title: 'Use Global Colors', type: 'boolean', disabledBinding: options.theme.matugen }),
Option({ opt: options.wallpaper.enable, title: 'Apply Wallpapers', subtitle: 'Whether to apply the wallpaper or to only use it for Matugen color generation.', type: 'boolean' }),
Option({ opt: options.wallpaper.image, title: 'Wallpaper', subtitle: options.wallpaper.image.bind("value"), type: 'wallpaper' }),