From e365e8e34b79ebc917a6d888aaab550d924b5171 Mon Sep 17 00:00:00 2001 From: Tig Date: Mon, 1 Jul 2024 13:09:22 -0600 Subject: [PATCH] Fixed checkbox code in scenarios --- UICatalog/Scenarios/TextAlignmentAndDirection.cs | 2 +- UICatalog/Scenarios/TrueColors.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/UICatalog/Scenarios/TextAlignmentAndDirection.cs b/UICatalog/Scenarios/TextAlignmentAndDirection.cs index 16933ec96..67b0ec54c 100644 --- a/UICatalog/Scenarios/TextAlignmentAndDirection.cs +++ b/UICatalog/Scenarios/TextAlignmentAndDirection.cs @@ -484,7 +484,7 @@ public class TextAlignmentAndDirection : Scenario Enabled = false }; - justifyCheckbox.Toggle += (s, e) => ToggleJustify (e.NewValue == CheckState.Checked); + justifyCheckbox.Toggle += (s, e) => ToggleJustify (e.NewValue != CheckState.Checked); justifyOptions.SelectedItemChanged += (s, e) => { ToggleJustify (false, true); }; diff --git a/UICatalog/Scenarios/TrueColors.cs b/UICatalog/Scenarios/TrueColors.cs index 3a1446967..bd5f498ba 100644 --- a/UICatalog/Scenarios/TrueColors.cs +++ b/UICatalog/Scenarios/TrueColors.cs @@ -34,6 +34,7 @@ public class TrueColors : Scenario Y = y++, State = canTrueColor ? CheckState.Checked : CheckState.UnChecked, CanFocus = false, + Enabled = false, Text = "Driver supports true color " }; app.Add (cbSupportsTrueColor);