From 118be55717c57638e9460b7fd9c11beba97d6812 Mon Sep 17 00:00:00 2001 From: gambas Date: Wed, 23 Feb 2022 20:31:43 +0100 Subject: [PATCH] Style.BackgroundOf() returns the accurate color now for TextBox, TextArea and ComboBox. [GB.GTK3] * BUG: Style.BackgroundOf() returns the accurate color now for TextBox, TextArea and ComboBox. --- gb.gtk/src/gcontrol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gb.gtk/src/gcontrol.cpp b/gb.gtk/src/gcontrol.cpp index a079f78b4..22778d7cd 100644 --- a/gb.gtk/src/gcontrol.cpp +++ b/gb.gtk/src/gcontrol.cpp @@ -2230,7 +2230,7 @@ gColor gControl::realBackground(bool no_default) if (!no_default) return COLOR_DEFAULT; - if (parent()) + if (!use_base && parent()) return parent()->realBackground(true); return defaultBackground();