This commit is contained in:
Juergen Spitzmueller 2023-10-15 11:02:35 +02:00
parent 8c2b26c6aa
commit cfcc57bd89
2 changed files with 2 additions and 10 deletions

View File

@ -1270,7 +1270,7 @@ docstring Application::mathIcon(docstring const & c)
void Application::applyPrefs()
{
if (lyxrc.ui_style != system_lyxrc.ui_style)
if (lyxrc.ui_style != "default")
lyx::frontend::GuiApplication::setStyle(toqstr(lyxrc.ui_style));
}

View File

@ -2519,17 +2519,9 @@ PrefUserInterface::PrefUserInterface(GuiPreferences * form)
iconSetCO->addItem(qt_("Classic"), "classic");
iconSetCO->addItem(qt_("Oxygen"), "oxygen");
QString uistyletr = (system_lyxrc.ui_style == "default")
? qt_("Default")
: toqstr(system_lyxrc.ui_style);
uiStyleCO->addItem(uistyletr, toqstr(system_lyxrc.ui_style));
uiStyleCO->addItem(qt_("Default"), toqstr("default"));
for (auto const & style : QStyleFactory::keys())
{
uistyletr = (style == "default")
? qt_("Default")
: style;
uiStyleCO->addItem(style, style.toLower());
}
if (guiApp->platformName() != "xcb"
&& !guiApp->platformName().contains("wayland"))