mirror of
https://github.com/encounter/numix-blue-gtk-theme.git
synced 2026-07-10 12:18:49 -07:00
The caret color was never set in the theme and thus only the default was used. This worked for the light version, but created an almost invisible caret in the dark variant. This should inject the caret-color property for all entry widgets, but some locations might be missed nonetheless. There is also a second property "-gtk-secondary-caret-color" which is "used for the secondary caret in bidirectional text" according to the documentation, but I do not know which this secondary caret is, so I did not touch it.
92 lines
1.9 KiB
SCSS
Executable File
92 lines
1.9 KiB
SCSS
Executable File
/*********
|
|
! Entry *
|
|
**********/
|
|
|
|
%linked_entry {
|
|
border-width: 1px;
|
|
border-radius: 0;
|
|
border-right-width: 0;
|
|
border-left-width: 0;
|
|
|
|
&:first-child {
|
|
border-width: 1px;
|
|
border-radius: $roundness;
|
|
border-right-width: 0;
|
|
border-bottom-right-radius: 0;
|
|
border-top-right-radius: 0;
|
|
}
|
|
|
|
&:last-child {
|
|
border-width: 1px;
|
|
border-radius: $roundness;
|
|
border-left-width: 0;
|
|
border-bottom-left-radius: 0;
|
|
border-top-left-radius: 0;
|
|
}
|
|
|
|
&:only-child {
|
|
border-width: 1px;
|
|
border-radius: $roundness;
|
|
}
|
|
}
|
|
|
|
%entry {
|
|
padding: $spacing;
|
|
border-width: 1px;
|
|
border-style: solid;
|
|
border-radius: $roundness;
|
|
transition: border 150ms ease;
|
|
box-shadow: inset 1px 1px alpha($dark_shadow, .06),
|
|
inset -1px 0 alpha($dark_shadow, .06);
|
|
|
|
&:focus, &:hover, &:active { transition: none; }
|
|
|
|
&:selected, &:selected:focus {
|
|
background-color: $selected_bg_color;
|
|
color: $selected_fg_color;
|
|
}
|
|
|
|
&:disabled { box-shadow: none; }
|
|
|
|
& progressbar {
|
|
@include linear-gradient($selected_bg_color);
|
|
|
|
border-width: 0;
|
|
border-radius: $roundness;
|
|
color: $selected_fg_color;
|
|
}
|
|
|
|
& image.left { padding-right: $spacing; }
|
|
& image.right { padding-left: $spacing; }
|
|
|
|
selection {
|
|
background-color: $selected_bg_color;
|
|
color: $selected_fg_color;
|
|
}
|
|
}
|
|
|
|
@mixin entry($bg, $fg) {
|
|
@extend %entry;
|
|
@include linear-gradient($bg, to top);
|
|
@include border($bg);
|
|
|
|
color: $fg;
|
|
caret-color: $fg;
|
|
|
|
&:focus, &:active { border-color: border_focus($borders_color); }
|
|
|
|
&:disabled {
|
|
@include linear-gradient(shade($bg, .9), to top);
|
|
|
|
color: mix($bg, $fg, .5);
|
|
}
|
|
}
|
|
|
|
@include exports("entry") {
|
|
entry {
|
|
@include entry($base_color, $text_color);
|
|
|
|
&.linked, .linked & { @extend %linked_entry; }
|
|
}
|
|
}
|