Daniel Rusek
6bbfd2f62a
Update Czech translation
2024-06-16 13:32:33 +00:00
Matthias Clasen
0320c4ac14
Merge branch 'matthiasc/for-main' into 'main'
...
gpu: Print some more details
See merge request GNOME/gtk!7360
2024-06-15 21:59:14 +00:00
Matthias Clasen
36993ac707
gpu: Print some more details
...
Print the variations of mask and blendmode operations.
Just because we can.
2024-06-15 14:00:46 -04:00
Matthias Clasen
2f93eb4a28
Merge branch 'matthiasc/for-main' into 'main'
...
Fix a copy-paste error
See merge request GNOME/gtk!7358
2024-06-14 23:18:55 +00:00
Matthias Clasen
5a2982ac31
testsuite: Fix one nodeparser error
2024-06-14 14:11:54 -04:00
Matthias Clasen
441b704afd
testsuite: Stop relying on xpms
...
gdk-pixbuf isn't loading those anymore, by default.
2024-06-14 14:11:22 -04:00
Matthias Clasen
abf6ebd7fe
label: Only put alpha in attributes when needed
...
It does not do much harm, but it broke some of our tests.
2024-06-14 14:04:23 -04:00
Matthias Clasen
34fb08af6e
Fix a copy-paste error
...
This was obviously meant to compare two different colors.
2024-06-14 12:30:06 -04:00
Matthias Clasen
0b9dfdd41f
Merge branch 'wip/alice/color-fix' into 'main'
...
More color clamping and redraw fixes
See merge request GNOME/gtk!7357
2024-06-14 11:07:49 +00:00
Alice Mikhaylenko
701e0812e4
treeview: Clamp tree line and grid line colors
2024-06-14 03:04:54 +04:00
Alice Mikhaylenko
4918a46172
textview: Redraw selection on style changes
2024-06-14 03:04:54 +04:00
Alice Mikhaylenko
ef5e3fae64
aboutdialog: Update link colors on css changes
2024-06-14 03:04:54 +04:00
Alice Mikhaylenko
9fcf55571e
textlayout: Clamp colors before passing them to Pango
2024-06-14 03:04:54 +04:00
Alice Mikhaylenko
260898ecf6
text: Redraw when selection style changes
2024-06-14 01:41:22 +04:00
Alice Mikhaylenko
66c9132abe
label: Update selection on css changes too
2024-06-14 01:41:22 +04:00
Alice Mikhaylenko
c5abdfb72b
label: Fix critical when updating styles
...
Noticed when testing with libadwaita styles instead of GTK styles.
2024-06-13 23:36:38 +04:00
Matthias Clasen
4fe37847ba
Merge branch 'wip/alice/color-fix' into 'main'
...
Fix GtkLabel link color
Closes #6781
See merge request GNOME/gtk!7355
2024-06-13 13:28:58 +00:00
Alice Mikhaylenko
c99a0b0518
label: Track link style changes
...
If we're gonna have system accents, would be nice to update links reliably
and not wait for other changes like changing color of the label itself.
2024-06-13 16:28:06 +04:00
Alice Mikhaylenko
31f3edec5c
label: Clamp out-of-gamut link color
...
Support alpha too while we're here.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/6781
2024-06-13 16:28:05 +04:00
Emmanuele Bassi
dee372c08e
Merge branch 'ebassi/docs-for-master' into 'main'
...
docs: Fix link to DragIcon.get_for_drag()
See merge request GNOME/gtk!7347
2024-06-13 11:27:28 +00:00
Matthias Clasen
8c0a4e5a6e
Merge branch 'matthiasc/for-main' into 'main'
...
Silence a compiler warning
See merge request GNOME/gtk!7354
2024-06-12 03:24:29 +00:00
Matthias Clasen
7195514fb5
Silence a compiler warning
2024-06-11 17:47:48 -04:00
Matthias Clasen
420bd5bc16
Merge branch 'more-css-color-spaces' into 'main'
...
css: Add more color spaces
See merge request GNOME/gtk!7352
2024-06-11 21:05:06 +00:00
Matthias Clasen
f024ee1adf
Add more tests for css colors
2024-06-11 16:41:22 -04:00
Matthias Clasen
18c2c71cd5
css: Add support for rec2100-pq colors
...
This is our first HDR color space. Yay!!
The conversion between rec2020-linear and rec2100-linear
assumes that SDR 1,1,1 has a luminance of 203 cd/m².
2024-06-11 16:41:22 -04:00
Matthias Clasen
2d1bfc84b9
Expose more colorutils
...
We may want to have a rec2020-linear space available on the gsk
level, so expose the conversion functions for it.
2024-06-11 16:41:22 -04:00
Matthias Clasen
8edfa759fb
css: Add support for rec2020 colors
...
Another extremely wide gamut color space.
2024-06-11 16:41:22 -04:00
Matthias Clasen
2d1e978599
css: Add support for xyz colors
...
This is somewhat central, and we have all the pieces to support
it, so we might as well add the css syntax for it.
2024-06-11 16:41:22 -04:00
Matthias Clasen
d71fc41152
css: Add support for display-p3 colors
...
A wide-gamut colorspace.
2024-06-11 16:41:22 -04:00
Matthias Clasen
d141cb7b72
Fix an oversight
...
This snuck in as part of 098d67f8befdb00d75.
2024-06-11 16:41:22 -04:00
Matthias Clasen
7010067884
Merge branch 'vulkan-high-depth' into 'main'
...
gpu: Print more info for renderpasses
See merge request GNOME/gtk!7351
2024-06-09 21:10:25 +00:00
Matthias Clasen
0ec29c4176
gsk: Pass the memory format for back buffer
...
We can now get this information from the Vulkan context,
so use it to accurately represent the back buffer.
Related: #6767
2024-06-09 15:59:56 -04:00
Matthias Clasen
42c6e0249f
vulkan: Fix updating swap chains
...
gdk_vulkan_context_check_swapchain uses priv->current_format,
so we must update it first, and undo that if check_swapchain
falls. This fixes handling of high-depth back buffers in gsk.
2024-06-09 15:59:56 -04:00
Matthias Clasen
54eb85f814
vulkan: Add a getter for the memory format
...
We need this to accurately set up the gpu image for the
backbuffer in gsk.
2024-06-09 15:59:56 -04:00
Matthias Clasen
18b3b4feed
gpu: Print more info for images
...
Show the memory format.
This helps debugging our depth selection.
2024-06-09 15:59:32 -04:00
Matthias Clasen
0045ac839b
Give memory formats a name
...
This is useful in debugging.
The names I chose are shortened a bit from the enum values. We
use just a single depth, * for premultiplied, and f for float.
2024-06-09 15:59:27 -04:00
Matthias Clasen
a9da807de3
Merge branch 'cmurtag/fix_harfbuzz_subset_wrap' into 'main'
...
Fix Harfbuzz subset dependency not found in wrap
See merge request GNOME/gtk!7349
2024-06-08 10:26:12 +00:00
cameron
366639b7e4
Fix Harfbuzz subset dependency not found in wrap
...
Add harfbuzz subset to the harfbuzz wrap file so Meson can find the
dependency.
2024-06-08 13:54:21 +10:00
Emmanuele Bassi
7d2e2171be
docs: Fix link to DragIcon.get_for_drag()
...
It has been marked as a constructor in commit 13013053f7
.
2024-06-07 13:33:32 +02:00
Matthias Clasen
e3ceda15ac
Merge branch 'gsktransform-improve-docs' into 'main'
...
gsktransform: Document consuming functions
See merge request GNOME/gtk!7342
2024-06-06 10:53:17 +00:00
Matthias Clasen
7291a21a85
Merge branch 'wip/alice/css' into 'main'
...
CSS fixes and more tests
See merge request GNOME/gtk!7345
2024-06-05 20:54:12 +00:00
Matthias Clasen
888afe3e46
Merge branch 'wip/alice/opacity' into 'main'
...
css: Allow percents in opacity
See merge request GNOME/gtk!7346
2024-06-05 20:53:55 +00:00
Alice Mikhaylenko
171bfde133
csscolorvalue: Fix percentage ranges for relative colors
...
Add tests as well, now that they can be computed at parse time.
2024-06-06 00:35:52 +04:00
Alice Mikhaylenko
82d1fdb714
csscolorvalue: Resolve relative colors at parse time when possible
2024-06-06 00:35:52 +04:00
Alice Mikhaylenko
82b19daa7e
csscolorvalue: Don't serialize relative colors as rgb()
...
Spec says it should be color(srgb).
2024-06-06 00:35:52 +04:00
Alice Mikhaylenko
dc1ff3c2e3
csscolorvalue: Fix oklab() percentage range
2024-06-06 00:35:52 +04:00
Alice Mikhaylenko
6602ac5eae
testsuite: Fix css tests
...
There are a bunch of new deprecations, and some tests weren't in
meson.build.
2024-06-06 00:35:52 +04:00
Alice Mikhaylenko
5dab5bf0e9
css: Allow percents in opacity
...
Add another missing feature from web css. It's nice to be able to use the
same variables in color-mix() and here.
2024-06-06 00:22:19 +04:00
Matthijs Velsink
721be8fe9f
gsktransform: Document consuming functions
...
Since GskTransform is immutable, a lot of the documented "methods" are
more like "functions", in the sense that they don't keep the instance
alive but rather consume it.
This is annotated with `(transfer full)`, but since these functions are
listed as methods, their first argument is not shown.
Instead, let's add a line to the docs of each consuming function that
clarifies this behavior.
2024-06-05 15:59:49 +02:00
Matthias Clasen
58fe590eae
Merge branch 'matthiasc/for-main' into 'main'
...
css: Plug a memory leak
See merge request GNOME/gtk!7341
2024-06-05 12:18:50 +00:00