mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 06:01:12 +00:00
@@ -744,6 +744,12 @@ int main(int argc, char *argv[])
|
|||||||
if (!qEnvironmentVariableIsSet("QT_QUICK_CONTROLS_MATERIAL_VARIANT")) {
|
if (!qEnvironmentVariableIsSet("QT_QUICK_CONTROLS_MATERIAL_VARIANT")) {
|
||||||
qputenv("QT_QUICK_CONTROLS_MATERIAL_VARIANT", "Dense");
|
qputenv("QT_QUICK_CONTROLS_MATERIAL_VARIANT", "Dense");
|
||||||
}
|
}
|
||||||
|
if (!qEnvironmentVariableIsSet("QT_QUICK_CONTROLS_MATERIAL_PRIMARY")) {
|
||||||
|
// Qt 6.9 began to use a different shade of Material.Indigo when we use a dark theme
|
||||||
|
// (which is all the time). The new color looks washed out, so manually specify the
|
||||||
|
// old primary color unless the user overrides it themselves.
|
||||||
|
qputenv("QT_QUICK_CONTROLS_MATERIAL_PRIMARY", "#3F51B5");
|
||||||
|
}
|
||||||
|
|
||||||
QQmlApplicationEngine engine;
|
QQmlApplicationEngine engine;
|
||||||
QString initialView;
|
QString initialView;
|
||||||
|
|||||||
Reference in New Issue
Block a user