summaryrefslogtreecommitdiff
path: root/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/Settings/MediaPlayerTab.qml
diff options
context:
space:
mode:
authorNippy <nippy@rp1.hu>2026-05-09 13:33:09 +0200
committerNippy <nippy@rp1.hu>2026-05-09 13:33:09 +0200
commita2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5 (patch)
tree1a8769217f84bfe9d6216fafaadaf8cdd876d457 /raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/Settings/MediaPlayerTab.qml
parent34b9c34f982b2596cfa9e368a2d7f74e9a17477c (diff)
downloadRaveOS-PKGBUILD-a2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5.tar.gz
RaveOS-PKGBUILD-a2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5.zip
raveos update
Diffstat (limited to 'raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/Settings/MediaPlayerTab.qml')
-rw-r--r--raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/Settings/MediaPlayerTab.qml119
1 files changed, 0 insertions, 119 deletions
diff --git a/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/Settings/MediaPlayerTab.qml b/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/Settings/MediaPlayerTab.qml
deleted file mode 100644
index a844a86..0000000
--- a/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Modules/Settings/MediaPlayerTab.qml
+++ /dev/null
@@ -1,119 +0,0 @@
-import QtQuick
-import qs.Common
-import qs.Widgets
-import qs.Modules.Settings.Widgets
-
-Item {
- id: root
-
- DankFlickable {
- anchors.fill: parent
- clip: true
- contentHeight: mainColumn.height + Theme.spacingXL
- contentWidth: width
-
- Column {
- id: mainColumn
- topPadding: 4
- width: Math.min(550, parent.width - Theme.spacingL * 2)
- anchors.horizontalCenter: parent.horizontalCenter
- spacing: Theme.spacingXL
-
- SettingsCard {
- width: parent.width
- iconName: "music_note"
- title: I18n.tr("Media Player Settings")
- settingKey: "mediaPlayer"
-
- SettingsToggleRow {
- text: I18n.tr("Wave Progress Bars")
- description: I18n.tr("Use animated wave progress bars for media playback")
- checked: SettingsData.waveProgressEnabled
- onToggled: checked => SettingsData.set("waveProgressEnabled", checked)
- }
-
- SettingsToggleRow {
- text: I18n.tr("Scroll song title")
- description: I18n.tr("Scroll title if it doesn't fit in widget")
- checked: SettingsData.scrollTitleEnabled
- onToggled: checked => SettingsData.set("scrollTitleEnabled", checked)
- }
-
- SettingsToggleRow {
- text: I18n.tr("Audio Visualizer")
- description: I18n.tr("Show cava audio visualizer in media widget")
- checked: SettingsData.audioVisualizerEnabled
- onToggled: checked => SettingsData.set("audioVisualizerEnabled", checked)
- }
-
- SettingsToggleRow {
- text: I18n.tr("Adaptive Media Width")
- description: I18n.tr("Shrink the media widget to fit shorter song titles while still respecting the configured maximum size")
- checked: SettingsData.mediaAdaptiveWidthEnabled
- onToggled: checked => SettingsData.set("mediaAdaptiveWidthEnabled", checked)
- }
-
- SettingsDropdownRow {
- property var scrollOptsInternal: ["volume", "song", "nothing"]
- property var scrollOptsDisplay: [I18n.tr("Change Volume", "media scroll wheel option"), I18n.tr("Change Song", "media scroll wheel option"), I18n.tr("Nothing", "media scroll wheel option")]
-
- text: I18n.tr("Scroll Wheel")
- description: I18n.tr("Scroll wheel behavior on media widget")
- settingKey: "audioScrollMode"
- tags: ["media", "music", "scroll"]
- options: scrollOptsDisplay
- currentValue: {
- const idx = scrollOptsInternal.indexOf(SettingsData.audioScrollMode);
- return idx >= 0 ? scrollOptsDisplay[idx] : scrollOptsDisplay[0];
- }
- onValueChanged: value => {
- const idx = scrollOptsDisplay.indexOf(value);
- if (idx >= 0)
- SettingsData.set("audioScrollMode", scrollOptsInternal[idx]);
- }
- }
-
- Item {
- width: parent.width
- height: audioWheelScrollAmountColumn.height
- visible: SettingsData.audioScrollMode == "volume"
- opacity: visible ? 1 : 0
-
- Column {
- id: audioWheelScrollAmountColumn
- x: Theme.spacingL
- width: 120
- spacing: Theme.spacingS
-
- StyledText {
- text: I18n.tr("Adjust volume per scroll indent")
- font.pixelSize: Theme.fontSizeSmall
- color: Theme.surfaceVariantText
- font.weight: Font.Medium
- horizontalAlignment: Text.AlignLeft
- }
-
- DankTextField {
- width: 100
- height: 28
- placeholderText: "5"
- text: SettingsData.audioWheelScrollAmount
- maximumLength: 2
- font.pixelSize: Theme.fontSizeSmall
- topPadding: Theme.spacingXS
- bottomPadding: Theme.spacingXS
- onEditingFinished: SettingsData.set("audioWheelScrollAmount", parseInt(text, 10))
- }
- }
-
- Behavior on opacity {
- NumberAnimation {
- duration: Theme.mediumDuration
- easing.type: Theme.emphasizedEasing
- }
- }
- }
- }
- }
- }
-}