Skip to content

Commit

Permalink
Added 'not_found' illustration
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLazarescu committed Sep 26, 2023
1 parent 9f92fd1 commit dfe9ae8
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
2 changes: 2 additions & 0 deletions resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -209,5 +209,7 @@
<file>resources/images/light_mode/decision/close_popup_white_icon.svg</file>
<file>app_info.json</file>
<file>resources/animations/loading_animation.gif</file>
<file>resources/images/dark_mode/illustrations/not_found.svg</file>
<file>resources/images/light_mode/illustrations/not_found.svg</file>
</qresource>
</RCC>
1 change: 1 addition & 0 deletions resources/images/dark_mode/illustrations/not_found.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/images/light_mode/illustrations/not_found.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion src/presentation/IconSheet.qml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Item {

// Animations
property string loadingAnimation: "/resources/animations/loading_animation.gif"

// Arrows-icons
property string arrowheadBackIcon
property string arrowheadNextIcon
Expand Down Expand Up @@ -57,6 +57,7 @@ Item {
property string attentionPurple
property string checkBubbleIllustration
property string addFileIllustration
property string notFoundIllustration

// Reading searchbar
property string readingSearchbarCancel
Expand Down Expand Up @@ -294,6 +295,10 @@ Item {
target: iconSheet
addFileIllustration: "/resources/images/light_mode/illustrations/add_file_illustration.svg"
}
PropertyChanges {
target: iconSheet
notFoundIllustration: "/resources/images/light_mode/illustrations/not_found.svg"
}

// Reading searchbar
PropertyChanges {
Expand Down Expand Up @@ -709,6 +714,10 @@ Item {
target: iconSheet
addFileIllustration: "/resources/images/dark_mode/illustrations/add_file_illustration.svg"
}
PropertyChanges {
target: iconSheet
notFoundIllustration: "/resources/images/dark_mode/illustrations/not_found.svg"
}

// Reading searchbar
PropertyChanges {
Expand Down
2 changes: 1 addition & 1 deletion src/presentation/readingPage/MDictionaryPopup.qml
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ Popup {
z: 2
Layout.alignment: Qt.AlignHCenter
Layout.topMargin: -18
source: "file://home/creapermann/Downloads/458.svg"
source: Icons.notFoundIllustration
sourceSize.width: 180
fillMode: Image.PreserveAspectFit
}
Expand Down

0 comments on commit dfe9ae8

Please sign in to comment.