From ed1e71917bc664322fa809e1d2612b1c6bfeb1d3 Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Wed, 18 Feb 2026 14:04:51 +0000 Subject: [PATCH] widgets, themes: Define style for GimpPivotSelector This patch adds a CSS class name to GimpPivotSelector so we can define its CSS style in the GUI. It also defines the margin-right CSS property to prevent it be affected by the general GimpOverlayDialog style. --- app/widgets/gimppivotselector.c | 2 ++ themes/Default/common.css | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/app/widgets/gimppivotselector.c b/app/widgets/gimppivotselector.c index b15b6bf474..376831560b 100644 --- a/app/widgets/gimppivotselector.c +++ b/app/widgets/gimppivotselector.c @@ -172,6 +172,8 @@ gimp_pivot_selector_class_init (GimpPivotSelectorClass *klass) 0.0, GIMP_PARAM_READWRITE | G_PARAM_CONSTRUCT)); + + gtk_widget_class_set_css_name (GTK_WIDGET_CLASS (klass), "GimpPivotSelector"); } static void diff --git a/themes/Default/common.css b/themes/Default/common.css index 91d3c8e98a..a083bd798e 100644 --- a/themes/Default/common.css +++ b/themes/Default/common.css @@ -410,6 +410,11 @@ scrolledwindow viewport grid, scrolledwindow viewport box { background-color: @extreme-bg-color; } +/* 9 button toggles on some transformation tools */ +GimpPivotSelector .toggle { + margin-right: 0px; +} + /* Define background on items in Preferences header */ GimpPrefsBox widget box label, GimpPrefsBox widget box image {