Skip to content

Commit 877cae2

Browse files
committed
Fixes issues welcome & settings editor with light themes
1 parent d2abdde commit 877cae2

File tree

5 files changed

+132
-51
lines changed

5 files changed

+132
-51
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1212
### Fixed
1313
- Fixes [#462](https://github.com/eamodio/vscode-gitlens/issues/462) - Source Control shortcut on macOS (⌃⇧G) shouldn't be overridden
1414
- Fixes [#457](https://github.com/eamodio/vscode-gitlens/issues/457) - Displays the wrong username (You) — thanks to [PR #460](https://github.com/eamodio/vscode-gitlens/pull/460) by Zyck ([@qzyse2017](https://github.com/qzyse2017))
15+
- Fixes issues with GitLens Welcome and the interactive settings editor with light themes
1516

1617
## [8.5.3] - 2018-07-25
1718
### Fixed

src/ui/scss/main.scss

Lines changed: 93 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,7 @@ a {
2424
}
2525

2626
&:focus {
27-
.vscode-light & {
28-
outline-color: var(--background-color--darken-30);
29-
}
30-
31-
.vscode-dark & {
32-
outline-color: var(--background-color--lighten-30);
33-
}
27+
outline-color: var(--focus-border-color);
3428
}
3529
}
3630

@@ -113,7 +107,7 @@ button {
113107
margin: 0;
114108
}
115109

116-
input[type=checkbox] {
110+
input[type='checkbox'] {
117111
background: none;
118112
border: none;
119113
cursor: pointer;
@@ -132,18 +126,33 @@ input[type=checkbox] {
132126
}
133127
}
134128

135-
input[type=text],
129+
input[type='text'],
136130
input:not([type]) {
137131
background: none;
138-
border: 1px solid var(--color);
139132
color: var(--color);
140133
margin: 0 0.75em;
141134
max-width: 300px;
142135
padding: 4px;
143136
width: 100%;
144137

138+
.vscode-light & {
139+
border: 1px solid rgba(0, 0, 0, 0.3);
140+
}
141+
142+
.vscode-dark & {
143+
border: 1px solid rgba(255, 255, 255, 0.3);
144+
}
145+
145146
&:focus {
146-
background: rgba(0, 0, 0, 0.1);
147+
outline-color: var(--focus-border-color);
148+
149+
.vscode-light & {
150+
background-color: rgba(255, 255, 255, 0.4);
151+
}
152+
153+
.vscode-dark & {
154+
background-color: rgba(0, 0, 0, 0.2);
155+
}
147156
}
148157

149158
&[disabled] {
@@ -152,12 +161,12 @@ input:not([type]) {
152161
}
153162

154163
&::placeholder {
155-
color: var(--color--50);
164+
color: var(--vscode-input-placeholderForeground);
156165
}
157166
}
158167

159168
label {
160-
cursor : pointer;
169+
cursor: pointer;
161170
}
162171

163172
section {
@@ -176,17 +185,29 @@ section {
176185
}
177186

178187
select {
188+
background: none;
179189
color: var(--color);
180190
cursor: pointer;
181191
margin: 0 0.75em;
182192
padding: 2px;
183193

184194
.vscode-light & {
185-
background-color: var(--background-color--darken-05);
195+
border: 1px solid rgba(0, 0, 0, 0.3);
186196
}
187197

188198
.vscode-dark & {
189-
background-color: var(--background-color--lighten-05);
199+
border: 1px solid rgba(255, 255, 255, 0.3);
200+
}
201+
202+
&:focus {
203+
outline-color: var(--focus-border-color);
204+
.vscode-light & {
205+
background-color: rgba(255, 255, 255, 0.4);
206+
}
207+
208+
.vscode-dark & {
209+
background-color: rgba(0, 0, 0, 0.2);
210+
}
190211
}
191212

192213
&[disabled] {
@@ -203,6 +224,17 @@ select option {
203224
.vscode-dark & {
204225
background-color: var(--background-color--lighten-05);
205226
}
227+
228+
&:focus {
229+
outline-color: var(--focus-border-color);
230+
.vscode-light & {
231+
background-color: rgba(255, 255, 255, 0.4);
232+
}
233+
234+
.vscode-dark & {
235+
background-color: rgba(0, 0, 0, 0.2);
236+
}
237+
}
206238
}
207239

208240
ul {
@@ -237,13 +269,27 @@ ul {
237269
}
238270

239271
.button--flat {
240-
border: 1px solid rgba(255, 255, 255, 0.6);
241-
color: white !important;
272+
.vscode-light & {
273+
border: 1px solid rgba(0, 0, 0, 0.6);
274+
color: black;
275+
}
276+
.vscode-dark & {
277+
border: 1px solid rgba(255, 255, 255, 0.6);
278+
color: white !important;
279+
}
242280
transition: background-color 250ms, border-color 250ms, color 250ms;
243281

244282
&:hover {
245-
background-color: white;
246-
color: black !important;
283+
.vscode-light & {
284+
background-color: var(--button-background-color--darken-30);
285+
border-color: var(--button-background-color--darken-30);
286+
color: white !important;
287+
}
288+
.vscode-dark & {
289+
background-color: white;
290+
border-color: white;
291+
color: black !important;
292+
}
247293
}
248294

249295
.preload & {
@@ -270,16 +316,23 @@ ul {
270316
}
271317

272318
.button--flat-primary {
273-
background-color: var(--link-color--darken-20);
274-
border: 1px solid var(--link-color--darken-20);
275-
color: white !important;
319+
background-color: var(--button-background-color);
320+
border: 1px solid var(--button-background-color);
321+
color: var(--button-color) !important;
276322
font-weight: 600;
277323
transition: background-color 250ms, border-color 250ms, color 250ms;
278324

279325
&:hover {
280-
background-color: white;
281-
border-color: white;
282-
color: black !important;
326+
.vscode-light & {
327+
background-color: var(--button-background-color--darken-30);
328+
border-color: var(--button-background-color--darken-30);
329+
color: white !important;
330+
}
331+
.vscode-dark & {
332+
background-color: white;
333+
border-color: white;
334+
color: black !important;
335+
}
283336
}
284337

285338
.preload & {
@@ -379,7 +432,7 @@ ul {
379432

380433
&:before {
381434
border-left: 1px solid rgba(122, 122, 122, 0.15);
382-
content: " ";
435+
content: ' ';
383436
height: calc(100% + 7px);
384437
left: 37px;
385438
position: absolute;
@@ -499,7 +552,7 @@ ul {
499552

500553
& p {
501554
margin-top: -1em;
502-
opacity: 0.4;
555+
opacity: 0.6;
503556
}
504557
}
505558

@@ -538,7 +591,9 @@ ul {
538591
color: var(--color);
539592
outline: none;
540593

541-
&:hover, &:active, &:focus {
594+
&:hover,
595+
&:active,
596+
&:focus {
542597
color: var(--color);
543598
outline: none;
544599
}
@@ -623,7 +678,8 @@ ul {
623678
background-color: var(--background-color--lighten-05);
624679
}
625680

626-
&:hover, &:focus {
681+
&:hover,
682+
&:focus {
627683
.vscode-light & {
628684
background-color: var(--background-color--darken-075);
629685
}
@@ -646,16 +702,15 @@ ul {
646702
}
647703
}
648704

649-
.list-button__title{
705+
.list-button__title {
650706
font-size: 1em;
651707
font-weight: 400;
652708
margin: 0;
653-
margin-bottom: .25em;
709+
margin-bottom: 0.25em;
654710
overflow: hidden;
655711
text-overflow: ellipsis;
656712
}
657713

658-
659714
.list-button__detail {
660715
color: var(--color--75);
661716
display: inline-block;
@@ -707,13 +762,14 @@ ul {
707762
margin-right: -9px;
708763
}
709764

710-
select, option {
765+
select,
766+
option {
711767
background-color: var(--background-color) !important;
712768
}
713769
}
714770

715771
.page-header__subtitle {
716-
color: var(--color--50);
772+
color: var(--color--75);
717773
margin: 0.25em 0 0 0;
718774
}
719775

@@ -732,7 +788,7 @@ ul {
732788
}
733789

734790
.section__settings--multi {
735-
& >.settings-group {
791+
& > .settings-group {
736792
flex-basis: 100%;
737793
margin-left: 1em;
738794
}
@@ -889,7 +945,7 @@ ul {
889945
margin-bottom: 0.75em;
890946
position: relative;
891947

892-
& input[type=checkbox] {
948+
& input[type='checkbox'] {
893949
flex: 16px 0 0;
894950
height: 16px;
895951
margin: 0 0.75em 0 0;
@@ -965,4 +1021,4 @@ ul {
9651021
flex-wrap: nowrap !important;
9661022
}
9671023

968-
@import 'popup';
1024+
@import 'popup';

src/ui/settings/app.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
2-
import { DOM } from './../shared/dom';
3-
import { App } from '../shared/app-base';
42
import { SettingsBootstrap } from '../ipc';
3+
import { App } from '../shared/app-base';
4+
import { DOM } from './../shared/dom';
55

66
const bootstrap: SettingsBootstrap = (window as any).bootstrap;
77

@@ -84,8 +84,9 @@ export class SettingsApp extends App<SettingsBootstrap> {
8484
if (
8585
(e.target as HTMLElement).matches('i.icon__info') ||
8686
(e.target as HTMLElement).matches('a.link__learn-more')
87-
)
87+
) {
8888
return;
89+
}
8990

9091
element.classList.toggle('collapsed');
9192
}

0 commit comments

Comments
 (0)