mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 22:29:38 +00:00
Add custom themes
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { app, dialog, OpenDialogOptions, shell } from 'electron'
|
||||
import fsExtra from 'fs-extra'
|
||||
|
||||
import { ThemeColors } from '../../src-shared/interfaces/theme.interface.js'
|
||||
import { mainWindow } from '../main.js'
|
||||
|
||||
/**
|
||||
@@ -48,3 +50,11 @@ export function showFile(filePath: string) {
|
||||
export async function getPlatform() {
|
||||
return process.platform
|
||||
}
|
||||
|
||||
export async function getThemeColors(path: string) {
|
||||
try {
|
||||
return await fsExtra.readJson(path) as ThemeColors
|
||||
} catch (err) {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user