Georges Basile Stavracas Neto
f40c2cb0e9
gui/fading-label: Rewrite using PangoLayout directly
...
Instead of an internal label widget, store the text and the PangoLayout
directly, and only render them. Cache as much as possible to avoid
font reshaping.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/765 >
2026-05-19 19:25:25 -03:00
Georges Basile Stavracas Neto
e4d1fdf13c
gui/event-widget: Use more bindings in the UI file
...
Instead of manually connecting to signals and binding to properties
in code.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/758 >
2026-05-19 22:20:09 +00:00
Philipp S and Titouan Real
4e2ed18ffc
src/gui: Fade out event widget title label instead of ellipsizing
...
Co-Authored-By: Titouan Real <titouan.real@gmail.com >
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/657 >
2026-02-03 17:11:45 -03:00
Hari Rana
be0ba51481
gui: Replace dim-label with dimmed style class
...
`dim-label` is deprecated.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/624 >
2025-08-18 18:37:25 -04:00
Hari Rana
6ab0ef7386
gui/event-widget: Set child depending on the orientation
...
Commit https://gitlab.gnome.org/GNOME/gnome-calendar/-/commit/73abcf19b0e70fb6fdd45394169b00e21ea0734a
introduced a bug where it uses the wrong widget on
vertical orientation.
This patch fixes that bug by using the correct widget
for their respective orientation. It also removes the use of
AdwClamp, as it was clamping labels above a certain height requested.
Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1414
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/607 >
2025-06-30 15:00:59 -04:00
Hari Rana
2ee31847fa
gui/event-widget: Use default value
...
The default value for GtkGestureSingle:button is 1:
https://docs.gtk.org/gtk4/property.GestureSingle.button.html
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/587 >
2025-06-28 14:01:11 -04:00
Hari Rana
73abcf19b0
gui/event-widget: Use AdwClamp
...
AdwSqueezer is deprecated.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/587 >
2025-06-28 14:01:11 -04:00
Hari Rana
96fef80ca2
gui/event-widget: Set has-popup accessible property to true
...
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/587 >
2025-06-28 13:49:16 -04:00
Hari Rana
ff17056108
gui/event-widget: Use GtkBoxLayout
...
The GTK inspector would always target and inspect the `main_widget`
box rather than the parent widget, which became repetitive to keep
pressing the "Parent widget" button when working with accessibility,
as the parent widget contained the accessible properties and states.
GtkBoxLayout solves that by allowing us to get rid of the box
completely, which exclusively makes it inspect the widget we
actually want to target.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/587 >
2025-06-28 13:48:59 -04:00
Jamie Gravendeel
a509de8b1e
gui: Port to Blueprint
...
This was mostly done with `blueprint-compiler port`.
Since Blueprint doesn't know about custom templates, I had to manually change some values from strings to literals.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/567 >
2025-06-08 14:31:01 +02:00