Skip to content

Commit

Permalink
Fixed on image button locations (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
Futsch1 authored Jun 4, 2023
1 parent c968a3a commit c2e12a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
### Fixed

- Fixed a notorious crash on Linux with wayland backend
- Correct location of on-image buttons

## [0.5.12] - 2023-05-01

Expand Down
10 changes: 6 additions & 4 deletions ui/sort.slint
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ export component SortView inherits HorizontalBox {
image-fit: contain;

Rectangle {
x: parent.width * 20%;
x: selected.width * 20%;
y: 0;
width: 60%;
height: 40%;
Rectangle {
Expand Down Expand Up @@ -129,8 +130,8 @@ export component SortView inherits HorizontalBox {
}
}
Rectangle {
x: parent.width * 20%;
y: parent.height * 80%;
x: selected.width * 20%;
y: selected.height * 80%;
width: 60%;
height: 20%;
Rectangle {
Expand Down Expand Up @@ -161,6 +162,7 @@ export component SortView inherits HorizontalBox {
}
}
Rectangle {
x: 0;
width: 20%;
Rectangle {
border-radius: 10px;
Expand Down Expand Up @@ -195,7 +197,7 @@ export component SortView inherits HorizontalBox {
}
}
Rectangle {
x: parent.width * 80%;
x: selected.width * 80%;
width: 20%;
Rectangle {
border-radius: 10px;
Expand Down

0 comments on commit c2e12a7

Please sign in to comment.