-
-
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 #4803 from andydotxyz/fix/4767
Focus selects when tapped
- Loading branch information
Showing
65 changed files
with
911 additions
and
31 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<canvas padded size="200x150"> | ||
<content> | ||
<container pos="4,4" size="192x142"> | ||
<widget pos="32,53" size="127x35" type="*widget.Select"> | ||
<rectangle fillColor="focus" radius="4" size="127x35"/> | ||
<rectangle size="127x35"/> | ||
<widget pos="4,4" size="95x27" type="*widget.RichText"> | ||
<text alignment="center" pos="10,4" size="75x19">(Select one)</text> | ||
</widget> | ||
<widget pos="99,7" size="20x20" type="*widget.Icon"> | ||
<image fillMode="contain" rsc="menuDropDownIcon" size="iconInlineSize" themed="foreground"/> | ||
</widget> | ||
</widget> | ||
</container> | ||
</content> | ||
<overlay> | ||
<widget size="200x150" type="*widget.OverlayContainer"> | ||
<widget pos="36,90" size="127x35" type="*widget.PopUpMenu"> | ||
<widget size="127x35" type="*widget.Shadow"> | ||
<radialGradient centerOffset="0.5,0.5" pos="-4,-4" size="4x4" startColor="shadow"/> | ||
<linearGradient endColor="shadow" pos="0,-4" size="127x4"/> | ||
<radialGradient centerOffset="-0.5,0.5" pos="127,-4" size="4x4" startColor="shadow"/> | ||
<linearGradient angle="270" pos="127,0" size="4x35" startColor="shadow"/> | ||
<radialGradient centerOffset="-0.5,-0.5" pos="127,35" size="4x4" startColor="shadow"/> | ||
<linearGradient pos="0,35" size="127x4" startColor="shadow"/> | ||
<radialGradient centerOffset="0.5,-0.5" pos="-4,35" size="4x4" startColor="shadow"/> | ||
<linearGradient angle="270" endColor="shadow" pos="-4,0" size="4x35"/> | ||
</widget> | ||
<widget size="127x35" type="*widget.Scroll"> | ||
<widget size="127x35" type="*widget.menuBox"> | ||
<rectangle fillColor="menuBackground" size="127x35"/> | ||
<container size="127x35"> | ||
<widget size="127x35" type="*widget.menuItem"> | ||
<text alignment="center" pos="8,8" size="111x19">Hi</text> | ||
</widget> | ||
</container> | ||
</widget> | ||
</widget> | ||
</widget> | ||
</widget> | ||
</overlay> | ||
</canvas> |
File renamed without changes.
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,39 @@ | ||
<canvas padded size="150x200"> | ||
<content> | ||
<container pos="4,4" size="142x192"> | ||
<widget pos="7,78" size="127x35" type="*widget.Select"> | ||
<rectangle fillColor="focus" radius="4" size="127x35"/> | ||
<rectangle size="127x35"/> | ||
<widget pos="4,4" size="95x27" type="*widget.RichText"> | ||
<text pos="4,4" size="75x19">(Select one)</text> | ||
</widget> | ||
<widget pos="99,7" size="20x20" type="*widget.Icon"> | ||
<image fillMode="contain" rsc="menuDropDownIcon" size="iconInlineSize" themed="foreground"/> | ||
</widget> | ||
</widget> | ||
</container> | ||
</content> | ||
<overlay> | ||
<widget size="150x200" type="*widget.OverlayContainer"> | ||
<widget pos="11,115" size="127x0" type="*widget.PopUpMenu"> | ||
<widget size="127x0" type="*widget.Shadow"> | ||
<radialGradient centerOffset="0.5,0.5" pos="-4,-4" size="4x4" startColor="shadow"/> | ||
<linearGradient endColor="shadow" pos="0,-4" size="127x4"/> | ||
<radialGradient centerOffset="-0.5,0.5" pos="127,-4" size="4x4" startColor="shadow"/> | ||
<linearGradient angle="270" pos="127,0" size="4x0" startColor="shadow"/> | ||
<radialGradient centerOffset="-0.5,-0.5" pos="127,0" size="4x4" startColor="shadow"/> | ||
<linearGradient size="127x4" startColor="shadow"/> | ||
<radialGradient centerOffset="0.5,-0.5" pos="-4,0" size="4x4" startColor="shadow"/> | ||
<linearGradient angle="270" endColor="shadow" pos="-4,0" size="4x0"/> | ||
</widget> | ||
<widget size="127x0" type="*widget.Scroll"> | ||
<widget size="127x0" type="*widget.menuBox"> | ||
<rectangle fillColor="menuBackground" size="127x0"/> | ||
<container size="127x0"> | ||
</container> | ||
</widget> | ||
</widget> | ||
</widget> | ||
</widget> | ||
</overlay> | ||
</canvas> |
39 changes: 39 additions & 0 deletions
39
widget/testdata/select/desktop/layout_empty_expanded_placeholder.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,39 @@ | ||
<canvas padded size="150x200"> | ||
<content> | ||
<container pos="4,4" size="142x192"> | ||
<widget pos="21,78" size="98x35" type="*widget.Select"> | ||
<rectangle fillColor="focus" radius="4" size="98x35"/> | ||
<rectangle size="98x35"/> | ||
<widget pos="4,4" size="66x27" type="*widget.RichText"> | ||
<text pos="4,4" size="46x19">(Pick 1)</text> | ||
</widget> | ||
<widget pos="70,7" size="20x20" type="*widget.Icon"> | ||
<image fillMode="contain" rsc="menuDropDownIcon" size="iconInlineSize" themed="foreground"/> | ||
</widget> | ||
</widget> | ||
</container> | ||
</content> | ||
<overlay> | ||
<widget size="150x200" type="*widget.OverlayContainer"> | ||
<widget pos="25,115" size="98x0" type="*widget.PopUpMenu"> | ||
<widget size="98x0" type="*widget.Shadow"> | ||
<radialGradient centerOffset="0.5,0.5" pos="-4,-4" size="4x4" startColor="shadow"/> | ||
<linearGradient endColor="shadow" pos="0,-4" size="98x4"/> | ||
<radialGradient centerOffset="-0.5,0.5" pos="98,-4" size="4x4" startColor="shadow"/> | ||
<linearGradient angle="270" pos="98,0" size="4x0" startColor="shadow"/> | ||
<radialGradient centerOffset="-0.5,-0.5" pos="98,0" size="4x4" startColor="shadow"/> | ||
<linearGradient size="98x4" startColor="shadow"/> | ||
<radialGradient centerOffset="0.5,-0.5" pos="-4,0" size="4x4" startColor="shadow"/> | ||
<linearGradient angle="270" endColor="shadow" pos="-4,0" size="4x0"/> | ||
</widget> | ||
<widget size="98x0" type="*widget.Scroll"> | ||
<widget size="98x0" type="*widget.menuBox"> | ||
<rectangle fillColor="menuBackground" size="98x0"/> | ||
<container size="98x0"> | ||
</container> | ||
</widget> | ||
</widget> | ||
</widget> | ||
</widget> | ||
</overlay> | ||
</canvas> |
File renamed without changes.
File renamed without changes.
45 changes: 45 additions & 0 deletions
45
widget/testdata/select/desktop/layout_multiple_expanded.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,45 @@ | ||
<canvas padded size="150x200"> | ||
<content> | ||
<container pos="4,4" size="142x192"> | ||
<widget pos="7,78" size="127x35" type="*widget.Select"> | ||
<rectangle fillColor="focus" radius="4" size="127x35"/> | ||
<rectangle size="127x35"/> | ||
<widget pos="4,4" size="95x27" type="*widget.RichText"> | ||
<text pos="4,4" size="75x19">(Select one)</text> | ||
</widget> | ||
<widget pos="99,7" size="20x20" type="*widget.Icon"> | ||
<image fillMode="contain" rsc="menuDropDownIcon" size="iconInlineSize" themed="foreground"/> | ||
</widget> | ||
</widget> | ||
</container> | ||
</content> | ||
<overlay> | ||
<widget size="150x200" type="*widget.OverlayContainer"> | ||
<widget pos="11,115" size="127x74" type="*widget.PopUpMenu"> | ||
<widget size="127x74" type="*widget.Shadow"> | ||
<radialGradient centerOffset="0.5,0.5" pos="-4,-4" size="4x4" startColor="shadow"/> | ||
<linearGradient endColor="shadow" pos="0,-4" size="127x4"/> | ||
<radialGradient centerOffset="-0.5,0.5" pos="127,-4" size="4x4" startColor="shadow"/> | ||
<linearGradient angle="270" pos="127,0" size="4x74" startColor="shadow"/> | ||
<radialGradient centerOffset="-0.5,-0.5" pos="127,74" size="4x4" startColor="shadow"/> | ||
<linearGradient pos="0,74" size="127x4" startColor="shadow"/> | ||
<radialGradient centerOffset="0.5,-0.5" pos="-4,74" size="4x4" startColor="shadow"/> | ||
<linearGradient angle="270" endColor="shadow" pos="-4,0" size="4x74"/> | ||
</widget> | ||
<widget size="127x74" type="*widget.Scroll"> | ||
<widget size="127x74" type="*widget.menuBox"> | ||
<rectangle fillColor="menuBackground" size="127x74"/> | ||
<container size="127x74"> | ||
<widget size="127x35" type="*widget.menuItem"> | ||
<text pos="8,8" size="111x19">Foo</text> | ||
</widget> | ||
<widget pos="0,39" size="127x35" type="*widget.menuItem"> | ||
<text pos="8,8" size="111x19">Bar</text> | ||
</widget> | ||
</container> | ||
</widget> | ||
</widget> | ||
</widget> | ||
</widget> | ||
</overlay> | ||
</canvas> |
Oops, something went wrong.