aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils/lumina-config/mainUI.cpp
diff options
context:
space:
mode:
authorJoshDW19 <joshms@pcbsd.org>2016-04-26 14:34:08 -0400
committerJoshDW19 <joshms@pcbsd.org>2016-04-26 14:34:08 -0400
commite9676283b5f87b2ca4184983af4a897d309e96b2 (patch)
tree574174db6528eb771cc73c94683c837758d37db5 /src-qt5/core-utils/lumina-config/mainUI.cpp
parentChange the default size so that there is no weird window resizing. (diff)
downloadlumina-e9676283b5f87b2ca4184983af4a897d309e96b2.tar.gz
lumina-e9676283b5f87b2ca4184983af4a897d309e96b2.tar.bz2
lumina-e9676283b5f87b2ca4184983af4a897d309e96b2.zip
Make the menu in the settings widget more visually appealing. Balance space / make all buttons the same size.
Diffstat (limited to 'src-qt5/core-utils/lumina-config/mainUI.cpp')
-rw-r--r--src-qt5/core-utils/lumina-config/mainUI.cpp8
1 files changed, 7 insertions, 1 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();
bgstack15