gtk: Use primary color for caret-color (experimentally)
As per Material Design guidelines.
This could be reverted if there are accessibility issues.
As per Material Design guidelines.
This could be reverted if there are accessibility issues.
by roundabout, Friday, 20 March 2020, 03:10:30 (1584673830), pushed by roundabout, Sunday, 11 May 2025, 13:22:51 (1746969771)
Author identity: nana-4 <hnmaigo@gmail.com>
570997a5c6840de36f70ed53d22239c2ccb1083e
// FIXME: we need to override background-color to ensure text rendering
text {
background-color: $base;
caret-color: $primary;
}
border {
}
label {
caret-color: currentColor; // this shouldn't be needed.
caret-color: $primary; // this shouldn't be needed.
&.separator {
color: $text2;
min-height: $medium-size;
padding: 0 8px;
border-radius: $corner-radius $corner-radius 0 0;
caret-color: currentColor; // this shouldn't be needed.
@include entry(normal);
// as a box, and tweak the style of the entry in the middle
// so that it's linked
// FIXME: this should not be set at all, but otherwise it gets the wrong
// color
caret-color: $primary;
// FIXME: this should not be set at all, but otherwise it gets the wrong
// color
&:disabled {
}
:not(decoration):not(window):drop(active) { // FIXME needs to be done widget by widget, this wildcard should really die
caret-color: $primary;
// caret-color: $primary;
}
stackswitcher button.text-button { // FIXME aggregate with buttons
box-shadow: inset 0 0 0 9999px transparent, inset 0 -1px if($fc == $primary, $stroke, $fc);
background-color: $entry-fill;
color: $text;
caret-color: $fc;
}
@if $t == hover {
box-shadow: $shadow-z1;
background-color: if($fc == $primary, $surface, $fc);
color: if($fc == $primary, $text, on($fc));
caret-color: if($fc == $primary, $fc, on($fc));
}
@if $t == raised-hover {