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:
+21
-3
@@ -133,6 +133,24 @@ MainView {
|
||||
}
|
||||
}
|
||||
|
||||
// Timer zum regelmäßigen Prüfen der Lautstärke-Einstellungen
|
||||
Timer {
|
||||
id: volumeCheckTimer
|
||||
interval: 200 // Prüfen alle 200ms
|
||||
running: true
|
||||
repeat: true
|
||||
onTriggered: {
|
||||
var musicVol = py.call_sync("fortunecookie.get_music_volume", []);
|
||||
var crackVol = py.call_sync("fortunecookie.get_crack_volume", []);
|
||||
if (musicVol !== root.musicVolume) {
|
||||
root.musicVolume = musicVol;
|
||||
}
|
||||
if (crackVol !== root.crackVolume) {
|
||||
root.crackVolume = crackVol;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Image {
|
||||
id: cookieImage
|
||||
anchors.centerIn: parent
|
||||
@@ -225,10 +243,10 @@ MainView {
|
||||
bottom: parent.bottom
|
||||
margins: units.gu(2)
|
||||
}
|
||||
width: units.gu(14)
|
||||
height: units.gu(14)
|
||||
width: units.gu(10)
|
||||
height: units.gu(10)
|
||||
text: musicPlaying ? "\uD83D\uDD0A" : "\uD83D\uDD07"
|
||||
fontSize: "xx-large"
|
||||
fontSize: "xxx-large"
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
color: theme.palette.normalText
|
||||
|
||||
Reference in New Issue
Block a user