From 7f9e19b30d1ae104308a84abee525f3a1b68006b Mon Sep 17 00:00:00 2001 From: alfredolvera <50789842+alfredolvera@users.noreply.github.com> Date: Wed, 13 Jan 2021 09:26:39 -0600 Subject: [PATCH] Fixed highlight range mode for platform bar (PlayingKarrde) --- Global/HeaderBar.qml | 2 +- ShowcaseView/ShowcaseViewMenu.qml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Global/HeaderBar.qml b/Global/HeaderBar.qml index 92d4e580..199f1e8a 100644 --- a/Global/HeaderBar.qml +++ b/Global/HeaderBar.qml @@ -56,7 +56,7 @@ id: root } fillMode: Image.PreserveAspectFit source: "../assets/images/logospng/" + Utils.processPlatformName(currentCollection.shortName) + ".png" - sourceSize { width: 256; height: 256 } + sourceSize: Qt.size(parent.width, parent.height) smooth: true visible: false asynchronous: true diff --git a/ShowcaseView/ShowcaseViewMenu.qml b/ShowcaseView/ShowcaseViewMenu.qml index 767db987..0ab20368 100644 --- a/ShowcaseView/ShowcaseViewMenu.qml +++ b/ShowcaseView/ShowcaseViewMenu.qml @@ -342,14 +342,14 @@ id: root Component { id: featuredDelegate - Image { + AnimatedImage { id: background property bool selected: ListView.isCurrentItem && featuredlist.focus width: featuredlist.width height: featuredlist.height source: Utils.fanArt(modelData); - sourceSize { width: featuredlist.width; height: featuredlist.height } + //sourceSize { width: featuredlist.width; height: featuredlist.height } fillMode: Image.PreserveAspectCrop asynchronous: true @@ -366,7 +366,7 @@ id: root Behavior on opacity { PropertyAnimation { duration: 150; easing.type: Easing.OutQuart; easing.amplitude: 2.0; easing.period: 1.5 } } } - Image { + AnimatedImage { id: specialLogo width: parent.height - vpx(20) @@ -374,7 +374,7 @@ id: root source: Utils.logo(modelData) fillMode: Image.PreserveAspectFit asynchronous: true - sourceSize { width: 256; height: 256 } + //sourceSize { width: 256; height: 256 } anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter opacity: featuredlist.focus ? 1 : 0.5 @@ -453,7 +453,7 @@ id: root orientation: ListView.Horizontal preferredHighlightBegin: vpx(0) preferredHighlightEnd: parent.width - vpx(60) - highlightRangeMode: ListView.StrictlyEnforceRange + highlightRangeMode: ListView.ApplyRange snapMode: ListView.SnapOneItem highlightMoveDuration: 100 keyNavigationWraps: true