mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 05:45:27 +00:00
parent
80e4269ca3
commit
8fd35f2109
2
rizin
2
rizin
@ -1 +1 @@
|
|||||||
Subproject commit 004edb899fe0a841ce4226c6b57c198c0baff402
|
Subproject commit 709a1814d8302fd3fd905fd60d4a3ee4510ad7c3
|
@ -131,9 +131,10 @@ QJsonDocument ColorThemeWorker::getTheme(const QString &themeName) const
|
|||||||
QString curr = Config()->getColorTheme();
|
QString curr = Config()->getColorTheme();
|
||||||
|
|
||||||
if (themeName != curr) {
|
if (themeName != curr) {
|
||||||
Core()->cmdRaw(QString("eco %1").arg(themeName));
|
RzCoreLocked core(Core());
|
||||||
|
rz_core_load_theme(core, themeName.toUtf8().constData());
|
||||||
theme = Core()->cmdj("ecj").object().toVariantMap();
|
theme = Core()->cmdj("ecj").object().toVariantMap();
|
||||||
Core()->cmdRaw(QString("eco %1").arg(curr));
|
rz_core_load_theme(core, curr.toUtf8().constData());
|
||||||
} else {
|
} else {
|
||||||
theme = Core()->cmdj("ecj").object().toVariantMap();
|
theme = Core()->cmdj("ecj").object().toVariantMap();
|
||||||
}
|
}
|
||||||
|
@ -522,7 +522,7 @@ void Configuration::setColorTheme(const QString &theme)
|
|||||||
Core()->cmdRaw("ecd");
|
Core()->cmdRaw("ecd");
|
||||||
s.setValue("theme", "default");
|
s.setValue("theme", "default");
|
||||||
} else {
|
} else {
|
||||||
Core()->cmdRaw(QStringLiteral("eco %1").arg(theme));
|
rz_core_load_theme(Core()->core(), theme.toUtf8().constData());
|
||||||
s.setValue("theme", theme);
|
s.setValue("theme", theme);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user