Use SelectedItemText color on SelectedItem backgrounds (#4350)

This commit is contained in:
Abe Jellinek 2024-07-10 01:20:47 -04:00 committed by GitHub
parent 2f1aa19ae5
commit 13496afeb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 7 additions and 4 deletions

View file

@ -192,7 +192,7 @@
}
.citation-dialog.editor::selection {
color: white;
color: var(--color-accent-text);
background: var(--color-accent);
}

View file

@ -5,6 +5,7 @@
line-height: 1.3333333333;
@media (-moz-platform: windows) {
--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-border, var(--accent-white), #00000080);
--width-focus-outer-border: 2px;
@ -12,11 +13,13 @@
}
@media (-moz-platform: macos) {
--color-accent: SelectedItem;
--color-accent-text: SelectedItemText;
--color-focus-border: color-mix(in srgb, var(--color-accent) 50%, transparent);
--width-focus-border: 3px;
}
@media (-moz-platform: linux) {
--color-accent: SelectedItem;
--color-accent-text: SelectedItemText;
--color-focus-border: var(--color-accent);
--width-focus-border: 2px;
}

View file

@ -7,7 +7,7 @@ richlistbox.theme-listbox {
richlistitem {
--listitem-selectedBackground: var(--tag-gray);
--listitem-selectedFocusCurrentBackground: var(--color-accent);
--listitem-selectedTextColor: var(--accent-white);
--listitem-selectedTextColor: var(--color-accent-text);
--listitem-selectedBorder: transparent;
--listitem-selectedBottomBorder: transparent;
--listitem-selectedCurrentBorder: transparent;

View file

@ -134,7 +134,7 @@
&.selected:not(.highlighted) {
background-color: var(--color-accent);
color: #fff;
color: var(--color-accent-text);
@include state(".virtualized-table:not(:focus-within)") {
color: var(--fill-primary);

View file

@ -19,7 +19,7 @@ richlistcheckbox[selected="true"] {
richlistbox:where(:focus) > richlistcheckbox[selected="true"] {
background-color: var(--color-accent);
color: SelectedItemText;
color: var(--color-accent-text);
}
richlistbox[seltype="multiple"]:focus > richlistcheckbox[current="true"],