annotate gtk-4.4/README @ 105:94ce48857c6d

Fix up GTK 3.24 * Fix DConf Editor path bar * Fix Fractal text box * Improve Fractal conversation colouring * Update Nautilus to new header bar * Remove border radius on `window`, which was causing some odd rendering issues (even though it seemed to fix some headerbar corner issues)
author IBBoard <dev@ibboard.co.uk>
date Thu, 21 Apr 2022 17:17:53 +0100
parents 9da64f7bb19c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
98
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 Summary
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 -------
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 * To be able to use the latest/adequate version of sass, install sassc
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 * meson will regenerate the CSS every time you modify the SCSS files.
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 * Note that meson always builds out-of-tree, so the modified css files will
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 appear in your builddir.
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 Theme variants
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 --------------
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 The Default theme comes in 4 variants: light, dark, hc (highcontrast) and
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 hc-dark (highcontrast inverse). The generated CSS files for the variants
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 are called Default-$variant.css. For technical reasons, GTK adds one level
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 of include wrappers around these, which are called gtk-$variant.css.
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 How to tweak the theme
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 ----------------------
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 Default is a complex theme, so to keep it maintainable it's written and
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21 processed in SASS. The generated CSS is then transformed into a gresource file
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22 during gtk build and used at runtime in a non-legible or editable form.
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 It is very likely your change will happen in the _common.scss file. That's where
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 all the widget selectors are defined. Here's a rundown of the "supporting"
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 stylesheets, that are unlikely to be the right place for a drive by stylesheet
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 fix:
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 _colors.scss - global color definitions. We keep the number of defined
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30 colors to a necessary minimum, most colors are derived
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31 from a handful of basics. It covers both the light variant
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
32 and the dark variant.
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
33
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34 _colors-public.scss - SCSS colors exported through gtk to allow for 3rd party
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
35 apps color mixing.
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
36
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37 _drawing.scss - drawing helper mixings/functions to allow easier
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
38 definition of widget drawing under specific context. This
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
39 is why Default isn't 15000 LOC.
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
40
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
41 _common.scss - actual definitions of style for each widget. This is
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
42 where you are likely to add/remove your changes.
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
43
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
44 You can read about SASS at http://sass-lang.com/documentation/. Once you make
9da64f7bb19c Add support for GTK4
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
45 your changes to the _common.scss file, GTK will rebuild the CSS files.