mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Simplify
This commit is contained in:
parent
8c2b26c6aa
commit
cfcc57bd89
@ -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));
|
||||
}
|
||||
|
||||
|
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user