From 33e8bf61a676676a6cb667869da16e100ee22634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Br=C3=A6strup=20Sayoc?= Date: Wed, 4 Sep 2024 15:32:08 +0200 Subject: [PATCH] [Gui] Add style, theme and QtStyle to clipboard about info Fixes #16272 --- src/Gui/Splashscreen.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Gui/Splashscreen.cpp b/src/Gui/Splashscreen.cpp index 8cc9ad04e2..28ebd96d39 100644 --- a/src/Gui/Splashscreen.cpp +++ b/src/Gui/Splashscreen.cpp @@ -881,6 +881,15 @@ void AboutDialog::copyToClipboard() } str << "\n"; + std::string styleSheet = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/MainWindow")->GetASCII("StyleSheet"); + std::string theme = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/MainWindow")->GetASCII("Theme"); + std::string style = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/MainWindow")->GetASCII("QtStyle"); + + str << "Stylesheet/Theme/QtStyle: " + << QString::fromStdString(styleSheet) << "/" + << QString::fromStdString(theme) << "/" + << QString::fromStdString(style) << "\n"; + // Add installed module information: auto modDir = fs::path(App::Application::getUserAppDataDir()) / "Mod"; bool firstMod = true;