fix: improve color contrast of dark themes (#1249)
This commit is contained in:
parent
3453b10ffb
commit
f1857cb86e
|
@ -6,7 +6,7 @@
|
||||||
.compose-box-length {
|
.compose-box-length {
|
||||||
grid-area: length;
|
grid-area: length;
|
||||||
justify-self: right;
|
justify-self: right;
|
||||||
color: var(--main-theme-color);
|
color: var(--length-indicator-color);
|
||||||
font-size: 1.3em;
|
font-size: 1.3em;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,4 +116,6 @@
|
||||||
--floating-button-bg: #{rgba($main-bg-color, 0.8)};
|
--floating-button-bg: #{rgba($main-bg-color, 0.8)};
|
||||||
--floating-button-bg-hover: #{darken(rgba($main-bg-color, 0.9), 5%)};
|
--floating-button-bg-hover: #{darken(rgba($main-bg-color, 0.9), 5%)};
|
||||||
--floating-button-bg-active: #{darken(rgba($main-bg-color, 0.9), 10%)};
|
--floating-button-bg-active: #{darken(rgba($main-bg-color, 0.9), 10%)};
|
||||||
|
|
||||||
|
--length-indicator-color: #{$main-theme-color};
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,4 +46,6 @@
|
||||||
--tab-bg-hover-non-selected: #{darken($main-bg-color, 1%)};
|
--tab-bg-hover-non-selected: #{darken($main-bg-color, 1%)};
|
||||||
|
|
||||||
--toast-anchor-color: #{$anchor-color};
|
--toast-anchor-color: #{$anchor-color};
|
||||||
|
|
||||||
|
--length-indicator-color: var(--action-button-fill-color);
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,10 @@ $compose-background: lighten($main-theme-color, 32%);
|
||||||
--settings-list-item-text: #{$main-text-color};
|
--settings-list-item-text: #{$main-text-color};
|
||||||
--settings-list-item-text-hover: #{$main-text-color};
|
--settings-list-item-text-hover: #{$main-text-color};
|
||||||
|
|
||||||
|
--action-button-fill-color: #{lighten($main-theme-color, 30%)};
|
||||||
|
--action-button-fill-color-hover: #{lighten($main-theme-color, 35%)};
|
||||||
|
--action-button-fill-color-active: #{lighten($main-theme-color, 40%)};
|
||||||
|
|
||||||
--action-button-fill-color-pressed: #{$anchor-color};
|
--action-button-fill-color-pressed: #{$anchor-color};
|
||||||
--action-button-fill-color-pressed-hover: #{darken($anchor-color, 2%)};
|
--action-button-fill-color-pressed-hover: #{darken($anchor-color, 2%)};
|
||||||
--action-button-fill-color-pressed-active: #{darken($anchor-color, 15%)};
|
--action-button-fill-color-pressed-active: #{darken($anchor-color, 15%)};
|
||||||
|
|
|
@ -29,9 +29,9 @@ $compose-background: darken($main-theme-color, 12%);
|
||||||
--form-border: #{darken($border-color, 10%)};
|
--form-border: #{darken($border-color, 10%)};
|
||||||
|
|
||||||
|
|
||||||
--action-button-fill-color: #{$main-theme-color};
|
--action-button-fill-color: #{lighten($main-theme-color, 5%)};
|
||||||
--action-button-fill-color-hover: #{lighten($main-theme-color, 4%)};
|
--action-button-fill-color-hover: #{lighten($main-theme-color, 12%)};
|
||||||
--action-button-fill-color-active: #{darken($main-theme-color, 13%)};
|
--action-button-fill-color-active: #{darken($main-theme-color, 15%)};
|
||||||
--action-button-fill-color-pressed: #{lighten($main-theme-color, 20%)};
|
--action-button-fill-color-pressed: #{lighten($main-theme-color, 20%)};
|
||||||
--action-button-fill-color-pressed-hover: #{lighten($main-theme-color, 24%)};
|
--action-button-fill-color-pressed-hover: #{lighten($main-theme-color, 24%)};
|
||||||
--action-button-fill-color-pressed-active: #{lighten($main-theme-color, 7%)};
|
--action-button-fill-color-pressed-active: #{lighten($main-theme-color, 7%)};
|
||||||
|
|
Loading…
Reference in a new issue