Further work in themes for the ui and some further bug fix.
This commit is contained in:
@@ -68,8 +68,22 @@ MdiChild::MdiChild():
|
||||
isUntitled(true),
|
||||
fileChanged(false)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
QSettings settings("companion", "companion");
|
||||
int theme_set=settings.value("theme", 1).toInt();
|
||||
QString Theme;
|
||||
switch(theme_set) {
|
||||
case 0:
|
||||
Theme="classic";
|
||||
break;
|
||||
default:
|
||||
Theme="monochrome";
|
||||
break;
|
||||
}
|
||||
QIcon SimulateIcon;
|
||||
populate_icon(&SimulateIcon,Theme,"simulate.png");
|
||||
|
||||
ui->setupUi(this);
|
||||
ui->SimulateTxButton->setIcon(SimulateIcon);
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
eepromInterfaceChanged();
|
||||
|
||||
Reference in New Issue
Block a user