GUI: fix missing checkboxes in dark theme
This commit is contained in:
parent
de237b816f
commit
d0eaef34e3
|
@ -1,5 +1,6 @@
|
|||
/* Based on: https://github.com/radareorg/cutter/blob/48b84bfa5c7fd7c7aa8595b8f742c9d8081d09fc/src/themes/qdarkstyle/style.qss */
|
||||
/* Modified for x64dbg by JustMagic: https://github.com/JustasMasiulis */
|
||||
/* Use 'url(./xxxx)' for resources, it will be replaced with the right path at runtime */
|
||||
|
||||
ShortcutEdit[error="true"] {
|
||||
color: #EF5350;
|
||||
|
|
|
@ -478,12 +478,8 @@ void MainWindow::loadSelectedStyle(bool reloadStyleCss)
|
|||
QTextStream in(&f);
|
||||
auto style = in.readAll();
|
||||
f.close();
|
||||
auto nameIdx = stylePath.lastIndexOf('/');
|
||||
auto dir = stylePath.mid(nameIdx - 1);
|
||||
auto current = QDir::current().absolutePath();
|
||||
QDir::setCurrent(dir);
|
||||
style = style.replace("url(./", QString("url(../themes/%2/").arg(selectedTheme));
|
||||
qApp->setStyleSheet(style);
|
||||
QDir::setCurrent(current);
|
||||
}
|
||||
if(!reloadStyleCss && !styleSettings.isEmpty())
|
||||
importSettings(styleSettings, { "Colors", "Fonts" });
|
||||
|
|
Loading…
Reference in New Issue