fix: fix missing images

This commit is contained in:
Jonathan Rainville 2020-05-14 11:21:23 -04:00 committed by Iuri Matias
parent 81a6ed524c
commit 63ce87d5e9
5 changed files with 4 additions and 16 deletions

View File

@ -52,10 +52,10 @@ Copy `libstatus.a` to the `./lib` folder. Can be obtained from `status-react/res
### 6. Install nim dependencies ### 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` ### 7. Build `nim-status-client`

View File

@ -72,7 +72,7 @@ SplitView {
anchors.leftMargin: 10 anchors.leftMargin: 10
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
source: "img/search.svg" source: "../img/search.svg"
} }
MouseArea { MouseArea {
@ -253,7 +253,7 @@ SplitView {
anchors.top: parent.top anchors.top: parent.top
anchors.topMargin: 16 anchors.topMargin: 16
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
source: "img/placeholder-profile.png" source: "../img/placeholder-profile.png"
} }
TextEdit { TextEdit {

View File

@ -79,6 +79,5 @@ DISTFILES += \
onboarding/img/wallet@2x.jpg \ onboarding/img/wallet@2x.jpg \
onboarding/img/wallet@3x.jpg \ onboarding/img/wallet@3x.jpg \
onboarding/qmldir \ onboarding/qmldir \
shared/Image.qml \
shared/RoundedIcon.qml \ shared/RoundedIcon.qml \
shared/qmldir shared/qmldir

View File

@ -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"
}
}

View File

@ -1,2 +1 @@
Image 1.0 Image.qml
RoundedIcon 1.0 RoundedIcon.qml RoundedIcon 1.0 RoundedIcon.qml