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
970257e6
Unverified
Commit
970257e6
authored
Jan 15, 2019
by
yann300
Committed by
GitHub
Jan 15, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1657 from dvdptr/feat/new-theme-david
feat(ui): Add support for a new theme
parents
c0dd44a1
2d4abfed
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
32 additions
and
6 deletions
+32
-6
righthand-panel.js
src/app/panels/righthand-panel.js
+2
-1
file-panel-styles.js
src/app/panels/styles/file-panel-styles.js
+1
-1
terminal-styles.js
src/app/panels/styles/terminal-styles.js
+1
-1
settings-tab.js
src/app/tabs/settings-tab.js
+10
-1
run-tab-styles.js
src/app/tabs/styles/run-tab-styles.js
+2
-2
style-guide.js
src/app/ui/styles-guide/style-guide.js
+5
-0
styleGuideClean.js
src/app/ui/styles-guide/styleGuideClean.js
+0
-0
styleGuideDark.js
src/app/ui/styles-guide/styleGuideDark.js
+5
-0
theme-chooser.js
src/app/ui/styles-guide/theme-chooser.js
+6
-0
No files found.
src/app/panels/righthand-panel.js
View file @
970257e6
...
...
@@ -27,10 +27,11 @@ const css = csjs`
}
.dragbar {
position : absolute;
width :
0.5em
;
width :
${
styles
.
rightPanel
.
dragbarWidth
}
;
top : 3em;
bottom : 0;
cursor : col-resize;
background-color :
${
styles
.
rightPanel
.
dragbarBackgroundColor
}
;
z-index : 999;
border-left : 2px solid
${
styles
.
rightPanel
.
bar_Dragging
}
;
}
...
...
src/app/panels/styles/file-panel-styles.js
View file @
970257e6
...
...
@@ -82,7 +82,7 @@ var css = csjs`
bottom : 0;
cursor : col-resize;
z-index : 999;
border-right :
2px solid hsla(215, 81%, 79%, .3)
;
border-right :
${
styles
.
leftPanel
.
dragbarBorderRight
}
;
}
.ghostbar {
width : 3px;
...
...
src/app/panels/styles/terminal-styles.js
View file @
970257e6
...
...
@@ -78,7 +78,7 @@ var css = csjs`
line-height : 2ch;
padding : 1ch;
margin-top : 2ch;
border-top :
0.07ch solid
${
styles
.
colors
.
veryLightGrey
}
;
border-top :
${
styles
.
terminal
.
blockBorderTop
}
;
color :
${
styles
.
appProperties
.
mainText_Color
}
;
}
.cli {
...
...
src/app/tabs/settings-tab.js
View file @
970257e6
...
...
@@ -26,7 +26,7 @@ module.exports = class SettingsTab {
el
:
null
,
optionVM
:
null
,
personal
:
null
,
warnPersonalMode
:
null
,
generateContractMetadata
:
null
,
pluginInput
:
null
,
versionSelector
:
null
,
version
:
null
,
theme
:
{
dark
:
null
,
light
:
null
},
theme
:
{
dark
:
null
,
light
:
null
,
clean
:
null
},
plugins
:
{},
config
:
{
general
:
null
,
themes
:
null
,
...
...
@@ -66,6 +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
.
dark
=
yo
`<input onchange=
${
onswitch2darkTheme
}
class="
${
css
.
col1
}
" name="theme" id="themeDark" 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
.
config
.
general
=
yo
`
...
...
@@ -112,6 +113,10 @@ module.exports = class SettingsTab {
${
self
.
_view
.
theme
.
dark
}
<label for="themeDark">Dark Theme</label>
</div>
<div class="
${
css
.
crow
}
">
${
self
.
_view
.
theme
.
clean
}
<label for="themeClean">Clean Theme</label>
</div>
</div>`
self
.
_view
.
config
.
plugins
=
yo
`<div></div>`
self
.
_view
.
config
.
plugin
=
yo
`
...
...
@@ -195,6 +200,10 @@ module.exports = class SettingsTab {
styleGuide.switchTheme('light')
window.location.reload()
}
function onswitch2cleanTheme (event) {
styleGuide.switchTheme('clean')
window.location.reload()
}
function onchangePersonal (event) {
self._deps.config.set('settings/personal-mode', !self._deps.config.get('settings/personal-mode'))
}
...
...
src/app/tabs/styles/run-tab-styles.js
View file @
970257e6
...
...
@@ -130,15 +130,15 @@ var css = csjs`
${
styles
.
rightPanel
.
runTab
.
button_transaction
}
}
.atAddress {
${
styles
.
rightPanel
.
runTab
.
button_atAddress
}
margin: 0;
min-width: 100px;
width: 100px;
font-size: 10px;
margin: 0;
word-break: inherit;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: 0;
${
styles
.
rightPanel
.
runTab
.
button_atAddress
}
}
.atAddressSect {
margin-top: 6px;
...
...
src/app/ui/styles-guide/style-guide.js
View file @
970257e6
...
...
@@ -411,6 +411,7 @@ function styleGuide () {
bar_Ghost
:
appProperties
.
ghostBar
,
bar_Dragging
:
appProperties
.
draggingBar
,
dragbarBorderRight
:
'2px solid hsla(215, 81%, 79%, .3)'
,
icon_Color_Menu
:
appProperties
.
icon_Color
,
icon_HoverColor_Menu
:
appProperties
.
icon_HoverColor
,
...
...
@@ -460,6 +461,8 @@ function styleGuide () {
text_Regular_TransactionLog
:
appProperties
.
supportText_Color
,
text_Button
:
appProperties
.
oppositeText_Color
,
blockBorderTop
:
'0.07ch solid '
+
cssProperties
.
colors
.
veryLightGrey
,
icon_Color_Log_Succeed
:
appProperties
.
success_BorderColor
,
icon_Color_Log_Failed
:
appProperties
.
errorText_Color
,
icon_BackgroundColor_Log_Call
:
appProperties
.
infoText_Color
,
...
...
@@ -514,6 +517,8 @@ function styleGuide () {
bar_Ghost
:
appProperties
.
ghostBar
,
bar_Dragging
:
appProperties
.
draggingBar
,
dragbarWidth
:
'0.5rem'
,
dragbarBackgroundColor
:
''
,
icon_Color_TogglePanel
:
appProperties
.
icon_Color
,
icon_HoverColor_TogglePanel
:
appProperties
.
icon_HoverColor
,
...
...
src/app/ui/styles-guide/styleGuideClean.js
0 → 100644
View file @
970257e6
This diff is collapsed.
Click to expand it.
src/app/ui/styles-guide/styleGuideDark.js
View file @
970257e6
...
...
@@ -418,6 +418,7 @@ function styleGuideDark () {
bar_Ghost
:
appProperties
.
ghostBar
,
bar_Dragging
:
appProperties
.
draggingBar
,
dragbarBorderRight
:
'2px solid hsla(215, 81%, 79%, .3)'
,
icon_Color_Menu
:
appProperties
.
icon_Color
,
icon_HoverColor_Menu
:
appProperties
.
icon_HoverColor
,
...
...
@@ -467,6 +468,8 @@ function styleGuideDark () {
text_Regular_TransactionLog
:
appProperties
.
supportText_Color
,
text_Button
:
appProperties
.
oppositeText_Color
,
blockBorderTop
:
'0.07ch solid '
+
cssProperties
.
colors
.
veryLightGrey
,
icon_Color_TogglePanel
:
appProperties
.
icon_Color
,
icon_HoverColor_TogglePanel
:
appProperties
.
icon_HoverColor
,
icon_Color_Menu
:
appProperties
.
icon_Color
,
...
...
@@ -516,6 +519,8 @@ function styleGuideDark () {
bar_Ghost
:
appProperties
.
ghostBar
,
bar_Dragging
:
appProperties
.
draggingBar
,
dragbarWidth
:
'0.5rem'
,
dragbarBackgroundColor
:
''
,
icon_Color_TogglePanel
:
appProperties
.
icon_Color
,
icon_HoverColor_TogglePanel
:
appProperties
.
icon_HoverColor
,
...
...
src/app/ui/styles-guide/theme-chooser.js
View file @
970257e6
var
styleGuideLight
=
require
(
'./style-guide'
)
var
styleGuideDark
=
require
(
'./styleGuideDark'
)
var
styleGuideClean
=
require
(
'./styleGuideClean'
)
var
Storage
=
require
(
'remix-lib'
).
Storage
module
.
exports
=
{
chooser
:
function
()
{
...
...
@@ -8,6 +10,8 @@ module.exports = {
if
(
themeStorage
.
exists
(
'theme'
))
{
if
(
themeStorage
.
get
(
'theme'
)
===
'dark'
)
{
return
styleGuideDark
()
}
else
if
(
themeStorage
.
get
(
'theme'
)
===
'clean'
)
{
return
styleGuideClean
()
}
else
{
return
styleGuideLight
()
}
...
...
@@ -23,6 +27,8 @@ module.exports = {
return
styleGuideDark
()
}
else
if
(
theme
===
'light'
)
{
return
styleGuideLight
()
}
else
if
(
theme
===
'clean'
)
{
return
styleGuideClean
()
}
else
{
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