Adjusting demo app to take screenshots.

This commit is contained in:
2025-06-25 17:40:56 -05:00
parent 086a3f226b
commit d9d92c2a28
2 changed files with 21 additions and 2 deletions

View File

@@ -87,8 +87,15 @@ This is some information about the Widget class.
<details><summary>Checkbox</summary> <details><summary>Checkbox</summary>
* The `Checkbox` widget provides a simple binary toggle input, allowing users to select or deselect an option. * The `Checkbox` widget provides a simple binary toggle input, allowing users to select or deselect an option.
* Typically Consists of a small square box * Typically Consists of a small square box.
* When clicked, the box's state flips, indicating whether the corresponding option is enabled or disabled.
* Also see LabeledCheckbox for a Checkbox with integrated text. * Also see LabeledCheckbox for a Checkbox with integrated text.
* Usages:
* Enabling / Disabling Features
* Opt-in / Opt-out Choices:
* Multiple Selections - When presented in a group, checkboxes allow users to select zero, one or multiple independent options simultaneously.
* Contrast with Radio Buttons, which allow only one selection from a group.
* Boolean Settings
</details> </details>

View File

@@ -344,14 +344,26 @@ JUI::Rect* CreateWidgetList(JUI::Widget* root) {
label->Content("Standard"); label->Content("Standard");
label->BorderWidth(0); label->BorderWidth(0);
label->AutoFitSizeToText(true); label->AutoFitSizeToText(true);
label->Size({100_px, 20_px}); label->Size({50_px, 20_px});
auto* check1 = new Checkbox(set_1_layout); auto* check1 = new Checkbox(set_1_layout);
check1->Size({20_px, 20_px}); check1->Size({20_px, 20_px});
auto* separator_1 = new Separator(set_1_layout);
separator_1->Orient(Orientation::Vertical);
separator_1->Size({10_px, 100_percent});
separator_1->Spacing(0);
separator_1->Visible(false);
auto* check2 = new Checkbox(set_1_layout); auto* check2 = new Checkbox(set_1_layout);
check2->Size({20_px, 20_px}); check2->Size({20_px, 20_px});
check2->CheckedColor(Colors::Blue); check2->CheckedColor(Colors::Blue);
check2->CornerRounding(7); check2->CornerRounding(7);
auto* separator_2 = new Separator(set_1_layout);
separator_2->Orient(Orientation::Vertical);
separator_2->Spacing(0);
separator_2->Visible(false);
separator_2->Size({10_px, 100_percent});
auto* check3 = new Checkbox(set_1_layout); auto* check3 = new Checkbox(set_1_layout);
check3->Size({20_px, 20_px}); check3->Size({20_px, 20_px});
check3->CheckedColor(Colors::Oranges::Coral); check3->CheckedColor(Colors::Oranges::Coral);