Works well with incognito browser!

pull/1/head
jeremiG 6 years ago
parent 91ce7a30e9
commit 2d4abfed7f
  1. 12
      src/app/tabs/settings-tab.js
  2. 4
      src/app/ui/styles-guide/styleGuideClean.js
  3. 10
      src/app/ui/styles-guide/theme-chooser.js

@ -26,7 +26,7 @@ module.exports = class SettingsTab {
el: null, el: null,
optionVM: null, personal: null, warnPersonalMode: null, generateContractMetadata: null, optionVM: null, personal: null, warnPersonalMode: null, generateContractMetadata: null,
pluginInput: null, versionSelector: null, version: null, pluginInput: null, versionSelector: null, version: null,
theme: { dark: null, light: null, david: null }, theme: { dark: null, light: null, clean: null },
plugins: {}, plugins: {},
config: { config: {
general: null, themes: null, general: null, themes: null,
@ -66,7 +66,7 @@ module.exports = class SettingsTab {
self._view.theme.light = yo`<input onchange=${onswitch2lightTheme} class="${css.col1}" name="theme" id="themeLight" type="radio">` self._view.theme.light = yo`<input onchange=${onswitch2lightTheme} class="${css.col1}" name="theme" id="themeLight" type="radio">`
self._view.theme.dark = yo`<input onchange=${onswitch2darkTheme} class="${css.col1}" name="theme" id="themeDark" type="radio">` self._view.theme.dark = yo`<input onchange=${onswitch2darkTheme} class="${css.col1}" name="theme" id="themeDark" type="radio">`
self._view.theme.david = yo`<input onchange=${onswitch2davidTheme} class="${css.col1}" name="theme" id="themeDavid" type="radio">` self._view.theme.clean = yo`<input onchange=${onswitch2cleanTheme} class="${css.col1}" name="theme" id="themeClean" type="radio">`
self._view.theme[self.data.currentTheme].setAttribute('checked', 'checked') self._view.theme[self.data.currentTheme].setAttribute('checked', 'checked')
self._view.config.general = yo` self._view.config.general = yo`
@ -114,8 +114,8 @@ module.exports = class SettingsTab {
<label for="themeDark">Dark Theme</label> <label for="themeDark">Dark Theme</label>
</div> </div>
<div class="${css.crow}"> <div class="${css.crow}">
${self._view.theme.david} ${self._view.theme.clean}
<label for="themeDavid">David Theme</label> <label for="themeClean">Clean Theme</label>
</div> </div>
</div>` </div>`
self._view.config.plugins = yo`<div></div>` self._view.config.plugins = yo`<div></div>`
@ -200,8 +200,8 @@ module.exports = class SettingsTab {
styleGuide.switchTheme('light') styleGuide.switchTheme('light')
window.location.reload() window.location.reload()
} }
function onswitch2davidTheme (event) { function onswitch2cleanTheme (event) {
styleGuide.switchTheme('david') styleGuide.switchTheme('clean')
window.location.reload() window.location.reload()
} }
function onchangePersonal (event) { function onchangePersonal (event) {

@ -1,8 +1,8 @@
// var csjs = require('csjs-inject') // var csjs = require('csjs-inject')
module.exports = styleGuideDavid module.exports = styleGuideClean
function styleGuideDavid () { function styleGuideClean () {
/* -------------------------------------------------------------------------- /* --------------------------------------------------------------------------
CSS PROPERTIES CSS PROPERTIES

@ -1,6 +1,6 @@
var styleGuideLight = require('./style-guide') var styleGuideLight = require('./style-guide')
var styleGuideDark = require('./styleGuideDark') var styleGuideDark = require('./styleGuideDark')
var styleGuideDavid = require('./styleGuideDavid') var styleGuideClean = require('./styleGuideClean')
var Storage = require('remix-lib').Storage var Storage = require('remix-lib').Storage
module.exports = { module.exports = {
@ -10,8 +10,8 @@ module.exports = {
if (themeStorage.exists('theme')) { if (themeStorage.exists('theme')) {
if (themeStorage.get('theme') === 'dark') { if (themeStorage.get('theme') === 'dark') {
return styleGuideDark() return styleGuideDark()
} else if (themeStorage.get('theme') === 'david') { } else if (themeStorage.get('theme') === 'clean') {
return styleGuideDavid() return styleGuideClean()
} else { } else {
return styleGuideLight() return styleGuideLight()
} }
@ -27,8 +27,8 @@ module.exports = {
return styleGuideDark() return styleGuideDark()
} else if (theme === 'light') { } else if (theme === 'light') {
return styleGuideLight() return styleGuideLight()
} else if (theme === 'david') { } else if (theme === 'clean') {
return styleGuideDavid() return styleGuideClean()
} else { } else {
return styleGuideLight() return styleGuideLight()
} }

Loading…
Cancel
Save