Skip to content

Commit

Permalink
Update tests and fyne_demo with new icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacalz committed Jan 14, 2024
1 parent da0e6f9 commit fb1b7ec
Show file tree
Hide file tree
Showing 56 changed files with 108 additions and 104 deletions.
2 changes: 2 additions & 0 deletions cmd/fyne_demo/tutorials/icons.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ func loadIcons() []iconInfo {
{"SearchReplaceIcon", theme.SearchReplaceIcon()},

{"CheckButtonIcon", theme.CheckButtonIcon()},
{"CheckButtonFillIcon", theme.CheckButtonFillIcon()},
{"CheckButtonCheckedIcon", theme.CheckButtonCheckedIcon()},
{"RadioButtonIcon", theme.RadioButtonIcon()},
{"RadioButtonFillIcon", theme.RadioButtonFillIcon()},
{"RadioButtonCheckedIcon", theme.RadioButtonCheckedIcon()},

{"ColorAchromaticIcon", theme.ColorAchromaticIcon()},
Expand Down
2 changes: 2 additions & 0 deletions test/markup_renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ func knownResource(rsc fyne.Resource) string {
return map[fyne.Resource]string{
theme.CancelIcon(): "cancelIcon",
theme.CheckButtonCheckedIcon(): "checkButtonCheckedIcon",
theme.CheckButtonFillIcon(): "checkButtonFillIcon",
theme.CheckButtonIcon(): "checkButtonIcon",
theme.ColorAchromaticIcon(): "colorAchromaticIcon",
theme.ColorChromaticIcon(): "colorChromaticIcon",
Expand Down Expand Up @@ -473,6 +474,7 @@ func knownResource(rsc fyne.Resource) string {
theme.NavigateNextIcon(): "navigateNextIcon",
theme.QuestionIcon(): "questionIcon",
theme.RadioButtonCheckedIcon(): "radioButtonCheckedIcon",
theme.RadioButtonFillIcon(): "radioButtonFillIcon",
theme.RadioButtonIcon(): "radioButtonIcon",
theme.SearchIcon(): "searchIcon",
theme.SearchReplaceIcon(): "searchReplaceIcon",
Expand Down
2 changes: 1 addition & 1 deletion widget/testdata/check/layout_checked.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<container pos="4,4" size="142x192">
<widget pos="39,78" size="62x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonCheckedIcon" size="iconInlineSize" themed="primary"/>
<text pos="32,0" size="30x35">Test</text>
</widget>
Expand Down
2 changes: 1 addition & 1 deletion widget/testdata/check/layout_checked_disabled.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<container pos="4,4" size="142x192">
<widget pos="39,78" size="62x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonCheckedIcon" size="iconInlineSize" themed="disabled"/>
<text color="disabled" pos="32,0" size="30x35">Test</text>
</widget>
Expand Down
2 changes: 1 addition & 1 deletion widget/testdata/check/layout_unchecked.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<container pos="4,4" size="142x192">
<widget pos="39,78" size="62x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="inputBorder"/>
<text pos="32,0" size="30x35">Test</text>
</widget>
Expand Down
2 changes: 1 addition & 1 deletion widget/testdata/check/layout_unchecked_disabled.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<container pos="4,4" size="142x192">
<widget pos="39,78" size="62x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="disabled"/>
<text color="disabled" pos="32,0" size="30x35">Test</text>
</widget>
Expand Down
6 changes: 3 additions & 3 deletions widget/testdata/check_group/disabled_append_none_selected.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
<widget pos="4,4" size="142x192" type="*widget.CheckGroup">
<widget size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="disabled"/>
<text color="disabled" pos="32,0" size="62x35">Option A</text>
</widget>
<widget pos="0,35" size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="disabled"/>
<text color="disabled" pos="32,0" size="62x35">Option B</text>
</widget>
<widget pos="0,70" size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="disabled"/>
<text color="disabled" pos="32,0" size="62x35">Option C</text>
</widget>
Expand Down
4 changes: 2 additions & 2 deletions widget/testdata/check_group/disabled_none_selected.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<widget pos="4,4" size="142x192" type="*widget.CheckGroup">
<widget size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="disabled"/>
<text color="disabled" pos="32,0" size="62x35">Option A</text>
</widget>
<widget pos="0,35" size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="disabled"/>
<text color="disabled" pos="32,0" size="62x35">Option B</text>
</widget>
Expand Down
6 changes: 3 additions & 3 deletions widget/testdata/check_group/focus_a_focused_b_selected.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
<widget pos="4,4" size="142x192" type="*widget.CheckGroup">
<widget size="94x35" type="*widget.Check">
<circle fillColor="focus" pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="inputBorder"/>
<text pos="32,0" size="62x35">Option A</text>
</widget>
<widget pos="0,35" size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonCheckedIcon" size="iconInlineSize" themed="primary"/>
<text pos="32,0" size="62x35">Option B</text>
</widget>
<widget pos="0,70" size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonCheckedIcon" size="iconInlineSize" themed="primary"/>
<text pos="32,0" size="62x35">Option C</text>
</widget>
Expand Down
6 changes: 3 additions & 3 deletions widget/testdata/check_group/focus_a_focused_none_selected.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
<widget pos="4,4" size="142x192" type="*widget.CheckGroup">
<widget size="94x35" type="*widget.Check">
<circle fillColor="focus" pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="inputBorder"/>
<text pos="32,0" size="62x35">Option A</text>
</widget>
<widget pos="0,35" size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="inputBorder"/>
<text pos="32,0" size="62x35">Option B</text>
</widget>
<widget pos="0,70" size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="inputBorder"/>
<text pos="32,0" size="62x35">Option C</text>
</widget>
Expand Down
6 changes: 3 additions & 3 deletions widget/testdata/check_group/focus_b_focused_b_selected.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
<widget pos="4,4" size="142x192" type="*widget.CheckGroup">
<widget size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="inputBorder"/>
<text pos="32,0" size="62x35">Option A</text>
</widget>
<widget pos="0,35" size="94x35" type="*widget.Check">
<circle fillColor="focus" pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonCheckedIcon" size="iconInlineSize" themed="primary"/>
<text pos="32,0" size="62x35">Option B</text>
</widget>
<widget pos="0,70" size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonCheckedIcon" size="iconInlineSize" themed="primary"/>
<text pos="32,0" size="62x35">Option C</text>
</widget>
Expand Down
6 changes: 3 additions & 3 deletions widget/testdata/check_group/focus_b_focused_none_selected.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
<widget pos="4,4" size="142x192" type="*widget.CheckGroup">
<widget size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="inputBorder"/>
<text pos="32,0" size="62x35">Option A</text>
</widget>
<widget pos="0,35" size="94x35" type="*widget.Check">
<circle fillColor="focus" pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="inputBorder"/>
<text pos="32,0" size="62x35">Option B</text>
</widget>
<widget pos="0,70" size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="inputBorder"/>
<text pos="32,0" size="62x35">Option C</text>
</widget>
Expand Down
6 changes: 3 additions & 3 deletions widget/testdata/check_group/focus_disabled_none_selected.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
<widget pos="4,4" size="142x192" type="*widget.CheckGroup">
<widget size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="disabled"/>
<text color="disabled" pos="32,0" size="62x35">Option A</text>
</widget>
<widget pos="0,35" size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="disabled"/>
<text color="disabled" pos="32,0" size="62x35">Option B</text>
</widget>
<widget pos="0,70" size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="disabled"/>
<text color="disabled" pos="32,0" size="62x35">Option C</text>
</widget>
Expand Down
6 changes: 3 additions & 3 deletions widget/testdata/check_group/focus_none_focused_b_selected.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
<widget pos="4,4" size="142x192" type="*widget.CheckGroup">
<widget size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="inputBorder"/>
<text pos="32,0" size="62x35">Option A</text>
</widget>
<widget pos="0,35" size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonCheckedIcon" size="iconInlineSize" themed="primary"/>
<text pos="32,0" size="62x35">Option B</text>
</widget>
<widget pos="0,70" size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonCheckedIcon" size="iconInlineSize" themed="primary"/>
<text pos="32,0" size="62x35">Option C</text>
</widget>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
<widget pos="4,4" size="142x192" type="*widget.CheckGroup">
<widget size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="inputBorder"/>
<text pos="32,0" size="62x35">Option A</text>
</widget>
<widget pos="0,35" size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="inputBorder"/>
<text pos="32,0" size="62x35">Option B</text>
</widget>
<widget pos="0,70" size="94x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="inputBorder"/>
<text pos="32,0" size="62x35">Option C</text>
</widget>
Expand Down
4 changes: 2 additions & 2 deletions widget/testdata/check_group/layout_multiple.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<widget pos="4,4" size="142x192" type="*widget.CheckGroup">
<widget size="60x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="inputBorder"/>
<text pos="32,0" size="28x35">Foo</text>
</widget>
<widget pos="0,35" size="60x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="inputBorder"/>
<text pos="32,0" size="28x35">Bar</text>
</widget>
Expand Down
4 changes: 2 additions & 2 deletions widget/testdata/check_group/layout_multiple_disabled.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<widget pos="4,4" size="142x192" type="*widget.CheckGroup">
<widget size="60x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="disabled"/>
<text color="disabled" pos="32,0" size="28x35">Foo</text>
</widget>
<widget pos="0,35" size="60x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="disabled"/>
<text color="disabled" pos="32,0" size="28x35">Bar</text>
</widget>
Expand Down
4 changes: 2 additions & 2 deletions widget/testdata/check_group/layout_multiple_horizontal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<widget pos="4,4" size="146x192" type="*widget.CheckGroup">
<widget size="77x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="inputBorder"/>
<text pos="32,0" size="45x35">Foo</text>
</widget>
<widget pos="77,0" size="77x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="inputBackground"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="inputBorder"/>
<text pos="32,0" size="45x35">Barley</text>
</widget>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<widget pos="4,4" size="146x192" type="*widget.CheckGroup">
<widget size="77x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="disabled"/>
<text color="disabled" pos="32,0" size="45x35">Foo</text>
</widget>
<widget pos="77,0" size="77x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonIcon" size="iconInlineSize" themed="disabled"/>
<text color="disabled" pos="32,0" size="45x35">Barley</text>
</widget>
Expand Down
4 changes: 2 additions & 2 deletions widget/testdata/check_group/layout_multiple_selected.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<widget pos="4,4" size="142x192" type="*widget.CheckGroup">
<widget size="60x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonCheckedIcon" size="iconInlineSize" themed="primary"/>
<text pos="32,0" size="28x35">Foo</text>
</widget>
<widget pos="0,35" size="60x35" type="*widget.Check">
<circle pos="2,3" size="28x28"/>
<image pos="6,7" rsc="check-box-fill.svg" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonFillIcon" size="iconInlineSize" themed="background"/>
<image pos="6,7" rsc="checkButtonCheckedIcon" size="iconInlineSize" themed="primary"/>
<text pos="32,0" size="28x35">Bar</text>
</widget>
Expand Down
Loading

0 comments on commit fb1b7ec

Please sign in to comment.