Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
09443d3e
Commit
09443d3e
authored
Jan 05, 2018
by
Rob Stupay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
additional if clause in the themeStorage obj exists and slight update to working on settings tab
parent
78d8ebd6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
settings-tab.js
src/app/tabs/settings-tab.js
+1
-1
theme-chooser.js
src/app/theme/theme-chooser.js
+9
-2
No files found.
src/app/tabs/settings-tab.js
View file @
09443d3e
...
@@ -96,7 +96,7 @@ function SettingsTab (container, appAPI, appEvents, opts) {
...
@@ -96,7 +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>
<p class="
${
css
.
explaination
}
">If you
change themes
, 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>
...
...
src/app/theme/theme-chooser.js
View file @
09443d3e
...
@@ -6,9 +6,16 @@ module.exports = {
...
@@ -6,9 +6,16 @@ module.exports = {
chooser
:
function
()
{
chooser
:
function
()
{
var
themeStorage
=
new
Storage
(
'style:'
)
var
themeStorage
=
new
Storage
(
'style:'
)
if
(
themeStorage
.
get
(
'theme'
)
===
'dark'
)
{
if
(
themeStorage
.
exists
(
'theme'
))
{
return
styleGuideDark
()
console
.
log
(
'10! '
+
themeStorage
.
exists
(
'theme'
))
// console.log('lll ' + )
if
(
themeStorage
.
get
(
'theme'
)
===
'dark'
)
{
return
styleGuideDark
()
}
else
{
return
styleGuideLight
()
}
}
else
{
}
else
{
console
.
log
(
'17! '
+
themeStorage
.
exists
(
'style:'
))
return
styleGuideLight
()
return
styleGuideLight
()
}
}
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment