mirror of https://github.com/Fabio286/antares.git
fix(Windows): white window buttons with dark theme
This commit is contained in:
parent
cfd82c8f41
commit
a80d227400
|
@ -86,7 +86,7 @@ else {
|
||||||
|
|
||||||
ipcMain.on('refresh-theme-settings', () => {
|
ipcMain.on('refresh-theme-settings', () => {
|
||||||
const appTheme = persistentStore.get('application_theme');
|
const appTheme = persistentStore.get('application_theme');
|
||||||
if (isWindows) {
|
if (isWindows && mainWindow) {
|
||||||
mainWindow.setTitleBarOverlay({
|
mainWindow.setTitleBarOverlay({
|
||||||
color: appTheme === 'dark' ? '#3f3f3f' : '#fff',
|
color: appTheme === 'dark' ? '#3f3f3f' : '#fff',
|
||||||
symbolColor: appTheme === 'dark' ? '#fff' : '#000'
|
symbolColor: appTheme === 'dark' ? '#fff' : '#000'
|
||||||
|
|
|
@ -64,12 +64,20 @@ export default {
|
||||||
const { getSelected: selectedWorkspace } = storeToRefs(workspacesStore);
|
const { getSelected: selectedWorkspace } = storeToRefs(workspacesStore);
|
||||||
|
|
||||||
const { checkVersionUpdate } = applicationStore;
|
const { checkVersionUpdate } = applicationStore;
|
||||||
|
const { changeApplicationTheme } = settingsStore;
|
||||||
|
|
||||||
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
setTimeout(() => {
|
||||||
|
changeApplicationTheme(applicationTheme.value);// Forces persistentStore to save on file and mail process
|
||||||
|
}, 1000);
|
||||||
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
isLoading,
|
isLoading,
|
||||||
isSettingModal,
|
isSettingModal,
|
||||||
isScratchpad,
|
isScratchpad,
|
||||||
checkVersionUpdate,
|
checkVersionUpdate,
|
||||||
|
changeApplicationTheme,
|
||||||
connections,
|
connections,
|
||||||
applicationTheme,
|
applicationTheme,
|
||||||
disableBlur,
|
disableBlur,
|
||||||
|
|
Loading…
Reference in New Issue