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
0cca38bd
Unverified
Commit
0cca38bd
authored
Apr 30, 2019
by
yann300
Committed by
GitHub
Apr 30, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1897 from ethereum/issue#1896-theme_changed_event
Issue#1896 theme changed event
parents
d266db68
6de2c68f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
vertical-icons-component.js
src/app/components/vertical-icons-component.js
+2
-2
editor.js
src/app/editor/editor.js
+2
-2
theme-module.js
src/app/tabs/theme-module.js
+1
-1
landing-page.js
src/app/ui/landing-page/landing-page.js
+2
-2
No files found.
src/app/components/vertical-icons-component.js
View file @
0cca38bd
...
@@ -35,8 +35,8 @@ class VerticalIconComponent {
...
@@ -35,8 +35,8 @@ class VerticalIconComponent {
this
.
store
.
event
.
on
(
'remove'
,
(
api
)
=>
{
})
this
.
store
.
event
.
on
(
'remove'
,
(
api
)
=>
{
})
let
themeModule
=
globalRegistry
.
get
(
'themeModule'
).
api
let
themeModule
=
globalRegistry
.
get
(
'themeModule'
).
api
themeModule
.
events
.
on
(
'themeChanged'
,
(
t
yp
e
)
=>
{
themeModule
.
events
.
on
(
'themeChanged'
,
(
t
hem
e
)
=>
{
this
.
onThemeChanged
(
t
ype
)
this
.
onThemeChanged
(
t
heme
.
quality
)
})
})
}
}
...
...
src/app/editor/editor.js
View file @
0cca38bd
...
@@ -52,8 +52,8 @@ class Editor {
...
@@ -52,8 +52,8 @@ class Editor {
'light'
:
'chrome'
,
'light'
:
'chrome'
,
'dark'
:
'chaos'
'dark'
:
'chaos'
}
}
this
.
_deps
.
themeModule
.
events
.
on
(
'themeChanged'
,
(
t
yp
e
)
=>
{
this
.
_deps
.
themeModule
.
events
.
on
(
'themeChanged'
,
(
t
hem
e
)
=>
{
this
.
setTheme
(
t
ype
)
this
.
setTheme
(
t
heme
.
quality
)
})
})
// Init
// Init
...
...
src/app/tabs/theme-module.js
View file @
0cca38bd
...
@@ -57,6 +57,6 @@ export class ThemeModule extends BaseApi {
...
@@ -57,6 +57,6 @@ export class ThemeModule extends BaseApi {
document
.
getElementById
(
'theme-link'
).
setAttribute
(
'href'
,
nextTheme
.
url
)
document
.
getElementById
(
'theme-link'
).
setAttribute
(
'href'
,
nextTheme
.
url
)
document
.
documentElement
.
style
.
setProperty
(
'--theme'
,
nextTheme
.
quality
)
document
.
documentElement
.
style
.
setProperty
(
'--theme'
,
nextTheme
.
quality
)
if
(
themeName
)
this
.
active
=
themeName
if
(
themeName
)
this
.
active
=
themeName
this
.
events
.
emit
(
'themeChanged'
,
nextTheme
.
quality
)
this
.
events
.
emit
(
'themeChanged'
,
nextTheme
)
}
}
}
}
src/app/ui/landing-page/landing-page.js
View file @
0cca38bd
...
@@ -161,8 +161,8 @@ export class LandingPage extends BaseApi {
...
@@ -161,8 +161,8 @@ export class LandingPage extends BaseApi {
globalRegistry
.
get
(
'verticalicon'
).
api
.
select
(
'fileExplorers'
)
globalRegistry
.
get
(
'verticalicon'
).
api
.
select
(
'fileExplorers'
)
}
}
globalRegistry
.
get
(
'themeModule'
).
api
.
events
.
on
(
'themeChanged'
,
(
t
yp
e
)
=>
{
globalRegistry
.
get
(
'themeModule'
).
api
.
events
.
on
(
'themeChanged'
,
(
t
hem
e
)
=>
{
const
invert
=
t
ype
===
'dark'
?
1
:
0
const
invert
=
t
heme
.
quality
===
'dark'
?
1
:
0
const
img
=
document
.
getElementById
(
'remixLogo'
)
const
img
=
document
.
getElementById
(
'remixLogo'
)
if
(
img
)
{
if
(
img
)
{
img
.
style
.
filter
=
`invert(
${
invert
}
)`
img
.
style
.
filter
=
`invert(
${
invert
}
)`
...
...
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