mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 01:05:10 +03:00
Remove duplicated code
This commit is contained in:
parent
034130555e
commit
fad6211789
16 changed files with 42 additions and 262 deletions
|
@ -11,17 +11,7 @@ customizeSplashDialog::customizeSplashDialog(QWidget *parent) :
|
|||
QDialog(parent),
|
||||
ui(new Ui::customizeSplashDialog) {
|
||||
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;
|
||||
}
|
||||
QString Theme=getTheme();
|
||||
QIcon LibraryIcon;
|
||||
populate_icon(&LibraryIcon,Theme,"library.png");
|
||||
ui->libraryButton->setIcon(LibraryIcon);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue