mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
fix config and icons
This commit is contained in:
@@ -374,7 +374,10 @@ Singleton {
|
||||
|
||||
property JsonObject resources: JsonObject {
|
||||
property int updateInterval: 3000
|
||||
property int musicRecognitionTimeout: 16
|
||||
}
|
||||
|
||||
property JsonObject musicRecognition: JsonObject {
|
||||
property int timeout: 16
|
||||
}
|
||||
|
||||
property JsonObject search: JsonObject {
|
||||
|
||||
@@ -54,15 +54,22 @@ ContentPage {
|
||||
Config.options.resources.updateInterval = value;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ContentSection {
|
||||
icon: "music_cast"
|
||||
title: Translation.tr("Music Recognition")
|
||||
|
||||
ConfigSpinBox {
|
||||
icon: "timer_off"
|
||||
text: Translation.tr("Music recognition timeout (s)")
|
||||
value: Config.options.resources.musicRecognitionTimeout
|
||||
value: Config.options.musicRecognition.timeout
|
||||
from: 2
|
||||
to: 100
|
||||
stepSize: 2
|
||||
onValueChanged: {
|
||||
Config.options.resources.musicRecognitionTimeout = value;
|
||||
Config.options.musicRecognition.timeout = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ AndroidQuickToggleButton {
|
||||
name: Translation.tr("EasyEffects")
|
||||
|
||||
toggled: EasyEffects.active
|
||||
buttonIcon: "instant_mix"
|
||||
buttonIcon: "graphic_eq"
|
||||
|
||||
Component.onCompleted: {
|
||||
EasyEffects.fetchActiveState()
|
||||
|
||||
+2
-2
@@ -11,14 +11,14 @@ AndroidQuickToggleButton {
|
||||
id: root
|
||||
|
||||
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)
|
||||
|
||||
name: Translation.tr("Identify Music")
|
||||
statusText: toggled ? Translation.tr("Listening...") : monitorSource === "monitor" ? Translation.tr("System sound") : Translation.tr("Microphone")
|
||||
toggled: false
|
||||
buttonIcon: toggled ? "cadence" : "graphic_eq"
|
||||
buttonIcon: toggled ? "music_cast" : "music_note"
|
||||
|
||||
property var recognizedTrack: ({ title:"", subtitle:"", url:""})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user