Skip to content

Commit

Permalink
Merge branch 'develop' into button-locking
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth authored Feb 3, 2024
2 parents 76cfa85 + 776ac3f commit 9e59817
Show file tree
Hide file tree
Showing 198 changed files with 1,525 additions and 492 deletions.
4 changes: 2 additions & 2 deletions container.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ func (c *Container) Refresh() {
// This method is not intended to be used inside a loop, to remove all the elements.
// It is much more efficient to call RemoveAll() instead.
func (c *Container) Remove(rem CanvasObject) {
c.lock.Lock()
defer c.lock.Unlock()
if len(c.Objects) == 0 {
return
}

c.lock.Lock()
defer c.lock.Unlock()
for i, o := range c.Objects {
if o != rem {
continue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,36" size="150x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="52x4"/>
<widget pos="0,40" size="150x110" type="*widget.Label">
<text pos="8,8" size="34x19">Text3</text>
<widget size="150x110" type="*widget.RichText">
<text pos="8,8" size="34x19">Text3</text>
</widget>
</widget>
</widget>
</content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,36" size="150x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="52x4"/>
<widget pos="0,40" size="150x110" type="*widget.Label">
<text pos="8,8" size="34x19">Text3</text>
<widget size="150x110" type="*widget.RichText">
<text pos="8,8" size="34x19">Text3</text>
</widget>
</widget>
</widget>
</content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,36" size="150x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="52x4"/>
<widget pos="0,40" size="150x110" type="*widget.Label">
<text pos="8,8" size="34x19">Text1</text>
<widget size="150x110" type="*widget.RichText">
<text pos="8,8" size="34x19">Text1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,36" size="150x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="28x4"/>
<widget pos="0,40" size="150x110" type="*widget.Label">
<text pos="8,8" size="34x19">Text1</text>
<widget size="150x110" type="*widget.RichText">
<text pos="8,8" size="34x19">Text1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,36" size="150x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="28x4"/>
<widget pos="0,40" size="150x110" type="*widget.Label">
<text pos="8,8" size="34x19">Text1</text>
<widget size="150x110" type="*widget.RichText">
<text pos="8,8" size="34x19">Text1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
4 changes: 3 additions & 1 deletion container/testdata/apptabs/desktop/change_icon_initial.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,36" size="150x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="28x4"/>
<widget pos="0,40" size="150x110" type="*widget.Label">
<text pos="8,8" size="34x19">Text1</text>
<widget size="150x110" type="*widget.RichText">
<text pos="8,8" size="34x19">Text1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,36" size="150x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="59x4"/>
<widget pos="0,40" size="150x110" type="*widget.Label">
<text pos="8,8" size="34x19">Text1</text>
<widget size="150x110" type="*widget.RichText">
<text pos="8,8" size="34x19">Text1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,36" size="150x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="59x4"/>
<widget pos="0,40" size="150x110" type="*widget.Label">
<text pos="8,8" size="34x19">Text1</text>
<widget size="150x110" type="*widget.RichText">
<text pos="8,8" size="34x19">Text1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
4 changes: 3 additions & 1 deletion container/testdata/apptabs/desktop/change_label_initial.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,36" size="150x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="52x4"/>
<widget pos="0,40" size="150x110" type="*widget.Label">
<text pos="8,8" size="34x19">Text1</text>
<widget size="150x110" type="*widget.RichText">
<text pos="8,8" size="34x19">Text1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
4 changes: 3 additions & 1 deletion container/testdata/apptabs/desktop/dynamic_appended.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,36" size="300x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="52x4"/>
<widget pos="0,40" size="300x110" type="*widget.Label">
<text pos="8,8" size="38x19">Text 1</text>
<widget size="300x110" type="*widget.RichText">
<text pos="8,8" size="38x19">Text 1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
<rectangle fillColor="shadow" pos="0,36" size="300x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="52x4"/>
<widget pos="0,40" size="300x110" type="*widget.Label">
<text pos="8,8" size="38x19">Text 2</text>
<widget size="300x110" type="*widget.RichText">
<text pos="8,8" size="38x19">Text 2</text>
</widget>
</widget>
</widget>
</content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
<rectangle fillColor="shadow" pos="0,36" size="300x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="52x4"/>
<widget pos="0,40" size="300x110" type="*widget.Label">
<text pos="8,8" size="38x19">Text 2</text>
<widget size="300x110" type="*widget.RichText">
<text pos="8,8" size="38x19">Text 2</text>
</widget>
</widget>
</widget>
</content>
Expand Down
4 changes: 3 additions & 1 deletion container/testdata/apptabs/desktop/dynamic_initial.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
<rectangle fillColor="shadow" pos="0,36" size="300x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="52x4"/>
<widget pos="0,40" size="300x110" type="*widget.Label">
<text pos="8,8" size="38x19">Text 1</text>
<widget size="300x110" type="*widget.RichText">
<text pos="8,8" size="38x19">Text 1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
<rectangle fillColor="shadow" pos="0,36" size="300x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="52x4"/>
<widget pos="0,40" size="300x110" type="*widget.Label">
<text pos="8,8" size="38x19">Text 6</text>
<widget size="300x110" type="*widget.RichText">
<text pos="8,8" size="38x19">Text 6</text>
</widget>
</widget>
</widget>
</content>
Expand Down
4 changes: 3 additions & 1 deletion container/testdata/apptabs/desktop/hover_first.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
<rectangle fillColor="shadow" pos="0,36" size="150x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="52x4"/>
<widget pos="0,40" size="150x110" type="*widget.Label">
<text pos="8,8" size="34x19">Text1</text>
<widget size="150x110" type="*widget.RichText">
<text pos="8,8" size="34x19">Text1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
4 changes: 3 additions & 1 deletion container/testdata/apptabs/desktop/hover_none.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,36" size="150x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="52x4"/>
<widget pos="0,40" size="150x110" type="*widget.Label">
<text pos="8,8" size="34x19">Text1</text>
<widget size="150x110" type="*widget.RichText">
<text pos="8,8" size="34x19">Text1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
4 changes: 3 additions & 1 deletion container/testdata/apptabs/desktop/hover_overflow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
<rectangle fillColor="shadow" pos="0,36" size="150x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="52x4"/>
<widget pos="0,40" size="150x110" type="*widget.Label">
<text pos="8,8" size="34x19">Text1</text>
<widget size="150x110" type="*widget.RichText">
<text pos="8,8" size="34x19">Text1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
4 changes: 3 additions & 1 deletion container/testdata/apptabs/desktop/hover_second.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
<rectangle fillColor="shadow" pos="0,36" size="150x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="52x4"/>
<widget pos="0,40" size="150x110" type="*widget.Label">
<text pos="8,8" size="34x19">Text1</text>
<widget size="150x110" type="*widget.RichText">
<text pos="8,8" size="34x19">Text1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
4 changes: 3 additions & 1 deletion container/testdata/apptabs/desktop/tab_location_bottom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
<rectangle fillColor="shadow" pos="0,35" size="88x4"/>
<rectangle fillColor="primary" pos="0,35" radius="4" size="52x4"/>
<widget size="88x35" type="*widget.Label">
<text pos="8,8" size="38x19">Text 1</text>
<widget size="88x35" type="*widget.RichText">
<text pos="8,8" size="38x19">Text 1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
4 changes: 3 additions & 1 deletion container/testdata/apptabs/desktop/tab_location_leading.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
<rectangle fillColor="shadow" pos="48,0" size="4x71"/>
<rectangle fillColor="primary" pos="48,0" radius="4" size="4x35"/>
<widget pos="52,0" size="54x71" type="*widget.Label">
<text pos="8,8" size="38x19">Text 1</text>
<widget size="54x71" type="*widget.RichText">
<text pos="8,8" size="38x19">Text 1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
4 changes: 3 additions & 1 deletion container/testdata/apptabs/desktop/tab_location_top.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
<rectangle fillColor="shadow" pos="0,36" size="88x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="52x4"/>
<widget pos="0,40" size="88x35" type="*widget.Label">
<text pos="8,8" size="38x19">Text 1</text>
<widget size="88x35" type="*widget.RichText">
<text pos="8,8" size="38x19">Text 1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
4 changes: 3 additions & 1 deletion container/testdata/apptabs/desktop/tab_location_trailing.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
<rectangle fillColor="shadow" pos="54,0" size="4x71"/>
<rectangle fillColor="primary" pos="54,0" radius="4" size="4x35"/>
<widget size="54x71" type="*widget.Label">
<text pos="8,8" size="38x19">Text 1</text>
<widget size="54x71" type="*widget.RichText">
<text pos="8,8" size="38x19">Text 1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
4 changes: 3 additions & 1 deletion container/testdata/apptabs/desktop/tapped_first_selected.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
<rectangle fillColor="shadow" pos="0,36" size="200x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="52x4"/>
<widget pos="0,40" size="200x60" type="*widget.Label">
<text pos="8,8" size="38x19">Text 1</text>
<widget size="200x60" type="*widget.RichText">
<text pos="8,8" size="38x19">Text 1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
4 changes: 3 additions & 1 deletion container/testdata/apptabs/desktop/tapped_overflow_tabs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
<rectangle fillColor="shadow" pos="0,36" size="200x4"/>
<rectangle fillColor="primary" pos="0,36" radius="4" size="52x4"/>
<widget pos="0,40" size="200x60" type="*widget.Label">
<text pos="8,8" size="38x19">Text 1</text>
<widget size="200x60" type="*widget.RichText">
<text pos="8,8" size="38x19">Text 1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
<rectangle fillColor="shadow" pos="0,36" size="200x4"/>
<rectangle fillColor="primary" pos="56,36" radius="4" size="52x4"/>
<widget pos="0,40" size="200x60" type="*widget.Label">
<text pos="8,8" size="38x19">Text 2</text>
<widget size="200x60" type="*widget.RichText">
<text pos="8,8" size="38x19">Text 2</text>
</widget>
</widget>
</widget>
</content>
Expand Down
4 changes: 3 additions & 1 deletion container/testdata/apptabs/desktop/tapped_third_selected.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
<rectangle fillColor="shadow" pos="0,36" size="200x4"/>
<rectangle fillColor="primary" pos="112,36" radius="4" size="52x4"/>
<widget pos="0,40" size="200x60" type="*widget.Label">
<text pos="8,8" size="38x19">Text 3</text>
<widget size="200x60" type="*widget.RichText">
<text pos="8,8" size="38x19">Text 3</text>
</widget>
</widget>
</widget>
</content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,35" size="150x4"/>
<rectangle fillColor="primary" pos="0,35" radius="4" size="73x4"/>
<widget pos="0,39" size="150x110" type="*widget.Label">
<text pos="8,8" size="34x19">Text3</text>
<widget size="150x110" type="*widget.RichText">
<text pos="8,8" size="34x19">Text3</text>
</widget>
</widget>
</widget>
</content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,35" size="150x4"/>
<rectangle fillColor="primary" pos="0,35" radius="4" size="73x4"/>
<widget pos="0,39" size="150x110" type="*widget.Label">
<text pos="8,8" size="34x19">Text3</text>
<widget size="150x110" type="*widget.RichText">
<text pos="8,8" size="34x19">Text3</text>
</widget>
</widget>
</widget>
</content>
Expand Down
4 changes: 3 additions & 1 deletion container/testdata/apptabs/mobile/change_content_initial.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,35" size="150x4"/>
<rectangle fillColor="primary" pos="0,35" radius="4" size="73x4"/>
<widget pos="0,39" size="150x110" type="*widget.Label">
<text pos="8,8" size="34x19">Text1</text>
<widget size="150x110" type="*widget.RichText">
<text pos="8,8" size="34x19">Text1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,56" size="150x4"/>
<rectangle fillColor="primary" pos="0,56" radius="4" size="73x4"/>
<widget pos="0,60" size="150x90" type="*widget.Label">
<text pos="8,8" size="34x19">Text1</text>
<widget size="150x90" type="*widget.RichText">
<text pos="8,8" size="34x19">Text1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,56" size="150x4"/>
<rectangle fillColor="primary" pos="0,56" radius="4" size="73x4"/>
<widget pos="0,60" size="150x90" type="*widget.Label">
<text pos="8,8" size="34x19">Text1</text>
<widget size="150x90" type="*widget.RichText">
<text pos="8,8" size="34x19">Text1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
4 changes: 3 additions & 1 deletion container/testdata/apptabs/mobile/change_icon_initial.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,56" size="150x4"/>
<rectangle fillColor="primary" pos="0,56" radius="4" size="73x4"/>
<widget pos="0,60" size="150x90" type="*widget.Label">
<text pos="8,8" size="34x19">Text1</text>
<widget size="150x90" type="*widget.RichText">
<text pos="8,8" size="34x19">Text1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,35" size="150x4"/>
<rectangle fillColor="primary" pos="0,35" radius="4" size="73x4"/>
<widget pos="0,39" size="150x110" type="*widget.Label">
<text pos="8,8" size="34x19">Text1</text>
<widget size="150x110" type="*widget.RichText">
<text pos="8,8" size="34x19">Text1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,35" size="150x4"/>
<rectangle fillColor="primary" pos="0,35" radius="4" size="73x4"/>
<widget pos="0,39" size="150x110" type="*widget.Label">
<text pos="8,8" size="34x19">Text1</text>
<widget size="150x110" type="*widget.RichText">
<text pos="8,8" size="34x19">Text1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
4 changes: 3 additions & 1 deletion container/testdata/apptabs/mobile/change_label_initial.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<rectangle fillColor="shadow" pos="0,35" size="150x4"/>
<rectangle fillColor="primary" pos="0,35" radius="4" size="73x4"/>
<widget pos="0,39" size="150x110" type="*widget.Label">
<text pos="8,8" size="34x19">Text1</text>
<widget size="150x110" type="*widget.RichText">
<text pos="8,8" size="34x19">Text1</text>
</widget>
</widget>
</widget>
</content>
Expand Down
Loading

0 comments on commit 9e59817

Please sign in to comment.