diff --git a/Commons/Settings.qml b/Commons/Settings.qml index bc5d6c4..a65e6bd 100644 --- a/Commons/Settings.qml +++ b/Commons/Settings.qml @@ -213,6 +213,8 @@ Singleton { property JsonObject audio audio: JsonObject { + property bool showMiniplayerAlbumArt: false + property bool showMiniplayerAlbumArt: false property string visualizerType: "linear" } diff --git a/Modules/SettingsPanel/Tabs/AudioTab.qml b/Modules/SettingsPanel/Tabs/AudioTab.qml index 98fba12..4a86aec 100644 --- a/Modules/SettingsPanel/Tabs/AudioTab.qml +++ b/Modules/SettingsPanel/Tabs/AudioTab.qml @@ -198,6 +198,47 @@ ColumnLayout { } } } + + // Divider + NDivider { + Layout.fillWidth: true + Layout.topMargin: Style.marginL * scaling + Layout.bottomMargin: Style.marginM * scaling + } + + // AudioService Visualizer Category + ColumnLayout { + spacing: Style.marginS * scaling + Layout.fillWidth: true + + NText { + text: "Bar Miniplayer" + font.pointSize: Style.fontSizeXXL * scaling + font.weight: Style.fontWeightBold + color: Color.mOnSurface + Layout.bottomMargin: Style.marginS * scaling + } + + // Miniplayer section + NToggle { + label: "Show Album Art In Miniplayer" + description: "Show the album art of the currently playing song next to the title." + checked: Settings.data.audio.showMiniplayerAlbumArt + onToggled: checked => { + Settings.data.audio.showMiniplayerAlbumArt = checked + } + } + + NToggle { + label: "Show Audio Visualizer In Miniplayer" + description: "Shows an audio visualizer in the background of the miniplayer." + checked: Settings.data.audio.showMiniplayerCava + onToggled: checked => { + Settings.data.audio.showMiniplayerCava = checked + } + } + } + } // Divider NDivider {