generated from wm-packages/pika-hyprland-settings
Update changelog for v1.0.0-101pika12; use ClippingRectangle for now playing art and improve visual elements in NowPlaying QML file
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 39s
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 39s
This commit is contained in:
parent
1d1553d6a7
commit
e67cf6cef2
2
.github/release-nest-v3
vendored
2
.github/release-nest-v3
vendored
@ -1 +1 @@
|
|||||||
2
|
1
|
@ -1,3 +1,9 @@
|
|||||||
|
pikabar (1.0.0-101pika12) pika; urgency=medium
|
||||||
|
|
||||||
|
* Use ClippingRectangle for now playing art
|
||||||
|
|
||||||
|
-- ferrreo <harderthanfire@gmail.com> Sat, 01 Oct 2022 14:50:00 +0300
|
||||||
|
|
||||||
pikabar (1.0.0-101pika11) pika; urgency=medium
|
pikabar (1.0.0-101pika11) pika; urgency=medium
|
||||||
|
|
||||||
* Fix spacings
|
* Fix spacings
|
||||||
|
@ -2,6 +2,7 @@ import QtQuick
|
|||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Services.Mpris
|
import Quickshell.Services.Mpris
|
||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
|
import Quickshell.Widgets
|
||||||
import QtQuick.Window
|
import QtQuick.Window
|
||||||
import "root:/"
|
import "root:/"
|
||||||
|
|
||||||
@ -79,8 +80,9 @@ BarWidget {
|
|||||||
leftMargin: 8
|
leftMargin: 8
|
||||||
rightMargin: 8
|
rightMargin: 8
|
||||||
}
|
}
|
||||||
color: "#2D2D2D"
|
color: "transparent"
|
||||||
radius: 8
|
radius: 8
|
||||||
|
visible: root.player?.playbackState === MprisPlaybackState.Playing || root.player?.playbackState === MprisPlaybackState.Paused
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: artContainer
|
id: artContainer
|
||||||
@ -90,26 +92,20 @@ BarWidget {
|
|||||||
anchors.leftMargin: 32
|
anchors.leftMargin: 32
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
radius: 8
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
anchors.fill: parent
|
|
||||||
color: parent.color
|
|
||||||
radius: parent.radius
|
radius: parent.radius
|
||||||
clip: true
|
|
||||||
|
ClippingRectangle {
|
||||||
|
anchors.fill: parent
|
||||||
|
color: "transparent"
|
||||||
|
radius: parent.radius
|
||||||
|
border.color: "#9900246b"
|
||||||
|
border.width: 2
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: artImage
|
id: artImage
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: root.player?.trackArtUrl ?? ""
|
source: root.player?.trackArtUrl ?? ""
|
||||||
fillMode: Image.PreserveAspectCrop
|
fillMode: Image.PreserveAspectFit
|
||||||
|
|
||||||
layer.enabled: true
|
|
||||||
layer.effect: ShaderEffect {
|
|
||||||
property real radius: artContainer.radius
|
|
||||||
property size size: Qt.size(artImage.width, artImage.height)
|
|
||||||
fragmentShader: "../roundedimage.frag.qsb"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -138,28 +134,16 @@ BarWidget {
|
|||||||
MouseArea {
|
MouseArea {
|
||||||
id: mouseArea
|
id: mouseArea
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: root.player?.playbackState === MprisPlaybackState.Stopped || root.player?.playbackState === MprisPlaybackState.Playing || root.player?.playbackState === MprisPlaybackState.Paused
|
hoverEnabled: true
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
onClicked: root.player?.togglePlaying()
|
onClicked: root.player?.togglePlaying()
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
anchors.fill: parent
|
|
||||||
color: "transparent"
|
|
||||||
border.color: "#00246b"
|
|
||||||
border.width: 2
|
|
||||||
radius: parent.radius
|
|
||||||
antialiasing: true
|
|
||||||
smooth: true
|
|
||||||
visible: root.player?.playbackState === MprisPlaybackState.Playing || root.player?.playbackState === MprisPlaybackState.Paused
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: titleContainer
|
id: titleContainer
|
||||||
anchors.left: artContainer.right
|
anchors.left: artContainer.right
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
anchors.leftMargin: 16
|
anchors.leftMargin: 16
|
||||||
anchors.rightMargin: 12
|
anchors.rightMargin: 12
|
||||||
height: 42
|
height: 42
|
||||||
@ -183,7 +167,6 @@ BarWidget {
|
|||||||
width: Math.min(implicitWidth, 200)
|
width: Math.min(implicitWidth, 200)
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.top: parent.verticalCenter
|
anchors.top: parent.verticalCenter
|
||||||
anchors.topMargin: 2
|
|
||||||
text: root.player?.trackArtists || ""
|
text: root.player?.trackArtists || ""
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
color: Globals.commonStyles.textColor
|
color: Globals.commonStyles.textColor
|
||||||
|
Loading…
Reference in New Issue
Block a user