Matthias Clasen
4d88fcc1db
css: Use gtk_css_color_convert
...
Use gtk_css_color_convert for going to srgb and stop relying on
GdkRGBA for printing.
2024-05-31 15:51:02 -04:00
Matthias Clasen
85fcda178e
css: Implement color interpolation
...
Implement gtk_css_color_convert, which is an attempt to implement
most of https://www.w3.org/TR/css-color-4/#interpolation for the
color spaces we support.
2024-05-31 15:51:02 -04:00
Matthias Clasen
ecc678454b
css: Implement color conversion
...
Implement gtk_css_color_convert, which is an attempt to
implement https://www.w3.org/TR/css-color-4/#color-conversion
for the color spaces we support.
Missing:
- white point adaptation
- gamut mapping
2024-05-31 15:51:02 -04:00
Matthias Clasen
5a85bc691e
css: Split off GtkCssColor
...
Break out a GtkCssColor struct.
2024-05-31 15:51:02 -04:00
Matthias Clasen
d506a5eea8
colorutils: Add some more utils
...
Add oklab<>srgb-linear and rgb<>hls conversions.
2024-05-31 15:51:02 -04:00
Matthias Clasen
aefa79413b
css: Implement missing components in colors
...
Add support for parsing none for color components, and preserve
that information for serialization. We currently don't use it
for other things, but we should.
2024-05-31 15:51:02 -04:00
Matthias Clasen
73e4eb7552
css: gtk_css_color_value_new_literal static too
...
This function is only used inside gtkcsscolorvalue.c as well.
2024-05-31 15:50:43 -04:00
Matthias Clasen
dff340530a
Merge branch 'matthiasc/for-main' into 'main'
...
css: Make some color value functions static
See merge request GNOME/gtk!7319
2024-05-31 16:40:33 +00:00
Matthias Clasen
f6ea3e1684
inspector: Make css deprecations opt-in
...
Add a button to show deprecation warnings (since those will
unfortunately be common for while, due to backwards compat).
2024-05-31 11:25:11 -04:00
Matthias Clasen
f790441505
colorutils: Add some more utils
...
Add oklab<>srgb-linear and hsl<>rgb conversions.
2024-05-31 10:13:35 -04:00
Matthias Clasen
0c307f7563
css: Make some color value functions static
...
These aren't used outside of gtkcsscolorvalue.c, so don't export
them.
2024-05-31 10:13:35 -04:00
Matthias Clasen
f89dc9644c
Cosmetics
2024-05-31 10:12:28 -04:00
Matthias Clasen
735455b523
Merge branch 'memoryfix' into 'main'
...
Changes to fix the memorytexture regression
Closes #6260
See merge request GNOME/gtk!7111
2024-05-31 10:35:39 +00:00
Maximiliano Sandoval
d037cfaf44
Add docstrings for deprecated classes
2024-05-31 11:48:24 +02:00
Maximiliano Sandoval
293d63425a
gtkiconview: Add missing docstrings
2024-05-31 11:48:24 +02:00
Maximiliano Sandoval
38f9bb87bc
gtkentrycompletion: Document missing properties
2024-05-31 11:48:24 +02:00
Maximiliano Sandoval
64abadb370
gtkcolorchooserdialog: Document show-editor
2024-05-31 11:48:23 +02:00
Maximiliano Sandoval
6f85827fcb
gtkfilechooserwidget: Document missing props
2024-05-31 11:48:23 +02:00
Maximiliano Sandoval
b0e321cfb8
gtkstylecontext: Document display property
2024-05-31 11:48:23 +02:00
Maximiliano Sandoval
46d0569365
gtktypes: Document GtkCssStyleChange
...
This is used in the css_changed virtual function of GtkWidget.
2024-05-31 11:48:19 +02:00
Maximiliano Sandoval
2eea911a0f
gdktoplevel: Document TitlebarGesture
2024-05-31 11:47:30 +02:00
Maximiliano Sandoval
ee4a817121
gdk: docs: Document error quarks
2024-05-31 11:47:30 +02:00
Maximiliano Sandoval
3d1f914271
gskglrenderer: Document GL renderers
2024-05-31 11:47:30 +02:00
Maximiliano Sandoval
7bb0639a75
gskrendernode: Document serialization error quark
2024-05-31 11:47:29 +02:00
Maximiliano Sandoval
f8f38aab63
gskpathpoint: Document copy and free
2024-05-31 11:47:29 +02:00
Maximiliano Sandoval
75c2bd53aa
gtkcsslocation: Document struct
2024-05-31 11:47:29 +02:00
Maximiliano Sandoval
83921750ae
gtknotebook: Document signals
2024-05-31 11:47:29 +02:00
Maximiliano Sandoval
413512eba7
gtkheaderbar: Document title-widget property
2024-05-31 11:47:29 +02:00
Maximiliano Sandoval
e824764dc3
gtktexttag: Document properties
2024-05-31 11:47:28 +02:00
Maximiliano Sandoval
61b12abdab
gtkshortcutssection: Document change-current-page
2024-05-31 11:47:28 +02:00
Maximiliano Sandoval
07bd5c7b05
gtkscale: Document FormatValueFunc
2024-05-31 11:47:28 +02:00
Maximiliano Sandoval
1dc20eda28
gtk: Document constants
2024-05-31 11:47:28 +02:00
Maximiliano Sandoval
5a9299f626
gtklistbox: Document signals
...
The docs of move-cursor is taken from FlowBox's.
2024-05-31 11:47:28 +02:00
Maximiliano Sandoval
9c86c67f06
gtkpadcontroller: Document properties
2024-05-31 11:47:27 +02:00
Maximiliano Sandoval
e6ca7668be
gtkdebug: Document DEBUG_CHECK
2024-05-31 11:47:27 +02:00
Maximiliano Sandoval
0b540b9ad1
gtkactionable: Document properties
2024-05-31 11:47:25 +02:00
Maximiliano Sandoval
514cdf7398
gtk: Document PrintSettingsFunc
2024-05-31 10:22:44 +02:00
Maximiliano Sandoval
2ab52d73ab
gtkprintsettings: Document constants
...
The docstring is taken form existing constants and their getters
docstring.
2024-05-31 10:22:38 +02:00
Maximiliano Sandoval
b3ae172c1e
gtk: Document error quark functions
2024-05-31 10:22:23 +02:00
Maximiliano Sandoval
a6d1df66ec
messagedialog: Document buttons property
2024-05-31 10:22:05 +02:00
gayathri.berli@ibm.com
ba92ce342e
Merge branch 'main' into memoryfix
2024-05-30 18:21:06 +05:30
Matthias Clasen
9f4c715516
Merge branch 'css-color-minor' into 'main'
...
css: Simplify color values
See merge request GNOME/gtk!7316
2024-05-30 03:57:31 +00:00
Matthias Clasen
5aa47b6e45
Merge branch 'ebassi/doc-overview-link' into 'main'
...
docs: Fix link to the Pango reference
See merge request GNOME/gtk!7315
2024-05-30 03:45:13 +00:00
Matthias Clasen
3b40d95581
css: Fix currentcolor serialization
...
According to css specs, the serialization is supposed to be
all lowercase.
2024-05-29 21:45:10 -04:00
Matthias Clasen
3ad2d91e1c
Cosmetics
...
Fix minor style issues in gtkcsscolorvalue.c.
2024-05-29 21:44:47 -04:00
Matthias Clasen
d4c586e882
css: Simplify color values
...
Drop the last_value. We don't do that for any other types of
values, so lets not do it here either.
2024-05-29 21:36:10 -04:00
Emmanuele Bassi
612c547ed3
docs: Fix link to the Pango reference
...
Reported at: https://discourse.gnome.org/t/broken-link-https-docs-gtk-org-gtk4-overview-html/21223
2024-05-30 02:10:48 +01:00
Matthias Clasen
1a777ce7f3
Merge branch 'online-man-pages' into 'main'
...
docs: Install man pages as html
See merge request GNOME/gtk!7314
2024-05-30 00:18:01 +00:00
Matthias Clasen
7ec4f6e297
Merge branch 'wip/xdg-dialog' into 'main'
...
gdk/wayland: Implement support for xdg-dialog Wayland protocol
See merge request GNOME/gtk!6837
2024-05-29 23:40:39 +00:00
Matthias Clasen
afaa0f3afd
docs: Install man pages as html
...
This will let us link to them from the docs.
2024-05-29 19:30:09 -04:00