1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
// Drawing mixins
// Entries
@mixin entry($t, $dark:false) {
//
// Entries drawing function
//
//@extend %reset_style;
box-shadow: inset 0 0 transparentize($base_color, 1);
@if $t==normal {
color: $text_color;
background-color: $entry_bg;
border: 1px solid $entry_border;
}
@if $t==focus {
color: $fg_color;
background-color: $entry_bg;
border: 1px solid $selected_bg_color;
}
@if $t==insensitive {
color: $insensitive_fg_color;
background-color: mix($entry_bg, $bg_color, 55%);
border-color: 1px solid mix($entry_border, $bg_color, 55%);
}
}
// Buttons
@mixin button($t) {
//
// Button drawing function
//
@if $t==normal {
//
// normal button
//
color: $fg_color;
background-color: $button_bg;
border: 1px solid $button_border;
}
@else if $t==focus {
//
// focused button
//
color: $fg_color;
background-color: $button_bg;
border: 1px solid $selected_bg_color;
}
@else if $t==focus-hover {
//
// focused button
//
color: $selected_bg_color;
background-color: $button_bg;
border: 1px solid $selected_bg_color;
}
@else if $t==hover {
//
// hovered button
//
color: $fg_color;
background-color: $button_bg;
border: 1px solid $selected_bg_color;
}
@else if $t==active {
//
// pushed button
//
color: $selected_fg_color;
background-color: $selected_bg_color;
border: 1px solid $selected_bg_color;
}
@else if $t==insensitive {
//
// insensitive button
//
color: $insensitive_fg_color;
border: 1px solid transparentize($button_border, 0.45);
background-color: transparentize($button_bg, 0.45);
}
$_header_button_bg: if($darker == 'true' or $variant == 'dark', transparentize(darken($header_bg, 3%), 0.1), transparentize($button_bg, 0.1));
$_header_button_border: if($darker == 'true' or $variant == 'dark', darken($header_bg, 8%), transparentize($header_fg, 0.7));
@if $t==header-normal {
//
// normal header-bar button
//
color: $header_fg;
background-color: transparentize($header_bg, 1);
border-color: transparentize($header_bg, 1);
}
@else if $t==header-hover {
//
// hovered header-bar button
//
color: $header_fg;
border-color: $_header_button_border;
background-color: $_header_button_bg;
}
@else if $t==header-active {
//
// pushed header-bar button
//
color: $selected_fg_color;
border-color: $selected_bg_color;
background-color: $selected_bg_color;
}
@else if $t==header-insensitive {
//
// insensitive header-bar button
//
color: transparentize($header_fg, 0.45);
background-color: transparentize($header_bg, 1);
border-color: transparentize($header_bg, 1);
> GtkLabel { color: inherit; }
}
@else if $t==header-insensitive-active {
//
// header-bar insensitive pushed button
//
color: transparentize($selected_fg_color, 0.25);
border-color: transparentize($selected_bg_color, 0.35);
background-color: transparentize($selected_bg_color, 0.35);
}
}
|