fix: Musik-Button Icon vergrößert + Lautstärke-Timer + Listenwechsel sofort aktiv
- Musik-Button: 10GU mit fontSize: xxx-large (Icon vergrößert) - Slider: showValue: false (Popup-Zahl 0/1 entfernt, Prozent-Anzeige bleibt) - Listenwechsel: open_fortune() lädt aktuelle Liste neu - Lautstärke: Timer (200ms) prüft Einstellungen und aktualisiert MediaPlayer - Settings: root.reloadFortune() entfernt (funktioniert nicht zwischen Komponenten) Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
+4
-3
@@ -90,7 +90,6 @@ Page {
|
||||
var newList = newListFull.split(" - ")[0];
|
||||
py.call("fortunecookie.set_fortune_list", [newList], function() {
|
||||
console.log("Spruchliste gewaehlt: " + newList);
|
||||
root.reloadFortune();
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -116,10 +115,11 @@ Page {
|
||||
maximumValue: 1.0
|
||||
stepSize: 0.1
|
||||
value: 0.5
|
||||
showValue: false
|
||||
|
||||
onValueChanged: {
|
||||
var volume = musicVolumeSlider.value;
|
||||
root.setMusicVolume(volume);
|
||||
py.call("fortunecookie.set_music_volume", [volume]);
|
||||
musicVolumeLabel.text = Math.round(volume * 100) + "%";
|
||||
}
|
||||
}
|
||||
@@ -154,10 +154,11 @@ Page {
|
||||
maximumValue: 1.0
|
||||
stepSize: 0.1
|
||||
value: 1.0
|
||||
showValue: false
|
||||
|
||||
onValueChanged: {
|
||||
var volume = crackVolumeSlider.value;
|
||||
root.setCrackVolume(volume);
|
||||
py.call("fortunecookie.set_crack_volume", [volume]);
|
||||
crackVolumeLabel.text = Math.round(volume * 100) + "%";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user