diff --git a/Commons/Settings.qml b/Commons/Settings.qml index 08cebaf..df6692f 100644 --- a/Commons/Settings.qml +++ b/Commons/Settings.qml @@ -234,7 +234,7 @@ Singleton { property bool showMiniplayerCava: false property string visualizerType: "linear" property int volumeStep: 5 - property int cavaFps: 60 + property int cavaFrameRate: 60 } // ui diff --git a/Modules/SettingsPanel/Tabs/AudioTab.qml b/Modules/SettingsPanel/Tabs/AudioTab.qml index 9f992da..2e57df5 100644 --- a/Modules/SettingsPanel/Tabs/AudioTab.qml +++ b/Modules/SettingsPanel/Tabs/AudioTab.qml @@ -309,37 +309,39 @@ ColumnLayout { } } - NText { - text: "Audio Visualizer FPS" - font.pointSize: Style.fontSizeM * scaling - font.weight: Style.fontWeightBold - color: Color.mOnSurface - } - - ColumnLayout { - spacing: Style.marginS * scaling - Layout.fillWidth: true - Layout.topMargin: Style.marginM * scaling - - RowLayout { - NSlider { - Layout.fillWidth: true - from: 0 - to: 360 - value: Settings.data.audio.cavaFps - stepSize: 1 - onMoved: { - Settings.data.audio.cavaFps = value - } + NComboBox { + label: "Frame Rate" + description: "Target frame rate for audio visualizer. (default: 60)" + model: ListModel { + ListElement { + key: "30" + name: "30 FPS" } - - NText { - text: Settings.data.audio.cavaFps + " FPS" - Layout.alignment: Qt.AlignVCenter - Layout.leftMargin: Style.marginS * scaling - color: Color.mOnSurface + ListElement { + key: "60" + name: "60 FPS" + } + ListElement { + key: "120" + name: "120 FPS" + } + ListElement { + key: "144" + name: "144 FPS" + } + ListElement { + key: "165" + name: "165 FPS" + } + ListElement { + key: "240" + name: "240 FPS" } } + currentKey: Settings.data.audio.cavaFrameRate + onSelected: key => { + Settings.data.audio.cavaFrameRate = key + } } } } diff --git a/Modules/SettingsPanel/Tabs/ScreenRecorderTab.qml b/Modules/SettingsPanel/Tabs/ScreenRecorderTab.qml index a02b3a3..6d23795 100644 --- a/Modules/SettingsPanel/Tabs/ScreenRecorderTab.qml +++ b/Modules/SettingsPanel/Tabs/ScreenRecorderTab.qml @@ -121,6 +121,14 @@ ColumnLayout { key: "120" name: "120 FPS" } + ListElement { + key: "144" + name: "144 FPS" + } + ListElement { + key: "165" + name: "165 FPS" + } ListElement { key: "240" name: "240 FPS" diff --git a/Services/CavaService.qml b/Services/CavaService.qml index c8d6f05..cb7b603 100644 --- a/Services/CavaService.qml +++ b/Services/CavaService.qml @@ -14,7 +14,7 @@ Singleton { property var config: ({ "general": { "bars": barsCount, - "framerate": Settings.data.audio.cavaFps, + "framerate": Settings.data.audio.cavaFrameRate, "autosens": 1, "sensitivity": 100, "lower_cutoff_freq": 50,