-
Notifications
You must be signed in to change notification settings - Fork 644
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Don't panic if the image is smaller then the borders - Some height and witdh cooredinate were inversed (should have tried with non-squared image before - Fix offset when there is no tiling
- Loading branch information
Showing
4 changed files
with
61 additions
and
32 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions
26
tests/screenshots/cases/software/basic/border-image2.slint
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,26 @@ | ||
// Copyright © SixtyFPS GmbH <info@slint.dev> | ||
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial | ||
|
||
import { Slider } from "std-widgets.slint"; | ||
|
||
export component TestCase inherits Window { | ||
width: 64px; | ||
height: 64px; | ||
background: lightyellow; | ||
Image { | ||
width: 100%; | ||
height: 100%; | ||
source: @image-url("border-image-rect.png", 9slice(5 5 15 5)); | ||
VerticalLayout { | ||
padding: 5px; | ||
Image { | ||
// The border is bigger than the image | ||
source: @image-url("border-image-rect.png", 9slice(50 2)); | ||
} | ||
Image { | ||
source: @image-url("border-image-rect.png", 9slice(1 0)); | ||
} | ||
} | ||
} | ||
} | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.