patch 9.2.1229: GTK4: menu accelerator text is not dimmed

Problem:  GTK4: the accelerator text in menu items is not dimmed
Solution: Add the "dim-label" CSS class to the accelerator label
          (Sylvain Cresto).

closes: #21552

Signed-off-by: Sylvain Cresto <scresto@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Sylvain Cresto authored and Christian Brabandt committed 2026-10-24 16:32:03 +00:00
1 parent 15d42743c4
commit 04de8d641f
2 files changed
+3

No files matched your search

+1
View File
@@ -450,6 +450,7 @@ vim_menu_item_set_accel(VimMenuItem *self, const char *accel_text)
assert(self->aux_widget == NULL);
vim_menu_item_set_aux_widget(self, gtk_label_new(accel_text));
gtk_widget_add_css_class(self->aux_widget, "dim-label");
gtk_widget_insert_after(self->aux_widget, GTK_WIDGET(self), self->label);
}
+2
View File
@@ -743,6 +743,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1229,
/**/
1228,
/**/