2021-05-07 16:45:57 +03:00
|
|
|
@import '../vars';
|
|
|
|
|
|
|
|
@mixin selected-row-styling {
|
2021-05-27 15:47:45 +03:00
|
|
|
color: $selected-row-color-text;
|
|
|
|
background-color: $selected-row-color-bg;
|
2021-05-07 16:45:57 +03:00
|
|
|
border: 0; // Don't have a border
|
|
|
|
border-image: none; // GTK uses an image which is weird
|
|
|
|
border-image-width: 0;
|
|
|
|
outline: none;
|
|
|
|
outline-offset: 0;
|
|
|
|
outline-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
2021-05-27 15:47:45 +03:00
|
|
|
.text-button {
|
|
|
|
&:not(.destructive-action):not(.suggested-action) { // Is just a plain ol' normal text button
|
|
|
|
color: $button-normal-color-text;
|
|
|
|
background: $button-normal-color-bg;
|
|
|
|
border-color: $button-normal-color-border;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-07 16:45:57 +03:00
|
|
|
&.destructive-action {
|
2021-05-27 15:47:45 +03:00
|
|
|
color: $button-destructive-color-text;
|
|
|
|
background-color: $button-destructive-color-bg;
|
2021-05-07 16:45:57 +03:00
|
|
|
background-image: none;
|
2021-05-27 15:47:45 +03:00
|
|
|
border-width: 0;
|
2021-05-07 16:45:57 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
&.suggested-action { // Adwaita makes it blue but we want it green
|
2021-05-27 15:47:45 +03:00
|
|
|
color: $button-suggested-color-text;
|
|
|
|
background-color: $button-suggested-color-bg;
|
2021-05-07 16:45:57 +03:00
|
|
|
background-image: none;
|
2021-05-27 15:47:45 +03:00
|
|
|
border-width: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
checkbutton {
|
|
|
|
color: $text-color-bright;
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
check {
|
|
|
|
background-image: none;
|
|
|
|
|
|
|
|
&:not(:checked) { // Not checked
|
|
|
|
color: $text-color-faded;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:checked { // Checked but not actively pressing on it
|
|
|
|
color: $text-color-bright;
|
|
|
|
background-color: $koto-primary-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
entry {
|
|
|
|
color: $text-color-bright;
|
|
|
|
background: $input-background;
|
|
|
|
border-color: $border-color;
|
|
|
|
|
|
|
|
placeholder { // Placeholder text
|
|
|
|
color: $text-color-faded;
|
2021-05-07 16:45:57 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
listview {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
list:not(.discs-list), listview {
|
|
|
|
&:not(.track-list) > row { // Rows which are now in the track list
|
|
|
|
&:active, &:selected { // Active or selected
|
|
|
|
@include selected-row-styling;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.track-list > row {
|
|
|
|
&:selected { // Only selected rows
|
|
|
|
@include selected-row-styling;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-27 15:47:45 +03:00
|
|
|
popover.background {
|
|
|
|
& > arrow, & > contents {
|
|
|
|
background-color: $bg-primary;
|
|
|
|
border-color: $border-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > contents {
|
|
|
|
color: $text-color-bright;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-07 16:45:57 +03:00
|
|
|
range {
|
|
|
|
&.dragging { // Dragging a range
|
|
|
|
& > trough {
|
2021-05-27 15:47:45 +03:00
|
|
|
highlight {
|
|
|
|
border-color: $koto-primary-color;
|
|
|
|
}
|
|
|
|
|
2021-05-07 16:45:57 +03:00
|
|
|
& > slider {
|
2021-05-27 15:47:45 +03:00
|
|
|
background-color: $koto-primary-color;
|
2021-05-07 16:45:57 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
scale { // Progress bar
|
|
|
|
highlight {
|
2021-05-27 15:47:45 +03:00
|
|
|
background-color: $koto-primary-color;
|
|
|
|
border-color: $koto-primary-color;
|
2021-05-07 16:45:57 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
slider { // Slider
|
2021-05-27 15:47:45 +03:00
|
|
|
outline-color: $koto-primary-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
scalebutton {
|
|
|
|
&, button, image {
|
|
|
|
color: $player-bar-icon-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active, &:checked, &:hover, button:active, button:checked, button:hover {
|
|
|
|
background-color: transparent;
|
2021-05-07 16:45:57 +03:00
|
|
|
}
|
|
|
|
}
|