mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-02 18:03:07 +00:00

This is only an error if we embedd recources. (When using absolute path it is not an error/warning)
23 lines
458 B
Text
23 lines
458 B
Text
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
|
|
|
|
|
|
export SubElements := Rectangle {
|
|
|
|
background: blue;
|
|
|
|
Image {
|
|
source: @image-url("foo.png");
|
|
}
|
|
|
|
Image {
|
|
source: @image-url("builtin:/common/does-not-exist.svg");
|
|
// ^error{Cannot find image file builtin:/common/does-not-exist.svg}
|
|
}
|
|
|
|
Rectangle {
|
|
background: red;
|
|
}
|
|
|
|
|
|
}
|