From 63ce87d5e9a966a27f0d765a563de8f96c457e15 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Thu, 14 May 2020 11:21:23 -0400 Subject: [PATCH] fix: fix missing images --- README.md | 4 ++-- ui/app/AppLayouts/ChatLayout.qml | 4 ++-- ui/nim-status-client.pro | 1 - ui/shared/Image.qml | 10 ---------- ui/shared/qmldir | 1 - 5 files changed, 4 insertions(+), 16 deletions(-) delete mode 100644 ui/shared/Image.qml diff --git a/README.md b/README.md index 8bba599625..2d36947daf 100644 --- a/README.md +++ b/README.md @@ -52,10 +52,10 @@ Copy `libstatus.a` to the `./lib` folder. Can be obtained from `status-react/res ### 6. Install nim dependencies -Ignore errors about `nim_status_client` failing to build. +Use `-d` to only install dependencies and not build afterwards. ``` -nimble install +nimble install -d ``` ### 7. Build `nim-status-client` diff --git a/ui/app/AppLayouts/ChatLayout.qml b/ui/app/AppLayouts/ChatLayout.qml index e51c5c8a3b..b84fa3370e 100644 --- a/ui/app/AppLayouts/ChatLayout.qml +++ b/ui/app/AppLayouts/ChatLayout.qml @@ -72,7 +72,7 @@ SplitView { anchors.leftMargin: 10 anchors.verticalCenter: parent.verticalCenter fillMode: Image.PreserveAspectFit - source: "img/search.svg" + source: "../img/search.svg" } MouseArea { @@ -253,7 +253,7 @@ SplitView { anchors.top: parent.top anchors.topMargin: 16 fillMode: Image.PreserveAspectFit - source: "img/placeholder-profile.png" + source: "../img/placeholder-profile.png" } TextEdit { diff --git a/ui/nim-status-client.pro b/ui/nim-status-client.pro index c387159a3e..aebab0ae24 100644 --- a/ui/nim-status-client.pro +++ b/ui/nim-status-client.pro @@ -79,6 +79,5 @@ DISTFILES += \ onboarding/img/wallet@2x.jpg \ onboarding/img/wallet@3x.jpg \ onboarding/qmldir \ - shared/Image.qml \ shared/RoundedIcon.qml \ shared/qmldir diff --git a/ui/shared/Image.qml b/ui/shared/Image.qml deleted file mode 100644 index 9bf34ee49a..0000000000 --- a/ui/shared/Image.qml +++ /dev/null @@ -1,10 +0,0 @@ -Image { - source: { - if (Screen.PixelDensity < 40) - "image_low_dpi.png" - else if (Screen.PixelDensity > 300) - "image_high_dpi.png" - else - "image.png" - } -} \ No newline at end of file diff --git a/ui/shared/qmldir b/ui/shared/qmldir index 3806766ced..fb19b06a5e 100644 --- a/ui/shared/qmldir +++ b/ui/shared/qmldir @@ -1,2 +1 @@ -Image 1.0 Image.qml RoundedIcon 1.0 RoundedIcon.qml