Skip to content

Commit

Permalink
EW espressif demo: workaround for image scale
Browse files Browse the repository at this point in the history
  • Loading branch information
FloVanGH committed Mar 27, 2024
1 parent 6673f50 commit 821a158
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/usecases/ui/assets.slint
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ export global Icons {
out property <image> trash: @image-url("assets/trash.svg");
out property <image> updates: @image-url("assets/updates.svg");
out property <image> useres: @image-url("assets/users.svg");
out property <image> slint-logo: Palette.color-scheme == ColorScheme.dark ? @image-url("../../../logo/slint-logo-simple-dark.svg") : @image-url("../../../logo/slint-logo-simple-light.svg");
out property <image> slint-logo: Palette.color-scheme == ColorScheme.dark ? @image-url("../../../logo/slint-logo-simple-dark.png") : @image-url("../../../logo/slint-logo-simple-light.png");
}
3 changes: 2 additions & 1 deletion examples/usecases/ui/views/header_view.slint
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ export component HeaderView {

HorizontalBox {
Image {
height: 32px;
max-height: 32px;
source: Icons.slint-logo;
horizontal-alignment: left;
}

// spaceer
Expand Down

0 comments on commit 821a158

Please sign in to comment.