forked from Shinonome/dots-hyprland
fix config and icons
This commit is contained in:
@@ -374,7 +374,10 @@ Singleton {
|
|||||||
|
|
||||||
property JsonObject resources: JsonObject {
|
property JsonObject resources: JsonObject {
|
||||||
property int updateInterval: 3000
|
property int updateInterval: 3000
|
||||||
property int musicRecognitionTimeout: 16
|
}
|
||||||
|
|
||||||
|
property JsonObject musicRecognition: JsonObject {
|
||||||
|
property int timeout: 16
|
||||||
}
|
}
|
||||||
|
|
||||||
property JsonObject search: JsonObject {
|
property JsonObject search: JsonObject {
|
||||||
|
|||||||
@@ -54,15 +54,22 @@ ContentPage {
|
|||||||
Config.options.resources.updateInterval = value;
|
Config.options.resources.updateInterval = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
ContentSection {
|
||||||
|
icon: "music_cast"
|
||||||
|
title: Translation.tr("Music Recognition")
|
||||||
|
|
||||||
ConfigSpinBox {
|
ConfigSpinBox {
|
||||||
icon: "timer_off"
|
icon: "timer_off"
|
||||||
text: Translation.tr("Music recognition timeout (s)")
|
text: Translation.tr("Music recognition timeout (s)")
|
||||||
value: Config.options.resources.musicRecognitionTimeout
|
value: Config.options.musicRecognition.timeout
|
||||||
from: 2
|
from: 2
|
||||||
to: 100
|
to: 100
|
||||||
stepSize: 2
|
stepSize: 2
|
||||||
onValueChanged: {
|
onValueChanged: {
|
||||||
Config.options.resources.musicRecognitionTimeout = value;
|
Config.options.musicRecognition.timeout = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ AndroidQuickToggleButton {
|
|||||||
name: Translation.tr("EasyEffects")
|
name: Translation.tr("EasyEffects")
|
||||||
|
|
||||||
toggled: EasyEffects.active
|
toggled: EasyEffects.active
|
||||||
buttonIcon: "instant_mix"
|
buttonIcon: "graphic_eq"
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
EasyEffects.fetchActiveState()
|
EasyEffects.fetchActiveState()
|
||||||
|
|||||||
+2
-2
@@ -11,14 +11,14 @@ AndroidQuickToggleButton {
|
|||||||
id: root
|
id: root
|
||||||
|
|
||||||
property int timeoutInterval: 5
|
property int timeoutInterval: 5
|
||||||
property int timeoutDuration: Config.options.resources.musicRecognitionTimeout
|
property int timeoutDuration: Config.options.musicRecognition.timeout
|
||||||
|
|
||||||
property string monitorSource: "monitor" // "monitor" (system sound) , "input" (microphone)
|
property string monitorSource: "monitor" // "monitor" (system sound) , "input" (microphone)
|
||||||
|
|
||||||
name: Translation.tr("Identify Music")
|
name: Translation.tr("Identify Music")
|
||||||
statusText: toggled ? Translation.tr("Listening...") : monitorSource === "monitor" ? Translation.tr("System sound") : Translation.tr("Microphone")
|
statusText: toggled ? Translation.tr("Listening...") : monitorSource === "monitor" ? Translation.tr("System sound") : Translation.tr("Microphone")
|
||||||
toggled: false
|
toggled: false
|
||||||
buttonIcon: toggled ? "cadence" : "graphic_eq"
|
buttonIcon: toggled ? "music_cast" : "music_note"
|
||||||
|
|
||||||
property var recognizedTrack: ({ title:"", subtitle:"", url:""})
|
property var recognizedTrack: ({ title:"", subtitle:"", url:""})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user