[Gui] Add style, theme and QtStyle to clipboard about info

Fixes #16272
This commit is contained in:
Benjamin Bræstrup Sayoc
2024-09-04 15:32:08 +02:00
parent e7f6aa1852
commit 33e8bf61a6

View File

@@ -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;