Sunday 17 April 2022

GTK: Calling attention to a widget in LibreOffice with CSS animation


The motivation here is Use attention-attracting cue when pressing Ctrl+F while in the find bar and do "something" to call attention to the widget. I thought I'd try some of the built-in GTK CSS support. So here we animate the widget to reduce its left and right margins inwards a little and its opacity to 50% before returning to its original properties.

Nothing is ever simple, so in order to repeat the animation (the second time ctrl+f is pressed while the widget has focus) we have to duplicate the animation and use the other copy when the previous copy was last run.

Tuesday 12 April 2022

GTK4: ComboBox Cell Renderers

 

Custom Gtk Cell Renderer in GTK4 GtkComboBox in LibreOffice now working as hoped for.