Skip to content

gui_toolkit 0.358.0

Choose a tag to compare

@sachahjkl sachahjkl released this 25 Nov 12:04
· 334 commits to master since this release
v0.358.0
d30ab9b

Added

  • Nearest-neighbour and pixelated image filtering (draw.set_image_filter, render.FLAG_IMAGE_PIXELATED, render.FLAG_IMAGE_NEAREST): draw.set_image_filter(dc, .Smooth | .Pixelated | .Nearest) sets per-instance image sampling for image, image_corners, image_cover, image_tiled, and retained draw.Picture recordings without adding extra GPU samplers or splitting GL batches. .Pixelated fetches nearest texels when magnifying and falls back to trilinear filtering with mips when minifying; .Nearest fetches nearest texels at every scale.

Fixed

  • Linux desktop light/dark detection (platform.dark_mode_preferred, platform.watch_color_scheme): treat an XDG Settings portal org.freedesktop.appearance color-scheme of 0 (no preference, which GNOME and xdg-desktop-portal-gtk report for light mode) as light instead of falling through to stale GTK 3 settings, fall back to Read when ReadOne is unavailable, reject malformed non-integer portal replies, and keep internal color_scheme_serial tracking independent from an application's watch_color_scheme callback so neither overwrites the other.