Use SelectedItemText color on SelectedItem backgrounds (#4350)
This commit is contained in:
parent
2f1aa19ae5
commit
13496afeb3
5 changed files with 7 additions and 4 deletions
|
@ -192,7 +192,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.citation-dialog.editor::selection {
|
.citation-dialog.editor::selection {
|
||||||
color: white;
|
color: var(--color-accent-text);
|
||||||
background: var(--color-accent);
|
background: var(--color-accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
line-height: 1.3333333333;
|
line-height: 1.3333333333;
|
||||||
@media (-moz-platform: windows) {
|
@media (-moz-platform: windows) {
|
||||||
--color-accent: var(--accent-blue);
|
--color-accent: var(--accent-blue);
|
||||||
|
--color-accent-text: #fff;
|
||||||
@include light-dark(--color-focus-outer-border, var(--fill-primary), var(--accent-white));
|
@include light-dark(--color-focus-outer-border, var(--fill-primary), var(--accent-white));
|
||||||
@include light-dark(--color-focus-border, var(--accent-white), #00000080);
|
@include light-dark(--color-focus-border, var(--accent-white), #00000080);
|
||||||
--width-focus-outer-border: 2px;
|
--width-focus-outer-border: 2px;
|
||||||
|
@ -12,11 +13,13 @@
|
||||||
}
|
}
|
||||||
@media (-moz-platform: macos) {
|
@media (-moz-platform: macos) {
|
||||||
--color-accent: SelectedItem;
|
--color-accent: SelectedItem;
|
||||||
|
--color-accent-text: SelectedItemText;
|
||||||
--color-focus-border: color-mix(in srgb, var(--color-accent) 50%, transparent);
|
--color-focus-border: color-mix(in srgb, var(--color-accent) 50%, transparent);
|
||||||
--width-focus-border: 3px;
|
--width-focus-border: 3px;
|
||||||
}
|
}
|
||||||
@media (-moz-platform: linux) {
|
@media (-moz-platform: linux) {
|
||||||
--color-accent: SelectedItem;
|
--color-accent: SelectedItem;
|
||||||
|
--color-accent-text: SelectedItemText;
|
||||||
--color-focus-border: var(--color-accent);
|
--color-focus-border: var(--color-accent);
|
||||||
--width-focus-border: 2px;
|
--width-focus-border: 2px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ richlistbox.theme-listbox {
|
||||||
richlistitem {
|
richlistitem {
|
||||||
--listitem-selectedBackground: var(--tag-gray);
|
--listitem-selectedBackground: var(--tag-gray);
|
||||||
--listitem-selectedFocusCurrentBackground: var(--color-accent);
|
--listitem-selectedFocusCurrentBackground: var(--color-accent);
|
||||||
--listitem-selectedTextColor: var(--accent-white);
|
--listitem-selectedTextColor: var(--color-accent-text);
|
||||||
--listitem-selectedBorder: transparent;
|
--listitem-selectedBorder: transparent;
|
||||||
--listitem-selectedBottomBorder: transparent;
|
--listitem-selectedBottomBorder: transparent;
|
||||||
--listitem-selectedCurrentBorder: transparent;
|
--listitem-selectedCurrentBorder: transparent;
|
||||||
|
|
|
@ -134,7 +134,7 @@
|
||||||
|
|
||||||
&.selected:not(.highlighted) {
|
&.selected:not(.highlighted) {
|
||||||
background-color: var(--color-accent);
|
background-color: var(--color-accent);
|
||||||
color: #fff;
|
color: var(--color-accent-text);
|
||||||
|
|
||||||
@include state(".virtualized-table:not(:focus-within)") {
|
@include state(".virtualized-table:not(:focus-within)") {
|
||||||
color: var(--fill-primary);
|
color: var(--fill-primary);
|
||||||
|
|
|
@ -19,7 +19,7 @@ richlistcheckbox[selected="true"] {
|
||||||
|
|
||||||
richlistbox:where(:focus) > richlistcheckbox[selected="true"] {
|
richlistbox:where(:focus) > richlistcheckbox[selected="true"] {
|
||||||
background-color: var(--color-accent);
|
background-color: var(--color-accent);
|
||||||
color: SelectedItemText;
|
color: var(--color-accent-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
richlistbox[seltype="multiple"]:focus > richlistcheckbox[current="true"],
|
richlistbox[seltype="multiple"]:focus > richlistcheckbox[current="true"],
|
||||||
|
|
Loading…
Reference in a new issue