Skip to content

Commit

Permalink
merge-upstream: more dark mode fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Dec 29, 2023
1 parent bf18c5a commit 030503c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 37 deletions.
5 changes: 1 addition & 4 deletions src/components/color-button/color-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
flex-basis: 2rem;
flex-shrink: 0;
height: 100%;
border: 1px solid rgba(0, 0, 0, 0.25);
}
[theme="dark"] .color-button-swatch {
border-color: rgba(255, 255, 255, 0.25);
border: 1px solid $ui-pane-border;
}

[dir="ltr"] .color-button-swatch {
Expand Down
25 changes: 8 additions & 17 deletions src/components/color-picker/color-picker.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@ body :global(.Popover) {
}

:global(.Popover-body) {
background: white;
border: 1px solid #ddd;
color: $text-primary;
background: $popover-background;
border: 1px solid $ui-pane-border;
padding: 4px;
border-radius: 4px;
padding: 4px;
box-shadow: 0px 0px 8px 1px rgba(0, 0, 0, .3);
box-shadow: 0px 0px 8px 1px $ui-pane-border;
}

:global(.Popover-tipShape) {
fill: white;
stroke: #ddd;
fill: $popover-background;
stroke: $ui-pane-border;
}

.clickable {
Expand All @@ -39,24 +40,17 @@ body :global(.Popover) {
.row-header {
font-family: "Helvetica Neue", Helvetica, sans-serif;
font-size: 0.65rem;
color: #575E75;
margin: 8px 8px 0 8px;
}
[theme="dark"] .row-header {
color: #ccc;
}

.label-name {
font-weight: bold;
}

.divider {
border-top: 1px solid #ddd;
border-top: 1px solid $ui-pane-border;
margin: 8px;
}
[theme="dark"] .divider {
border-color: #333;
}

.swap-button {
margin-left: 8px;
Expand All @@ -70,15 +64,12 @@ body :global(.Popover) {
.swatch {
width: 1.5rem;
height: 1.5rem;
border: 1px solid #ddd;
border: 1px solid $ui-pane-border;
border-radius: 4px;
box-sizing: content-box;
display: flex;
align-items: center;
}
[theme="dark"] .swatch {
border-color: $form-border;
}

.large-swatch-icon {
width: 1.75rem;
Expand Down
3 changes: 0 additions & 3 deletions src/components/mode-tools/mode-tools.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
width: 2rem;
height: 2rem;
}
[theme="dark"] .mode-tools-icon {
filter: brightness(1.7);
}

[dir="ltr"] .mod-dashed-border {
border-right: 1px dashed $ui-pane-border;
Expand Down
11 changes: 1 addition & 10 deletions src/components/paint-editor/paint-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
flex-direction: column;
padding: calc(3 * $grid-unit);
}
[theme="dark"] .editor-container {
color-scheme: dark;
}

.row {
display: flex;
Expand Down Expand Up @@ -108,9 +105,6 @@ $border-radius: 0.25rem;
height: 1.25rem;
vertical-align: middle;
}
[theme="dark"] .button-group-button-icon {
filter: brightness(1.7);
}

.mod-mode-tools {
margin-left: calc(2 * $grid-unit);
Expand All @@ -137,14 +131,11 @@ $border-radius: 0.25rem;
width: 100%;
flex-grow: 1;
min-width: 402px; /* Leave room for the border */
border: 1px solid #e8edf1;
border: 1px solid $ui-pane-border;
border-radius: .25rem;
position: relative;
overflow: visible;
}
[theme="dark"] .canvas-container {
border-color: $form-border;
}

.mode-selector {
display: flex;
Expand Down
3 changes: 0 additions & 3 deletions src/components/tool-select-base/tool-select-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ img.tool-select-icon {
flex-grow: 1;
vertical-align: middle;
}
[theme="dark"] img.tool-select-icon {
filter: brightness(1.7);
}

.mod-tool-select.is-selected .tool-select-icon {
/* Make the tool icons white while selected by making them black and inverting */
Expand Down
2 changes: 2 additions & 0 deletions src/css/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ $data-primary: #FF8C1A;
$form-border: var(--paint-form-border, #E9EEF2);

$input-background: var(--paint-input-background, #FFFFFF);

$popover-background: var(--paint-popover-background, #FFFFFF);

0 comments on commit 030503c

Please sign in to comment.