| 1 |
@charset "UTF-8"; |
| 2 |
|
| 3 |
@mixin item-hover-middle { |
| 4 |
@if $new-highlight { |
| 5 |
background-color: gtk("@theme_selected_bg_color"); |
| 6 |
border-left-color: gtk("@theme_selected_fg_color"); |
| 7 |
border-top-color: gtk("@theme_selected_fg_color"); |
| 8 |
} @else { |
| 9 |
background-color: gtkalpha( |
| 10 |
gtk("@theme_selected_bg_color"), |
| 11 |
0.3 |
| 12 |
); |
| 13 |
border-left-color: gtk("@theme_fg_color"); |
| 14 |
border-top-color: gtk("@theme_fg_color"); |
| 15 |
} |
| 16 |
} |
| 17 |
|
| 18 |
@mixin item-selected-middle { |
| 19 |
@if $new-highlight { |
| 20 |
background-color: gtkalpha( |
| 21 |
gtk("@theme_button_decoration_focus"), |
| 22 |
0.3 |
| 23 |
); |
| 24 |
color: gtk("@theme_button_foreground_active"); |
| 25 |
border: 1px solid gtk("@theme_button_decoration_focus"); |
| 26 |
border-left: 0; |
| 27 |
border-right: 0; |
| 28 |
border-radius: 0px; |
| 29 |
} @else { |
| 30 |
background-color: gtk("@theme_selected_bg_color"); |
| 31 |
border-left-color: gtk("@theme_selected_fg_color"); |
| 32 |
border-top-color: gtk("@theme_selected_fg_color"); |
| 33 |
} |
| 34 |
} |
| 35 |
|
| 36 |
@mixin item-selected-middle-backdrop { |
| 37 |
@if $new-highlight { |
| 38 |
background-color: gtkalpha( |
| 39 |
gtk("@theme_button_decoration_focus_backdrop"), |
| 40 |
0.3 |
| 41 |
); |
| 42 |
color: gtk("@theme_button_foreground_active_backdrop"); |
| 43 |
border: 1px |
| 44 |
solid |
| 45 |
gtk("@theme_button_decoration_focus_backdrop"); |
| 46 |
border-left: 0; |
| 47 |
border-right: 0; |
| 48 |
border-radius: 0px; |
| 49 |
} @else { |
| 50 |
background-color: gtk( |
| 51 |
"@theme_unfocused_selected_bg_color" |
| 52 |
); |
| 53 |
border-left-color: gtk( |
| 54 |
"@theme_unfocused_selected_fg_color" |
| 55 |
); |
| 56 |
border-top-color: gtk( |
| 57 |
"@theme_unfocused_selected_fg_color" |
| 58 |
); |
| 59 |
} |
| 60 |
} |
| 61 |
|
| 62 |
/************** |
| 63 |
* Tree Views * |
| 64 |
**************/ |
| 65 |
treeview.view { |
| 66 |
border-left-color: gtk( |
| 67 |
"@borders" |
| 68 |
); // this is actually the tree lines color, |
| 69 |
border-top-color: transparent; // while this is the grid lines color, better then nothing |
| 70 |
|
| 71 |
rubberband { |
| 72 |
@extend rubberband; |
| 73 |
} // to avoid borders being overridden by the previously set props |
| 74 |
|
| 75 |
&:selected { |
| 76 |
border-radius: 0; |
| 77 |
} // rest border radius in lists |
| 78 |
|
| 79 |
&:hover { |
| 80 |
@include item-hover-middle(); |
| 81 |
} |
| 82 |
|
| 83 |
&:selected { |
| 84 |
@include item-selected-middle(); |
| 85 |
} |
| 86 |
|
| 87 |
&:backdrop:selected { |
| 88 |
@include item-selected-middle-backdrop(); |
| 89 |
} |
| 90 |
|
| 91 |
&:disabled { |
| 92 |
color: gtk("@insensitive_borders"); |
| 93 |
&:selected { |
| 94 |
color: gtk("@insensitive_selected_fg_color"); |
| 95 |
&:backdrop { |
| 96 |
color: gtk( |
| 97 |
"@insensitive_unfocused_selected_fg_color" |
| 98 |
); |
| 99 |
} |
| 100 |
} |
| 101 |
&:backdrop { |
| 102 |
color: gtk("@unfocused_insensitive_borders"); |
| 103 |
} |
| 104 |
} |
| 105 |
&.separator { |
| 106 |
min-height: 2px; |
| 107 |
color: gtk("@borders"); |
| 108 |
} |
| 109 |
&.separator:backdrop { |
| 110 |
color: gtk("@unfocused_borders"); |
| 111 |
} |
| 112 |
|
| 113 |
&:backdrop { |
| 114 |
border-left-color: gtk("@unfocused_borders"); |
| 115 |
} |
| 116 |
|
| 117 |
&:drop(active) { |
| 118 |
border-style: solid none; |
| 119 |
border-width: 1px; |
| 120 |
border-color: gtk("@theme_button_decoration_hover"); |
| 121 |
} |
| 122 |
|
| 123 |
&.expander { |
| 124 |
// GtkTreeView uses the larger of the expander’s min-width and min-height |
| 125 |
min-width: 16px; |
| 126 |
min-height: 16px; |
| 127 |
-gtk-icon-source: -gtk-icontheme($arrow_right); |
| 128 |
color: gtk("@theme_fg_color"); |
| 129 |
&:dir(rtl) { |
| 130 |
-gtk-icon-source: -gtk-icontheme( |
| 131 |
"go-next-rtl-symbolic" |
| 132 |
); |
| 133 |
} |
| 134 |
&:hover { |
| 135 |
color: gtk("@theme_button_decoration_hover"); |
| 136 |
} |
| 137 |
&:selected { |
| 138 |
color: gtk("@theme_selected_fg_color"); |
| 139 |
} |
| 140 |
&:checked { |
| 141 |
-gtk-icon-source: -gtk-icontheme($arrow_down); |
| 142 |
&:selected { |
| 143 |
color: gtk("@theme_selected_fg_color"); |
| 144 |
} |
| 145 |
} |
| 146 |
} |
| 147 |
header { |
| 148 |
button { |
| 149 |
@extend %column_header_button; |
| 150 |
color: gtk("@theme_button_foreground_normal"); |
| 151 |
background-color: gtk( |
| 152 |
"@theme_button_background_normal" |
| 153 |
); |
| 154 |
text-shadow: none; |
| 155 |
box-shadow: none; |
| 156 |
&:hover { |
| 157 |
@extend %column_header_button; |
| 158 |
color: gtk("@theme_button_foreground_normal"); |
| 159 |
background-color: gtkalpha( |
| 160 |
gtk("@theme_button_decoration_hover"), |
| 161 |
0.5 |
| 162 |
); |
| 163 |
box-shadow: none; |
| 164 |
} |
| 165 |
&:active { |
| 166 |
@extend %column_header_button; |
| 167 |
color: gtk("@theme_button_foreground_normal"); |
| 168 |
background-color: gtkalpha( |
| 169 |
gtk("@theme_button_decoration_hover"), |
| 170 |
0.5 |
| 171 |
); |
| 172 |
} |
| 173 |
} |
| 174 |
button:last-child { |
| 175 |
&:backdrop, |
| 176 |
& { |
| 177 |
border-right-style: none; |
| 178 |
} |
| 179 |
} |
| 180 |
} |
| 181 |
button.dnd, |
| 182 |
header.button.dnd { |
| 183 |
// for treeview-like derive widgets |
| 184 |
&:active, |
| 185 |
&:selected, |
| 186 |
&:hover, |
| 187 |
& { |
| 188 |
padding: 0 6px; |
| 189 |
color: gtk("@theme_selected_fg_color"); |
| 190 |
background-image: none; |
| 191 |
background-color: gtk("@theme_selected_bg_color"); |
| 192 |
border-style: none; |
| 193 |
border-radius: 0; |
| 194 |
box-shadow: none; |
| 195 |
text-shadow: none; |
| 196 |
} |
| 197 |
} |
| 198 |
} |
| 199 |
|
| 200 |
%column_header_button { |
| 201 |
padding: 6px; |
| 202 |
border-style: none solid solid none; |
| 203 |
border-radius: 0; |
| 204 |
background-image: none; |
| 205 |
border-color: gtk("@borders"); |
| 206 |
text-shadow: none; |
| 207 |
&:disabled { |
| 208 |
border-color: gtk("@insensitive_borders"); |
| 209 |
color: gtk("@theme_button_foreground_insensitive"); |
| 210 |
background-color: gtk( |
| 211 |
"@theme_button_background_insensitive" |
| 212 |
); |
| 213 |
background-image: none; |
| 214 |
} |
| 215 |
&:backdrop { |
| 216 |
border-color: gtk("@unfocused_borders"); |
| 217 |
border-style: none solid solid none; |
| 218 |
color: gtk("@theme_button_foreground_backdrop"); |
| 219 |
background-image: none; |
| 220 |
background-color: gtk( |
| 221 |
"@theme_button_background_backdrop" |
| 222 |
); |
| 223 |
&:disabled { |
| 224 |
border-color: gtk("@unfocused_insensitive_borders"); |
| 225 |
background-image: none; |
| 226 |
background-color: gtk( |
| 227 |
"@theme_button_background_backdrop_insensitive" |
| 228 |
); |
| 229 |
color: gtk( |
| 230 |
"@theme_button_foreground_backdrop_insensitive" |
| 231 |
); |
| 232 |
} |
| 233 |
} |
| 234 |
} |