restore cava in dashboard
This commit is contained in:
+30
-30
@@ -321,36 +321,36 @@ Variants {
|
|||||||
screen: scope.modelData
|
screen: scope.modelData
|
||||||
visibilities: visibilities
|
visibilities: visibilities
|
||||||
|
|
||||||
// dashboard.transform: Matrix4x4 {
|
dashboard.transform: Matrix4x4 {
|
||||||
// matrix: dashBg.deformMatrix
|
matrix: dashBg.deformMatrix
|
||||||
// }
|
}
|
||||||
// dock.transform: Matrix4x4 {
|
dock.transform: Matrix4x4 {
|
||||||
// matrix: dockBg.deformMatrix
|
matrix: dockBg.deformMatrix
|
||||||
// }
|
}
|
||||||
// launcher.transform: Matrix4x4 {
|
launcher.transform: Matrix4x4 {
|
||||||
// matrix: launcherBg.deformMatrix
|
matrix: launcherBg.deformMatrix
|
||||||
// }
|
}
|
||||||
// notifications.transform: Matrix4x4 {
|
notifications.transform: Matrix4x4 {
|
||||||
// matrix: notifsBg.deformMatrix
|
matrix: notifsBg.deformMatrix
|
||||||
// }
|
}
|
||||||
// osd.transform: Matrix4x4 {
|
osd.transform: Matrix4x4 {
|
||||||
// matrix: osdBg.deformMatrix
|
matrix: osdBg.deformMatrix
|
||||||
// }
|
}
|
||||||
// popouts.transform: Matrix4x4 {
|
popouts.transform: Matrix4x4 {
|
||||||
// matrix: popoutBg.deformMatrix
|
matrix: popoutBg.deformMatrix
|
||||||
// }
|
}
|
||||||
// resources.transform: Matrix4x4 {
|
resources.transform: Matrix4x4 {
|
||||||
// matrix: resourcesBg.deformMatrix
|
matrix: resourcesBg.deformMatrix
|
||||||
// }
|
}
|
||||||
// settings.transform: Matrix4x4 {
|
settings.transform: Matrix4x4 {
|
||||||
// matrix: settingsBg.deformMatrix
|
matrix: settingsBg.deformMatrix
|
||||||
// }
|
}
|
||||||
// sidebar.transform: Matrix4x4 {
|
sidebar.transform: Matrix4x4 {
|
||||||
// matrix: sidebarBg.deformMatrix
|
matrix: sidebarBg.deformMatrix
|
||||||
// }
|
}
|
||||||
// utilities.transform: Matrix4x4 {
|
utilities.transform: Matrix4x4 {
|
||||||
// matrix: utilsBg.deformMatrix
|
matrix: utilsBg.deformMatrix
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BarLoader {
|
BarLoader {
|
||||||
|
|||||||
@@ -38,55 +38,55 @@ Item {
|
|||||||
onTriggered: Players.active?.positionChanged()
|
onTriggered: Players.active?.positionChanged()
|
||||||
}
|
}
|
||||||
|
|
||||||
// ServiceRef {
|
ServiceRef {
|
||||||
// service: Audio.cava
|
service: Audio.cava
|
||||||
// }
|
}
|
||||||
|
|
||||||
// Shape {
|
Shape {
|
||||||
// id: visualizer
|
id: visualizer
|
||||||
//
|
|
||||||
// readonly property real barW: Math.max(0, (width - gap * (bars - 1)) / bars)
|
readonly property real barW: Math.max(0, (width - gap * (bars - 1)) / bars)
|
||||||
// readonly property int bars: Config.services.visualizerBars
|
readonly property int bars: Config.services.visualizerBars
|
||||||
// property color color: DynamicColors.palette.m3primary
|
property color color: DynamicColors.palette.m3primary
|
||||||
// readonly property real gap: Appearance.spacing.small
|
readonly property real gap: Appearance.spacing.small
|
||||||
//
|
|
||||||
// anchors.fill: layout
|
anchors.fill: layout
|
||||||
// asynchronous: true
|
asynchronous: true
|
||||||
// data: visualizerBars.instances
|
data: visualizerBars.instances
|
||||||
// preferredRendererType: Shape.CurveRenderer
|
preferredRendererType: Shape.CurveRenderer
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// Variants {
|
Variants {
|
||||||
// id: visualizerBars
|
id: visualizerBars
|
||||||
//
|
|
||||||
// model: Array.from({
|
model: Array.from({
|
||||||
// length: Config.services.visualizerBars
|
length: Config.services.visualizerBars
|
||||||
// }, (_, i) => i)
|
}, (_, i) => i)
|
||||||
//
|
|
||||||
// ShapePath {
|
ShapePath {
|
||||||
// id: visualizerBar
|
id: visualizerBar
|
||||||
//
|
|
||||||
// readonly property real magnitude: value * Config.dashboard.sizes.mediaVisualiserSize
|
readonly property real magnitude: value * Config.dashboard.sizes.mediaVisualiserSize
|
||||||
// required property int modelData
|
required property int modelData
|
||||||
// readonly property real value: Math.max(1e-3, Audio.cava.values[modelData])
|
readonly property real value: Math.max(1e-3, Audio.cava.values[modelData])
|
||||||
//
|
|
||||||
// capStyle: Appearance.rounding.scale === 0 ? ShapePath.SquareCap : ShapePath.RoundCap
|
capStyle: Appearance.rounding.scale === 0 ? ShapePath.SquareCap : ShapePath.RoundCap
|
||||||
// startX: (visualizer.barW / 2) + modelData * (visualizer.barW + visualizer.gap)
|
startX: (visualizer.barW / 2) + modelData * (visualizer.barW + visualizer.gap)
|
||||||
// startY: layout.y + layout.height
|
startY: layout.y + layout.height
|
||||||
// strokeColor: visualizer.color
|
strokeColor: visualizer.color
|
||||||
// strokeWidth: visualizer.barW
|
strokeWidth: visualizer.barW
|
||||||
//
|
|
||||||
// Behavior on strokeColor {
|
Behavior on strokeColor {
|
||||||
// CAnim {
|
CAnim {
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// PathLine {
|
PathLine {
|
||||||
// relativeX: 0
|
relativeX: 0
|
||||||
// relativeY: -visualizerBar.magnitude
|
relativeY: -visualizerBar.magnitude
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
Shape {
|
Shape {
|
||||||
preferredRendererType: Shape.CurveRenderer
|
preferredRendererType: Shape.CurveRenderer
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//@ pragma UseQApplication
|
//@ pragma UseQApplication
|
||||||
//@ pragma Env QSG_RENDER_LOOP=threaded
|
//@ pragma Env QSG_RENDER_LOOP=threaded
|
||||||
//@ pragma Env QSG_RHI_BACKEND=vulkan
|
// @ pragma Env QSG_RHI_BACKEND=vulkan
|
||||||
//@ pragma Env QSG_NO_VSYNC=1
|
//@ pragma Env QSG_NO_VSYNC=1
|
||||||
//@ pragma Env QS_NO_RELOAD_POPUP=1
|
//@ pragma Env QS_NO_RELOAD_POPUP=1
|
||||||
//@ pragma Env QT_SCALE_FACTOR_ROUNDING_POLICY=Round
|
//@ pragma Env QT_SCALE_FACTOR_ROUNDING_POLICY=Round
|
||||||
|
|||||||
Reference in New Issue
Block a user