Debian Codegraph @

lib/ui/FontManager.css

raw
1 /* FontManager.css
2 *
3 * Copyright (C) 2009-2025 Jerry Casiano
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program.
17 *
18 * If not, see <http://www.gnu.org/licenses/gpl-3.0.txt>.
19 */
20
21 /* Used to represent display pixel order in settings */
22 .red {
23 margin: 0px;
24 padding: 0px;
25 background-color: #ff0000;
26 }
27
28 .green {
29 margin: 0px;
30 padding: 0px;
31 background-color: #008000;
32 }
33
34 .blue {
35 margin: 0px;
36 padding: 0px;
37 background-color: #0000ff;
38 }
39
40 .gray {
41 margin: 0px;
42 padding: 0px;
43 background-color: #808080;
44 }
45
46 .icon-shadow {
47 -gtk-icon-shadow: 0 1px 12px rgba(0,0,0,0.05),
48 0 -1px rgba(0,0,0,0.05),
49 1px 0 rgba(0,0,0,0.1),
50 0 1px rgba(0,0,0,0.3),
51 -1px 0 rgba(0,0,0,0.1);
52 }
53
54 /* Some popovers feature squished text and checks for some reason */
55 dropdown popover contents box {
56 padding-top: 6px;
57 padding-bottom: 6px;
58 padding-left: 6px;
59 padding-right: 6px;
60 }
61
62 dropdown popover contents image {
63 padding-left: 2em;
64 }
65
66 popover contents row:hover {
67 border-radius: 0.25em;
68 }
69
70 treeexpander indent {
71 margin-left: 6px;
72 margin-right: 6px;
73 }
74
75 /* Accelerator visibility is inconsistent between otherwise identical popovers */
76 /* Disable accelerator visibility in menu popovers everywhere for consistency */
77 accelerator {
78 color: transparent;
79 margin: 0px;
80 min-width: 0px;
81 font-size: 0px;
82 }
83
84 /* This somewhat mimics the window style defined in Adwaita */
85 decoration, window, window.background, dialog.message {
86 border-radius: .575em;
87 background: #fff;
88 outline: 1px solid rgba(0, 0, 0, 0.05);
89 outline-offset: -1px;
90 box-shadow: 0 1px 3px 2px transparent,
91 0 2px 6px 4px rgba(0, 0, 0, 0.1),
92 0 4px 12px 6px rgba(0, 0, 0, 0.075),
93 0 6px 24px 12px rgba(0, 0, 0, 0.05),
94 0 0 0 1px rgba(0, 0, 0, 0.25);
95 }
96
97 .aboutdialog:first-child,
98 .shortcuts:first-child {
99 margin: 0px;
100 background-color: lighter(@theme_bg_color);
101 }
102
103 .pill-button {
104 padding: 0px 18px 0px 18px;
105 border-radius: 1em;
106 }
107
108 .rounded {
109 padding: 4px;
110 border-radius: 1.25em;
111 }
112
113 editablelabel text {
114 padding: 2px 6px 2px 6px;
115 border-radius: .25em;
116 }
117
118 row .count {
119 margin: 1px;
120 padding: 0px 9px 0px 9px;
121 border-style: groove;
122 border-width: 1px;
123 border-radius: 0.75em;
124 color: alpha(@theme_fg_color, 0.9);
125 border-color: alpha(darker(@insensitive_fg_color), 0.25);
126 background-color: alpha(@insensitive_bg_color, 0.75);
127 }
128
129 row:selected .count {
130 margin: 1px;
131 padding: 0px 9px 0px 9px;
132 border-style: groove;
133 border-width: 1px;
134 border-radius: 0.75em;
135 color: @theme_selected_fg_color;
136 border-color: transparent;
137 background-color: shade(@theme_selected_bg_color, 0.75);
138 }
139
140 .InlineHelp {
141 background: transparent;
142 }
143
144 .PangoGlyphMetrics {
145 color: alpha(lighter(@theme_selected_bg_color), 0.333);
146 }
147
148 .CharacterMapCount {
149 margin: 0px;
150 padding: 2px 12px 2px 12px;
151 border-style: groove;
152 border-width: 1px;
153 border-radius: 0.75em;
154 color: alpha(@theme_fg_color, 0.9);
155 border-color: alpha(darker(@insensitive_fg_color), 0.25);
156 background-color: alpha(@insensitive_bg_color, 0.75);
157 }
158
159 .CharacterMapSeparator {
160 color: alpha(@borders, 0.5);
161 }
162
163 .CharacterMapCell:selected {
164 border-radius: 0.333em;
165 background-color: alpha(@theme_selected_bg_color, 0.95);
166 border-color: darker(@theme_selected_bg_color);
167 }
168
169 .CharacterMapGlyph:selected {
170 color: lighter(@theme_selected_fg_color);
171 }
172
173 .BrowsePaneCharacterMap .CharacterMapSeparator {
174 color: transparent;
175 }
176
177 .BrowsePaneCharacterMap .CharacterMapCell {
178 background-color: transparent;
179 }
180
181
182 .BrowsePaneCharacterMap .CharacterMapGlyph {
183 color: @theme_text_color;
184 }
185
186 .FontManagerPropertiesPage separator {
187 padding: 0px;
188 margin: 12px 6px 12px 0px;
189 opacity: 0.5;
190 }
191
192 .FontManagerPropertiesPage grid button {
193 border-style: solid;
194 margin: 5px 3px 3px 3px;
195 padding: 0px 9px 0px 9px;
196 border-color: alpha(@borders, 0.5);
197 }
198
199 .FontManagerPropertiesPage grid button:hover {
200 background-color: alpha(lighter(@theme_fg_color), 0.075);
201 }
202
203 .FontManagerSubstituteList list button {
204 border-color: alpha(@borders, 0.75);
205 }
206
207 .FontManagerCompare list row,
208 .FontManagerSubstituteList list row,
209 .FontManagerUserActionList list row,
210 .FontManagerUserSourceList list row {
211 border-radius: 0.333em;
212 margin: 4px;
213 }
214
215 .FontManagerComparePreview {
216 border-radius: 0.333em;
217 }
218
219 .FontManagerCompare list row:selected,
220 .FontManagerSubstituteList list row:selected,
221 .FontManagerUserActionList list row:selected,
222 .FontManagerUserSourceList list row:selected {
223 /* background-color: alpha(@theme_selected_bg_color, 0.9); */
224 border-radius: 0.333em;
225 margin: 4px;
226 }
227
228 .FontManagerGoogleFontsSampleList list row:selected {
229 background-color: alpha(@theme_selected_bg_color, 0.9);
230 border-radius: 0.333em;
231 }
232
233 .FontManagerGoogleFontsSampleList list row:hover {
234 border-radius: 0.333em;
235 }
236
237 .FontManagerSubstituteList list row:selected,
238 .FontManagerUserActionList list row:selected,
239 .FontManagerUserSourceList list row:selected {
240 box-shadow: 0px 1px 1px 0px inset alpha(@borders, 0.75);
241 }
242
243 .FontManagerSubstituteRow list {
244 border-radius: 0.333em;
245 }
246
247 .FontManagerSubstituteList list row:selected button {
248 background-color: @theme_bg_color;
249 border-radius: 0.333em;
250 }
251
252 .FontManagerSubstituteRow > list > row:hover,
253 .FontManagerPreferenceList list row:hover,
254 .FontManagerLanguageFilterSettings list row:hover,
255 .FontManagerGoogleFontsOrthographies row:hover {
256 background-color: transparent;
257 }
258
259 .FontManagerSubstituteList row:selected list {
260 box-shadow: 0px 1px 1px 1px alpha(@borders, 0.5);
261 }
262
263 .FontManagerUserActionList list,
264 .FontManagerUserSourceList list,
265 .FontManagerSubstituteList list {
266 padding: 0px;
267 }
268
269 .FontManagerDesktopPreferences list row {
270 padding: 0px;
271 }
272
273 .FontManagerCategoryListView > row > treeexpander expander {
274 -gtk-icon-source: -gtk-icontheme('folder-symbolic');
275 margin: 0px 0px 0px 9px;
276 }
277
278 .FontManagerCategoryListView > row > treeexpander expander:checked {
279 -gtk-icon-source: -gtk-icontheme('folder-open-symbolic');
280 margin: 0px 0px 0px 9px;
281 }
282
283 .FontManagerBrowsePane expander,
284 .FontManagerCollectionListView > row > treeexpander expander {
285 -gtk-icon-source: none;
286 -gtk-icon-size: 0px;
287 margin: 0px;
288 min-height: 0px;
289 min-width: 0px;
290 }
291
292 .FontManagerCategoryListView row,
293 .FontManagerCollectionListView row,
294 .FontManagerFontListView row,
295 .FontManagerGoogleFontsFontListView row {
296 border-radius: 0.25em;
297 }
298
299 .FontManagerFontListView row {
300 margin: .1px;
301 }
302
303 .FontManagerListDragCount {
304 border-radius: 1.25em;
305 border-color: alpha(@theme_selected_fg_color, 0.75);
306 border-style: solid;
307 border-width: 1px;
308 color: lighter(@theme_selected_fg_color);
309 background-color: alpha(@theme_selected_bg_color, 0.85);
310 font-weight: bold;
311 font-size: larger;
312 padding: 4px;
313 min-width: 20px;
314 min-height: 20px;
315 }
316
317 .FontManagerListRowDrag {
318 border-radius: .333em;
319 border-color: alpha(@theme_selected_fg_color, 0.25);
320 border-style: solid;
321 border-width: 1px;
322 color: @theme_selected_fg_color;
323 background-color: alpha(@theme_selected_bg_color, 0.85);
324 padding: 4px 24px 4px 24px;
325 min-width: 24px;
326 min-height: 20px;
327 }
328
329 .FontManagerGoogleFontsCategories checkbutton label,
330 .FontManagerGoogleFontsOrthographies checkbutton label {
331 margin-left: 6px;
332 margin-right: 6px;
333 }
334
335 gridview :not(selected) FontManagerFontPreviewTile {
336 border-radius: .333em;
337 border-color: alpha(@theme_border_color, 0.250);
338 border-style: solid;
339 border-width: .25px;
340 box-shadow: 0 1px 2px 1px transparent,
341 0 2px 4px 2px alpha(@borders, 0.85),
342 0 0 0 1px alpha(@borders, 0.75);
343 }
344
345 gridview :selected {
346 background-color: transparent;
347 }
348
349 gridview :selected FontManagerFontPreviewTile {
350 color: @theme_selected_bg_color;
351 border-color: @theme_selected_bg_color;
352 box-shadow: 0 1px 2px 1px transparent,
353 0 2px 4px 2px alpha(@theme_selected_bg_color, 0.25),
354 0 0 0 1px alpha(@theme_selected_bg_color, 0.5);
355 }
356
357 gridview :hover FontManagerFontPreviewTile {
358 box-shadow: 0 1px 2px 1px transparent,
359 0 2px 4px 2px alpha(@theme_selected_bg_color, 0.25),
360 0 0 0 1px alpha(@theme_selected_bg_color, 0.5);
361 }
362
363