Skip to content

Commit 45b4a30

Browse files
committed
Update dark theme dialog styling
1 parent 95ea190 commit 45b4a30

File tree

2 files changed

+50
-30
lines changed

2 files changed

+50
-30
lines changed

src/style/NewBranchDialog.ts

+50-29
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import { style } from 'typestyle';
22

33
export const branchDialogClass = style({
4-
backgroundColor: 'var(--jp-layout-color1)!important',
5-
borderRadius: '3px!important',
6-
color: 'var(--jp-ui-font-color1)!important',
74
height: '460px',
8-
width: '400px'
5+
width: '400px',
6+
7+
color: 'var(--jp-ui-font-color1)!important',
8+
9+
borderRadius: '3px!important',
10+
11+
backgroundColor: 'var(--jp-layout-color1)!important'
912
});
1013

1114
export const closeButtonClass = style({
@@ -21,12 +24,17 @@ export const closeButtonClass = style({
2124
border: 'none',
2225
borderRadius: '50%',
2326

27+
backgroundColor: 'var(--jp-layout-color1)',
28+
2429
$nest: {
30+
svg: {
31+
fill: 'var(--jp-ui-font-color1)'
32+
},
2533
'&:hover': {
26-
backgroundColor: '#e0e0e0'
34+
backgroundColor: 'var(--jp-border-color2)'
2735
},
2836
'&:active': {
29-
backgroundColor: '#e0e0e0'
37+
backgroundColor: 'var(--jp-border-color2)'
3038
}
3139
}
3240
});
@@ -37,7 +45,7 @@ export const titleWrapperClass = style({
3745

3846
padding: '15px',
3947

40-
borderBottom: 'var(--jp-border-width) solid #e0e0e0'
48+
borderBottom: 'var(--jp-border-width) solid var(--jp-border-color2)'
4149
});
4250

4351
export const titleClass = style({
@@ -55,17 +63,24 @@ export const contentWrapperClass = style({
5563
});
5664

5765
export const nameInputClass = style({
58-
backgroundColor: 'var(--jp-layout-color0)',
59-
border: 'var(--jp-border-width) solid #e0e0e0',
60-
borderRadius: '3px',
6166
boxSizing: 'border-box',
62-
color: 'var(--jp-ui-font-color1)',
63-
fontSize: 'var(--jp-ui-font-size1)',
64-
fontWeight: 300,
67+
68+
width: '100%',
6569
height: '2em',
70+
6671
marginBottom: '16px',
67-
padding: '1px 18px 2px 7px' /* top | right | bottom | left */,
68-
width: '100%',
72+
73+
/* top | right | bottom | left */
74+
padding: '1px 18px 2px 7px',
75+
76+
color: 'var(--jp-ui-font-color0)',
77+
fontSize: 'var(--jp-ui-font-size1)',
78+
fontWeight: 300,
79+
80+
backgroundColor: 'var(--jp-layout-color1)',
81+
82+
border: 'var(--jp-border-width) solid var(--jp-border-color2)',
83+
borderRadius: '3px',
6984

7085
$nest: {
7186
'&:active': {
@@ -95,16 +110,22 @@ export const filterClass = style({
95110
});
96111

97112
export const filterInputClass = style({
98-
backgroundColor: 'var(--jp-layout-color0)',
99-
border: 'var(--jp-border-width) solid #e0e0e0',
100-
borderRadius: '3px',
101113
boxSizing: 'border-box',
102-
color: 'var(--jp-ui-font-color1)',
114+
115+
width: '100%',
116+
height: '2em',
117+
118+
/* top | right | bottom | left */
119+
padding: '1px 18px 2px 7px',
120+
121+
color: 'var(--jp-ui-font-color0)',
103122
fontSize: 'var(--jp-ui-font-size1)',
104123
fontWeight: 300,
105-
height: '2em',
106-
padding: '1px 18px 2px 7px' /* top | right | bottom | left */,
107-
width: '100%',
124+
125+
backgroundColor: 'var(--jp-layout-color1)',
126+
127+
border: 'var(--jp-border-width) solid var(--jp-border-color2)',
128+
borderRadius: '3px',
108129

109130
$nest: {
110131
'&:active': {
@@ -126,7 +147,7 @@ export const filterClearClass = style({
126147

127148
padding: 0,
128149

129-
backgroundColor: '#757575',
150+
backgroundColor: 'var(--jp-inverse-layout-color4)',
130151

131152
border: 'none',
132153
borderRadius: '50%',
@@ -136,13 +157,13 @@ export const filterClearClass = style({
136157
width: '0.5em!important',
137158
height: '0.5em!important',
138159

139-
fill: 'white'
160+
fill: 'var(--jp-ui-inverse-font-color0)'
140161
},
141162
'&:hover': {
142-
backgroundColor: '#616161'
163+
backgroundColor: 'var(--jp-inverse-layout-color3)'
143164
},
144165
'&:active': {
145-
backgroundColor: '#424242'
166+
backgroundColor: 'var(--jp-inverse-layout-color2)'
146167
}
147168
}
148169
});
@@ -154,7 +175,7 @@ export const listWrapperClass = style({
154175
width: '100%',
155176
height: '200px',
156177

157-
border: 'var(--jp-border-width) solid #e0e0e0',
178+
border: 'var(--jp-border-width) solid var(--jp-border-color2)',
158179
borderRadius: '3px',
159180

160181
overflow: 'hidden',
@@ -200,7 +221,7 @@ export const listItemIconClass = style({
200221
/* top | right | bottom | left */
201222
margin: 'auto 8px auto 0',
202223

203-
backgroundImage: 'var(--jp-icon-git-branch-light-theme)',
224+
backgroundImage: 'var(--jp-icon-git-branch)',
204225
backgroundSize: '16px',
205226
backgroundRepeat: 'no-repeat',
206227
backgroundPosition: 'center'
@@ -215,7 +236,7 @@ export const listItemBoldTitleClass = style({
215236
export const actionsWrapperClass = style({
216237
padding: '15px!important',
217238

218-
borderTop: 'var(--jp-border-width) solid #e0e0e0'
239+
borderTop: 'var(--jp-border-width) solid var(--jp-border-color2)'
219240
});
220241

221242
export const buttonClass = style({

style/variables.css

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
--jp-git-diff-output-color: rgba(0, 141, 255, 0.3);
1212
--jp-icon-clear-white: url('./images/clear-white.svg');
1313
--jp-icon-discard-file-selected: url('./images/discard-selected.svg');
14-
--jp-icon-git-branch-light-theme: url('./images/git-branch.svg');
1514
--jp-icon-git-clone: url('./images/git-clone-icon.svg');
1615
--jp-icon-move-file-down-hover: url('./images/move-file-down-hover.svg');
1716
--jp-icon-move-file-up-hover: url('./images/move-file-up-hover.svg');

0 commit comments

Comments
 (0)