Skip to content

Commit

Permalink
color
Browse files Browse the repository at this point in the history
  • Loading branch information
lacymorrow committed Apr 10, 2022
1 parent 6e79ab8 commit 8a9bdb9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/crossover.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ const syncSettings = ( options = preferences.preferences ) => {
'--reticle-scale': options.crosshair.reticleScale,
'--tilt-angle': options.actions.tiltAngle,
'--app-bg-color': 'unset',
'--app-color': 'unset',
'--app-highlight-color': 'unset',
'--svg-fill-color': 'unset',
'--svg-stroke-color': 'unset',
'--svg-stroke-width': 'unset',
Expand All @@ -300,7 +300,7 @@ const syncSettings = ( options = preferences.preferences ) => {

if ( options.app.appHighlightColor.charAt( 0 ) === '#' ) {

properties['--app-color'] = options.app.appHighlightColor
properties['--app-highlight-color'] = options.app.appHighlightColor

}

Expand Down Expand Up @@ -331,7 +331,9 @@ const syncSettings = ( options = preferences.preferences ) => {
const theme = THEME_VALUES.includes( options.app.theme ) ? options.app.theme : DEFAULT_THEME
nativeTheme.themeSource = theme
properties['--app-bg-color'] = 'unset'
properties['--app-highlight-color'] = 'unset'
preferences.value( 'app.appBgColor', 'unset' )
preferences.value( 'app.appHighlightColor', 'unset' )

// Themesource is either light or dark, to prevent triggering this on every sync...
if ( options.app.theme === 'system' ) {
Expand Down

0 comments on commit 8a9bdb9

Please sign in to comment.