-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4152 from andydotxyz/feature/expandaccordion
- Loading branch information
Showing
20 changed files
with
361 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
widget/testdata/accordion/layout_expanded_multiple_open_multiple_items.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<canvas padded size="150x280"> | ||
<content> | ||
<container pos="4,4" size="142x272"> | ||
<widget pos="22,98" size="96x76" type="*widget.Accordion"> | ||
<widget size="96x36" type="*widget.Button"> | ||
<rectangle radius="4" size="96x36"/> | ||
<rectangle size="0x0"/> | ||
<widget pos="32,8" size="9x20" type="*widget.RichText"> | ||
<text alignment="center" bold size="9x19">A</text> | ||
</widget> | ||
<image fillMode="contain" pos="8,8" rsc="menuDropDownIcon" size="iconInlineSize"/> | ||
</widget> | ||
<widget pos="0,40" size="96x36" type="*widget.Button"> | ||
<rectangle radius="4" size="96x36"/> | ||
<rectangle size="0x0"/> | ||
<widget pos="32,8" size="9x20" type="*widget.RichText"> | ||
<text alignment="center" bold size="9x19">B</text> | ||
</widget> | ||
<image fillMode="contain" pos="8,8" rsc="menuDropDownIcon" size="iconInlineSize"/> | ||
</widget> | ||
<widget pos="0,37" size="96x1" type="*widget.Separator"> | ||
<rectangle fillColor="disabled" size="96x1"/> | ||
</widget> | ||
</widget> | ||
</container> | ||
</content> | ||
</canvas> |
33 changes: 33 additions & 0 deletions
33
widget/testdata/accordion/layout_expanded_multiple_open_multiple_items_opened.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<canvas padded size="150x280"> | ||
<content> | ||
<container pos="4,4" size="142x272"> | ||
<widget pos="22,58" size="96x154" type="*widget.Accordion"> | ||
<widget size="96x36" type="*widget.Button"> | ||
<rectangle radius="4" size="96x36"/> | ||
<rectangle size="0x0"/> | ||
<widget pos="32,8" size="9x20" type="*widget.RichText"> | ||
<text alignment="center" bold size="9x19">A</text> | ||
</widget> | ||
<image fillMode="contain" pos="8,8" rsc="menuDropUpIcon" size="iconInlineSize"/> | ||
</widget> | ||
<widget pos="0,75" size="96x36" type="*widget.Button"> | ||
<rectangle radius="4" size="96x36"/> | ||
<rectangle size="0x0"/> | ||
<widget pos="32,8" size="9x20" type="*widget.RichText"> | ||
<text alignment="center" bold size="9x19">B</text> | ||
</widget> | ||
<image fillMode="contain" pos="8,8" rsc="menuDropUpIcon" size="iconInlineSize"/> | ||
</widget> | ||
<widget pos="0,36" size="96x35" type="*widget.Label"> | ||
<text pos="8,8" size="40x19">11111</text> | ||
</widget> | ||
<widget pos="0,111" size="96x35" type="*widget.Label"> | ||
<text pos="8,8" size="80x19">2222222222</text> | ||
</widget> | ||
<widget pos="0,72" size="96x1" type="*widget.Separator"> | ||
<rectangle fillColor="disabled" size="96x1"/> | ||
</widget> | ||
</widget> | ||
</container> | ||
</content> | ||
</canvas> |
16 changes: 16 additions & 0 deletions
16
widget/testdata/accordion/layout_expanded_multiple_open_one_item.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<canvas padded size="150x280"> | ||
<content> | ||
<container pos="4,4" size="142x272"> | ||
<widget pos="42,118" size="56x36" type="*widget.Accordion"> | ||
<widget size="56x36" type="*widget.Button"> | ||
<rectangle radius="4" size="56x36"/> | ||
<rectangle size="0x0"/> | ||
<widget pos="32,8" size="9x20" type="*widget.RichText"> | ||
<text alignment="center" bold size="9x19">A</text> | ||
</widget> | ||
<image fillMode="contain" pos="8,8" rsc="menuDropDownIcon" size="iconInlineSize"/> | ||
</widget> | ||
</widget> | ||
</container> | ||
</content> | ||
</canvas> |
19 changes: 19 additions & 0 deletions
19
widget/testdata/accordion/layout_expanded_multiple_open_one_item_opened.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<canvas padded size="150x280"> | ||
<content> | ||
<container pos="4,4" size="142x272"> | ||
<widget pos="42,98" size="56x75" type="*widget.Accordion"> | ||
<widget size="56x36" type="*widget.Button"> | ||
<rectangle radius="4" size="56x36"/> | ||
<rectangle size="0x0"/> | ||
<widget pos="32,8" size="9x20" type="*widget.RichText"> | ||
<text alignment="center" bold size="9x19">A</text> | ||
</widget> | ||
<image fillMode="contain" pos="8,8" rsc="menuDropUpIcon" size="iconInlineSize"/> | ||
</widget> | ||
<widget pos="0,36" size="56x35" type="*widget.Label"> | ||
<text pos="8,8" size="40x19">11111</text> | ||
</widget> | ||
</widget> | ||
</container> | ||
</content> | ||
</canvas> |
27 changes: 27 additions & 0 deletions
27
widget/testdata/accordion/layout_expanded_single_open_multiple_items.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<canvas padded size="150x280"> | ||
<content> | ||
<container pos="4,4" size="142x272"> | ||
<widget pos="22,98" size="96x76" type="*widget.Accordion"> | ||
<widget size="96x36" type="*widget.Button"> | ||
<rectangle radius="4" size="96x36"/> | ||
<rectangle size="0x0"/> | ||
<widget pos="32,8" size="9x20" type="*widget.RichText"> | ||
<text alignment="center" bold size="9x19">A</text> | ||
</widget> | ||
<image fillMode="contain" pos="8,8" rsc="menuDropDownIcon" size="iconInlineSize"/> | ||
</widget> | ||
<widget pos="0,40" size="96x36" type="*widget.Button"> | ||
<rectangle radius="4" size="96x36"/> | ||
<rectangle size="0x0"/> | ||
<widget pos="32,8" size="9x20" type="*widget.RichText"> | ||
<text alignment="center" bold size="9x19">B</text> | ||
</widget> | ||
<image fillMode="contain" pos="8,8" rsc="menuDropDownIcon" size="iconInlineSize"/> | ||
</widget> | ||
<widget pos="0,37" size="96x1" type="*widget.Separator"> | ||
<rectangle fillColor="disabled" size="96x1"/> | ||
</widget> | ||
</widget> | ||
</container> | ||
</content> | ||
</canvas> |
30 changes: 30 additions & 0 deletions
30
widget/testdata/accordion/layout_expanded_single_open_multiple_items_opened.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<canvas padded size="150x280"> | ||
<content> | ||
<container pos="4,4" size="142x272"> | ||
<widget pos="22,78" size="96x115" type="*widget.Accordion"> | ||
<widget size="96x36" type="*widget.Button"> | ||
<rectangle radius="4" size="96x36"/> | ||
<rectangle size="0x0"/> | ||
<widget pos="32,8" size="9x20" type="*widget.RichText"> | ||
<text alignment="center" bold size="9x19">A</text> | ||
</widget> | ||
<image fillMode="contain" pos="8,8" rsc="menuDropDownIcon" size="iconInlineSize"/> | ||
</widget> | ||
<widget pos="0,40" size="96x36" type="*widget.Button"> | ||
<rectangle radius="4" size="96x36"/> | ||
<rectangle size="0x0"/> | ||
<widget pos="32,8" size="9x20" type="*widget.RichText"> | ||
<text alignment="center" bold size="9x19">B</text> | ||
</widget> | ||
<image fillMode="contain" pos="8,8" rsc="menuDropUpIcon" size="iconInlineSize"/> | ||
</widget> | ||
<widget pos="0,76" size="96x35" type="*widget.Label"> | ||
<text pos="8,8" size="80x19">2222222222</text> | ||
</widget> | ||
<widget pos="0,37" size="96x1" type="*widget.Separator"> | ||
<rectangle fillColor="disabled" size="96x1"/> | ||
</widget> | ||
</widget> | ||
</container> | ||
</content> | ||
</canvas> |
16 changes: 16 additions & 0 deletions
16
widget/testdata/accordion/layout_expanded_single_open_one_item.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<canvas padded size="150x280"> | ||
<content> | ||
<container pos="4,4" size="142x272"> | ||
<widget pos="42,118" size="56x36" type="*widget.Accordion"> | ||
<widget size="56x36" type="*widget.Button"> | ||
<rectangle radius="4" size="56x36"/> | ||
<rectangle size="0x0"/> | ||
<widget pos="32,8" size="9x20" type="*widget.RichText"> | ||
<text alignment="center" bold size="9x19">A</text> | ||
</widget> | ||
<image fillMode="contain" pos="8,8" rsc="menuDropDownIcon" size="iconInlineSize"/> | ||
</widget> | ||
</widget> | ||
</container> | ||
</content> | ||
</canvas> |
Oops, something went wrong.