fix: use system theme to prevent color mismatch

The problem stems from using something like QtQuick.Controls.iOS in
certain views, which will follow the operating system level control.
Thus, if our app theme is dark and the human's ios system theme is
light, the text on a iOS.Menu will be white from our palette on top of a
light mode background.
This commit is contained in:
talksik
2025-04-16 12:27:31 -07:00
parent e73ba9b70a
commit 4de7101200
2 changed files with 1 additions and 15 deletions
+1 -9
View File
@@ -22,13 +22,5 @@ Item {
property int radius: 5
property bool darkTheme: false
Settings {
property alias darkTheme: item.darkTheme
}
function toggleTheme() {
darkTheme = !darkTheme;
}
property bool darkTheme: Application.styleHints.colorScheme === Qt.Dark
}