Skip to content

Commit 3c73278

Browse files
committed
toolbar theme
1 parent bdf19fe commit 3c73278

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/index.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,13 @@
6060
vertical-align: top;
6161
}
6262
#about-icon:hover {
63-
background-color: #ddd;
63+
background-color: #999;
6464
border-color: #ccc;
6565
cursor: pointer;
6666
}
6767

6868
#toolbar {
6969
padding-left: 3px;
70-
color: #666;
7170
}
7271
#toolbar .fa {
7372
padding: 2px 5px;
@@ -79,7 +78,7 @@
7978
}
8079
#toolbar .fa:hover,
8180
#toolbar .icon:hover {
82-
background-color: #ddd;
81+
background-color: #999;
8382
border-color: #ccc;
8483
cursor: pointer;
8584
}

src/store.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ export class Store {
6666
document.getElementById('dark-theme').setAttribute('disabled', 'true');
6767
}
6868

69+
// toolbar theme
70+
if (darkTheme) {
71+
document.getElementById('toolbar').style.backgroundColor = '#0d1117';
72+
document.getElementById('toolbar').style.color = '#f0f6fc';
73+
} else {
74+
document.getElementById('toolbar').style.backgroundColor = 'white';
75+
document.getElementById('toolbar').style.color = '#666';
76+
}
77+
6978
// editor font size
7079
this.editor.dispatch({
7180
effects: this.editorFontSize.reconfigure(

0 commit comments

Comments
 (0)