File tree Expand file tree Collapse file tree 5 files changed +24
-5
lines changed Expand file tree Collapse file tree 5 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 11master
22
33- fix a ref leak in tilesource_new_from_file()
4+ - much better focus indicator in imagedisplay
45
56## 4.0.0 31/05/25
67
Original file line number Diff line number Diff line change 1+
2+ imagedisplay {
3+ transition-property : outline-offset, outline-color;
4+ transition-duration : 300ms ;
5+ animation-timing-function : ease-in-out;
6+ border-radius : 7px ;
7+ outline-offset : 4px ;
8+ outline : 2px solid transparent;
9+ }
10+
11+ imagedisplay : focus : focus-visible {
12+ outline-offset : -3px ;
13+ outline-color: @theme_selected_bg_color ;
14+ }
15+
Original file line number Diff line number Diff line change 99 <file preprocess =" xml-stripblanks" >ientry.ui</file >
1010 <file preprocess =" xml-stripblanks" >tslider.ui</file >
1111 <file preprocess =" xml-stripblanks" >saveoptions.ui</file >
12- <file >saveoptions.css</file >
1312 <file preprocess =" xml-stripblanks" >properties.ui</file >
13+
14+ <file >imagedisplay.css</file >
15+ <file >saveoptions.css</file >
1416 <file >properties.css</file >
1517 </gresource >
1618</gresources >
Original file line number Diff line number Diff line change @@ -863,6 +863,8 @@ imagedisplay_class_init(ImagedisplayClass *class)
863863 g_cclosure_marshal_VOID__OBJECT ,
864864 G_TYPE_NONE , 1 ,
865865 GTK_TYPE_SNAPSHOT );
866+
867+ gtk_widget_class_set_css_name (widget_class , "imagedisplay" );
866868}
867869
868870Imagedisplay *
Original file line number Diff line number Diff line change @@ -124,10 +124,9 @@ vipsdisp_app_startup(GApplication *app)
124124 /* We have custom CSS for our dynamic widgets.
125125 */
126126 GtkCssProvider * provider = gtk_css_provider_new ();
127- gtk_css_provider_load_from_resource (provider ,
128- APP_PATH "/saveoptions.css" );
129- gtk_css_provider_load_from_resource (provider ,
130- APP_PATH "/properties.css" );
127+ gtk_css_provider_load_from_resource (provider , APP_PATH "/saveoptions.css" );
128+ gtk_css_provider_load_from_resource (provider , APP_PATH "/properties.css" );
129+ gtk_css_provider_load_from_resource (provider , APP_PATH "/imagedisplay.css" );
131130 gtk_style_context_add_provider_for_display (gdk_display_get_default (),
132131 GTK_STYLE_PROVIDER (provider ),
133132 GTK_STYLE_PROVIDER_PRIORITY_FALLBACK );
You can’t perform that action at this time.
0 commit comments