Skip to content

Commit

Permalink
Fixed highlight range mode for platform bar (PlayingKarrde)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredolvera committed Jan 13, 2021
1 parent 52a4af7 commit 7f9e19b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Global/HeaderBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions ShowcaseView/ShowcaseViewMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -366,15 +366,15 @@ 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)
height: width
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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7f9e19b

Please sign in to comment.