Realigned Icons

+ Moved Icons to the top. You can now see all options.
+ All SVGs now have a background (GO! was missing one).
+ All SVGs now have the same background (General had one of its own)
This commit is contained in:
Matt Lowe 2015-01-11 02:24:28 +01:00
parent 7476667b69
commit 0445e570d7
4 changed files with 282 additions and 124 deletions

View file

@ -665,11 +665,11 @@ DlgSettings::DlgSettings(QWidget *parent)
contentsWidget = new QListWidget;
contentsWidget->setViewMode(QListView::IconMode);
contentsWidget->setIconSize(QSize(96, 84));
contentsWidget->setIconSize(QSize(58, 50));
contentsWidget->setMovement(QListView::Static);
contentsWidget->setMinimumWidth(130);
contentsWidget->setMaximumWidth(150);
contentsWidget->setSpacing(12);
contentsWidget->setMinimumHeight(85);
contentsWidget->setMaximumHeight(85);
contentsWidget->setSpacing(5);
pagesWidget = new QStackedWidget;
pagesWidget->addWidget(new GeneralSettingsPage);
@ -681,15 +681,15 @@ DlgSettings::DlgSettings(QWidget *parent)
createIcons();
contentsWidget->setCurrentRow(0);
QHBoxLayout *hboxLayout = new QHBoxLayout;
hboxLayout->addWidget(contentsWidget);
hboxLayout->addWidget(pagesWidget);
QVBoxLayout *vboxLayout = new QVBoxLayout;
vboxLayout->addWidget(contentsWidget);
vboxLayout->addWidget(pagesWidget);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok);
connect(buttonBox, SIGNAL(accepted()), this, SLOT(close()));
QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout->addLayout(hboxLayout);
mainLayout->addLayout(vboxLayout);
mainLayout->addSpacing(12);
mainLayout->addWidget(buttonBox);
setLayout(mainLayout);