From 3ae3628c1f0637b5ad0ae077fc3a80ade853317a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sun, 29 Dec 2024 19:09:59 +0100 Subject: [PATCH] Replace drop shadow on the Flow Info view too --- CHANGELOG.md | 2 +- YACReaderLibrary/qml/FlowView.qml | 22 +++++++++++++--------- YACReaderLibrary/qml/FlowView6.qml | 23 +++++++++++++---------- custom_widgets/whats_new_dialog.cpp | 1 + 4 files changed, 28 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0332c2ae..5fb5f9f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,7 @@ Version counting is based on semantic versioning (Major.Feature.Patch) * Add a dialog to show information about a library, it includes the number of folders and comics and the number of read comics. * Fix ocasional crashes when using automatic library updates. * Add setting to hide the "Continue Reading..." banner from the home view. -* Improve Grid view performance. +* Improve Grid and Flow Info comics view scroll performance. ### YACReaderLibraryServer * New command --system-info to print information about the execution environment and available resources (including what image formats are supported and what libraries are used by the app). diff --git a/YACReaderLibrary/qml/FlowView.qml b/YACReaderLibrary/qml/FlowView.qml index 908d52e8..1953054a 100644 --- a/YACReaderLibrary/qml/FlowView.qml +++ b/YACReaderLibrary/qml/FlowView.qml @@ -118,16 +118,20 @@ Rectangle { running: coverElement.status === Image.Loading } - DropShadow { - anchors.fill: coverElement - horizontalOffset: 0 - verticalOffset: 0 - radius: 6 - samples: 17 - color: "#BB000000" - source: coverElement - visible: showDropShadow; + BorderImage { + anchors { + top: coverElement.top + left: coverElement.left + right: coverElement.right + bottom: coverElement.bottom + margins: -6 } + border { left: 10; top: 10; right: 10; bottom: 10 } + horizontalTileMode: BorderImage.Stretch + verticalTileMode: BorderImage.Stretch + source: "prerendered_cover_shadow.png" + visible: showDropShadow + } Image { id: coverElement diff --git a/YACReaderLibrary/qml/FlowView6.qml b/YACReaderLibrary/qml/FlowView6.qml index 7300fd8b..0af7027d 100644 --- a/YACReaderLibrary/qml/FlowView6.qml +++ b/YACReaderLibrary/qml/FlowView6.qml @@ -124,16 +124,19 @@ Rectangle { running: coverElement.status === Image.Loading } - DropShadow { - transparentBorder: true - anchors.fill: coverElement - horizontalOffset: 0 - verticalOffset: 0 - radius: 6 - //samples: 17 - color: "#BB000000" - source: coverElement - visible: showDropShadow; + BorderImage { + anchors { + top: coverElement.top + left: coverElement.left + right: coverElement.right + bottom: coverElement.bottom + margins: -6 + } + border { left: 10; top: 10; right: 10; bottom: 10 } + horizontalTileMode: BorderImage.Stretch + verticalTileMode: BorderImage.Stretch + source: "prerendered_cover_shadow.png" + visible: showDropShadow } Image { diff --git a/custom_widgets/whats_new_dialog.cpp b/custom_widgets/whats_new_dialog.cpp index 64c71d48..68195d2e 100644 --- a/custom_widgets/whats_new_dialog.cpp +++ b/custom_widgets/whats_new_dialog.cpp @@ -68,6 +68,7 @@ YACReader::WhatsNewDialog::WhatsNewDialog(QWidget *parent) " • Add a dialog to show information about a library, including the number of folders, comics, and read comics
" " • Fix occasional crashes when using automatic library updates
" " • Add setting to hide the \"Continue Reading...\" banner from the home view
" + " • Improve Grid and Flow Info comics view scroll performance
" "
" "YACReaderLibraryServer
" " • New command --system-info to print information about the execution environment and available resources (including what image formats are supported and what libraries are used by the app).
"