From d9d5f860c37eb332251065121c15ac270b3eacaf Mon Sep 17 00:00:00 2001 From: Tig Date: Tue, 2 Apr 2024 14:56:11 -0600 Subject: [PATCH] Made RadioGroup utilize InvertColorsOnPress. Works, but not optimally. The entire view invert. What would be really nice is if just the radio item under the mouse inverted. We can fix this later. --- Terminal.Gui/Views/RadioGroup.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Terminal.Gui/Views/RadioGroup.cs b/Terminal.Gui/Views/RadioGroup.cs index 82de31e38..3b42c28bf 100644 --- a/Terminal.Gui/Views/RadioGroup.cs +++ b/Terminal.Gui/Views/RadioGroup.cs @@ -76,6 +76,8 @@ public class RadioGroup : View KeyBindings.Add (Key.Space, Command.Accept); LayoutStarted += RadioGroup_LayoutStarted; + + InvertColorsOnPress = true; } /// @@ -163,6 +165,7 @@ public class RadioGroup : View /// protected internal override bool OnMouseEvent (MouseEvent me) { + base.OnMouseEvent (me); if (!me.Flags.HasFlag (MouseFlags.Button1Clicked)) { return false;