use dropdown for framerate selector, update variable name, add common
FPSes (144 & 165) to FPS dropdowns
This commit is contained in:
parent
97455a862e
commit
32e6828cc4
4 changed files with 40 additions and 30 deletions
|
|
@ -234,7 +234,7 @@ Singleton {
|
||||||
property bool showMiniplayerCava: false
|
property bool showMiniplayerCava: false
|
||||||
property string visualizerType: "linear"
|
property string visualizerType: "linear"
|
||||||
property int volumeStep: 5
|
property int volumeStep: 5
|
||||||
property int cavaFps: 60
|
property int cavaFrameRate: 60
|
||||||
}
|
}
|
||||||
|
|
||||||
// ui
|
// ui
|
||||||
|
|
|
||||||
|
|
@ -309,37 +309,39 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NComboBox {
|
||||||
text: "Audio Visualizer FPS"
|
label: "Frame Rate"
|
||||||
font.pointSize: Style.fontSizeM * scaling
|
description: "Target frame rate for audio visualizer. (default: 60)"
|
||||||
font.weight: Style.fontWeightBold
|
model: ListModel {
|
||||||
color: Color.mOnSurface
|
ListElement {
|
||||||
}
|
key: "30"
|
||||||
|
name: "30 FPS"
|
||||||
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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
ListElement {
|
||||||
NText {
|
key: "60"
|
||||||
text: Settings.data.audio.cavaFps + " FPS"
|
name: "60 FPS"
|
||||||
Layout.alignment: Qt.AlignVCenter
|
}
|
||||||
Layout.leftMargin: Style.marginS * scaling
|
ListElement {
|
||||||
color: Color.mOnSurface
|
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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -121,6 +121,14 @@ ColumnLayout {
|
||||||
key: "120"
|
key: "120"
|
||||||
name: "120 FPS"
|
name: "120 FPS"
|
||||||
}
|
}
|
||||||
|
ListElement {
|
||||||
|
key: "144"
|
||||||
|
name: "144 FPS"
|
||||||
|
}
|
||||||
|
ListElement {
|
||||||
|
key: "165"
|
||||||
|
name: "165 FPS"
|
||||||
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
key: "240"
|
key: "240"
|
||||||
name: "240 FPS"
|
name: "240 FPS"
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ Singleton {
|
||||||
property var config: ({
|
property var config: ({
|
||||||
"general": {
|
"general": {
|
||||||
"bars": barsCount,
|
"bars": barsCount,
|
||||||
"framerate": Settings.data.audio.cavaFps,
|
"framerate": Settings.data.audio.cavaFrameRate,
|
||||||
"autosens": 1,
|
"autosens": 1,
|
||||||
"sensitivity": 100,
|
"sensitivity": 100,
|
||||||
"lower_cutoff_freq": 50,
|
"lower_cutoff_freq": 50,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue