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:
9
lib/types/options.d.ts
vendored
9
lib/types/options.d.ts
vendored
@@ -5,6 +5,11 @@ export type Unit = "imperial" | "metric";
|
||||
export type PowerOptions = "sleep" | "reboot" | "logout" | "shutdown";
|
||||
export type NotificationAnchor = "top" | "top right" | "top left" | "bottom" | "bottom right" | "bottom left" | "left" | "right";
|
||||
export type OSDAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
|
||||
|
||||
export type ThemeExportData = {
|
||||
filePath: string,
|
||||
themeOnly: boolean
|
||||
}
|
||||
export type RowProps<T> = {
|
||||
opt: Opt<T>
|
||||
title: string
|
||||
@@ -19,11 +24,15 @@ export type RowProps<T> = {
|
||||
| "boolean"
|
||||
| "img"
|
||||
| "wallpaper"
|
||||
| "export"
|
||||
| "import"
|
||||
| "config_import"
|
||||
| "font"
|
||||
enums?: string[]
|
||||
max?: number
|
||||
min?: number
|
||||
disabledBinding?: Variable<boolean>
|
||||
exportData?: ThemeExportData
|
||||
subtitle?: string | VarType<any> | Opt,
|
||||
dependencies?: string[],
|
||||
increment?: number
|
||||
|
||||
Reference in New Issue
Block a user