update to settings and theme-chooser for default to light theme

pull/1/head
Rob Stupay 7 years ago
parent cf2a5b1d28
commit 78d8ebd69c
  1. 10
      src/app/tabs/settings-tab.js
  2. 6
      src/app/theme/theme-chooser.js

@ -43,6 +43,10 @@ var css = csjs`
.heading { .heading {
margin-bottom: 0; margin-bottom: 0;
} }
.explaination {
margin-top: 3px;
margin-bottom: 3px;
}
input { input {
margin-right: 5px; margin-right: 5px;
cursor: pointer; cursor: pointer;
@ -56,6 +60,9 @@ var css = csjs`
.pluginLoad { .pluginLoad {
vertical-align: top; vertical-align: top;
} }
i.warnIt {
color: ${styles.appProperties.warningText_Color};
}
} }
` `
module.exports = SettingsTab module.exports = SettingsTab
@ -89,6 +96,7 @@ function SettingsTab (container, appAPI, appEvents, opts) {
<span class="${css.checkboxText}">Enable Optimization</span> <span class="${css.checkboxText}">Enable Optimization</span>
</div> </div>
<h4 class="${css.heading}">Themes</h4> <h4 class="${css.heading}">Themes</h4>
<p class="${css.explaination}">If you select a new theme, the page will reload</p>
<div class="${css.crow}"> <div class="${css.crow}">
<input class="${css.col1}" name="theme" id="themeLight" type="radio"> <input class="${css.col1}" name="theme" id="themeLight" type="radio">
<label for="themeLight">Light Theme</label> <label for="themeLight">Light Theme</label>
@ -99,7 +107,7 @@ function SettingsTab (container, appAPI, appEvents, opts) {
</div> </div>
<hr> <hr>
<div class="${css.crowNoFlex}"> <div class="${css.crowNoFlex}">
<div>Plugin (<i title="Do not use this feature yet" class="fa fa-exclamation-triangle" aria-hidden="true"></i><span> Do not use this alpha feature if you are not sure what you are doing!</span>) <div>Plugin ( <i title="Do not use this feature yet" class="${css.warnIt} fa fa-exclamation-triangle" aria-hidden="true"></i><span> Do not use this alpha feature if you are not sure what you are doing!</span> )
</div> </div>
<div> <div>
<textarea rows="4" cols="70" id="plugininput" type="text" class="${css.pluginTextArea}" ></textarea> <textarea rows="4" cols="70" id="plugininput" type="text" class="${css.pluginTextArea}" ></textarea>

@ -6,10 +6,10 @@ module.exports = {
chooser: function () { chooser: function () {
var themeStorage = new Storage('style:') var themeStorage = new Storage('style:')
if (themeStorage.get('theme') === 'light') { if (themeStorage.get('theme') === 'dark') {
return styleGuideLight()
} else {
return styleGuideDark() return styleGuideDark()
} else {
return styleGuideLight()
} }
}, },

Loading…
Cancel
Save