mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Use logos from the logo folder over the vscode-extension icon
This commit is contained in:
parent
ade7c23bf6
commit
c273537990
4 changed files with 5 additions and 5 deletions
|
@ -164,7 +164,7 @@ TEST_CASE("Image")
|
|||
REQUIRE(!img.path().has_value());
|
||||
}
|
||||
|
||||
img = Image::load_from_path(SOURCE_DIR "/../../vscode_extension/extension-logo.png");
|
||||
img = Image::load_from_path(SOURCE_DIR "/../../logo/slint-logo-square-light-128x128.png");
|
||||
{
|
||||
auto size = img.size();
|
||||
REQUIRE(size.width == 128.);
|
||||
|
@ -173,7 +173,7 @@ TEST_CASE("Image")
|
|||
{
|
||||
auto actual_path = img.path();
|
||||
REQUIRE(actual_path.has_value());
|
||||
REQUIRE(*actual_path == SOURCE_DIR "/../../vscode_extension/extension-logo.png");
|
||||
REQUIRE(*actual_path == SOURCE_DIR "/../../logo/slint-logo-square-light-128x128.png");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ SCENARIO("Value API")
|
|||
|
||||
REQUIRE(!value.to_image().has_value());
|
||||
slint::Image image = slint::Image::load_from_path(
|
||||
SOURCE_DIR "/../../vscode_extension/extension-logo.png");
|
||||
SOURCE_DIR "/../../logo/slint-logo-square-light-128x128.png");
|
||||
REQUIRE(image.size().width == 128);
|
||||
value = Value(image);
|
||||
REQUIRE(value.type() == Value::Type::Image);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue