mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-20 13:46:06 +00:00
Fix def. Cutter specific Colors for Custom Themes (#1606)
This commit is contained in:
parent
69748d064c
commit
e5370d171d
@ -178,8 +178,13 @@ QJsonDocument ColorThemeWorker::getTheme(const QString& themeName) const
|
||||
theme[it.key()] = QJsonArray({r, g, b, a});
|
||||
}
|
||||
|
||||
ColorFlags colorFlags = ColorFlags::DarkFlag;
|
||||
if (Configuration::relevantThemes.contains(themeName)) {
|
||||
colorFlags = Configuration::relevantThemes[themeName];
|
||||
}
|
||||
|
||||
for (auto& it : cutterSpecificOptions) {
|
||||
Configuration::cutterOptionColors[it][Configuration::relevantThemes[themeName]].getRgb(&r, &g, &b, &a);
|
||||
Configuration::cutterOptionColors[it][colorFlags].getRgb(&r, &g, &b, &a);
|
||||
theme.insert(it, QJsonArray{r, g, b, a});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user