Add custom themes

This commit is contained in:
Geomitron
2024-07-11 23:10:34 -05:00
parent 2e08dec589
commit cb6e51be24
12 changed files with 347 additions and 37 deletions

View File

@@ -3,6 +3,7 @@ import { UpdateInfo } from 'electron-updater'
import { Settings } from '../Settings.js'
import { Download, DownloadProgress } from './download.interface.js'
import { ThemeColors } from './theme.interface.js'
import { UpdateProgress } from './update.interface.js'
export interface ContextBridgeApi {
@@ -45,6 +46,10 @@ export interface IpcInvokeEvents {
input: OpenDialogOptions
output: OpenDialogReturnValue
}
getThemeColors: {
input: string
output: ThemeColors | null
}
}
export type IpcInvokeHandlers = {

View File

@@ -0,0 +1,28 @@
/* eslint-disable @typescript-eslint/naming-convention */
export interface ThemeColors {
'primary': string
'primary-focus': string
'primary-content': string
'secondary': string
'secondary-focus': string
'secondary-content': string
'accent': string
'accent-focus': string
'accent-content': string
'neutral': string
'neutral-focus': string
'neutral-content': string
'base-100': string
'base-200': string
'base-300': string
'base-content': string
'info': string
'info-content': string
'success': string
'success-content': string
'warning': string
'warning-content': string
'error': string
'error-content': string
}