From e9676283b5f87b2ca4184983af4a897d309e96b2 Mon Sep 17 00:00:00 2001 From: JoshDW19 Date: Tue, 26 Apr 2016 14:34:08 -0400 Subject: Make the menu in the settings widget more visually appealing. Balance space / make all buttons the same size. --- src-qt5/core-utils/lumina-config/mainUI.cpp | 8 ++++++- src-qt5/core-utils/lumina-config/mainUI.ui | 35 +++++++++++++++++++++++------ 2 files changed, 35 insertions(+), 8 deletions(-) diff --git a/src-qt5/core-utils/lumina-config/mainUI.cpp b/src-qt5/core-utils/lumina-config/mainUI.cpp index 9667b689..4bf067c5 100644 --- a/src-qt5/core-utils/lumina-config/mainUI.cpp +++ b/src-qt5/core-utils/lumina-config/mainUI.cpp @@ -35,7 +35,13 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI()){ ui->spin_screen->setValue(desktop->screenNumber(this->mapToGlobal(this->geometry().center()))+1); //have the current screen auto-selected //qDebug() << "Number of Screens:" << desktop->screenCount(); sysApps = LXDG::sortDesktopNames( LXDG::systemDesktopFiles() ); - + //Add a couple spacers to center the toolbar items + QWidget *tmp = new QWidget(this); + tmp->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); + ui->toolBar->insertWidget(ui->actionDesktop, tmp); + tmp = new QWidget(this); + tmp->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); + ui->toolBar->addWidget(tmp); //Now finish setting up the UI setupIcons(); setupMenus(); diff --git a/src-qt5/core-utils/lumina-config/mainUI.ui b/src-qt5/core-utils/lumina-config/mainUI.ui index 132643d7..9edff2e7 100644 --- a/src-qt5/core-utils/lumina-config/mainUI.ui +++ b/src-qt5/core-utils/lumina-config/mainUI.ui @@ -109,7 +109,7 @@ QFrame::StyledPanel - 3 + 4 @@ -823,7 +823,7 @@ - 2 + 0 @@ -1163,7 +1163,7 @@ - 0 + 2 @@ -1568,8 +1568,8 @@ 0 0 - 138 - 28 + 573 + 97 @@ -1683,6 +1683,12 @@ + + + 120 + 0 + + Qt::CustomContextMenu @@ -1717,6 +1723,9 @@ Appearance + + Appearance + Desktop Appearance @@ -1726,7 +1735,10 @@ true - Interface + Interface + + + Interface Interface Configuration @@ -1737,7 +1749,10 @@ true - Session + Session + + + Session Session Options @@ -1750,6 +1765,9 @@ Applications + + Applications + Application Management @@ -1761,6 +1779,9 @@ Shortcuts + + Shortcuts + Keyboard Shortcuts -- cgit