diff options
author | JoshDW19 <joshms@pcbsd.org> | 2016-04-26 14:34:08 -0400 |
---|---|---|
committer | JoshDW19 <joshms@pcbsd.org> | 2016-04-26 14:34:08 -0400 |
commit | e9676283b5f87b2ca4184983af4a897d309e96b2 (patch) | |
tree | 574174db6528eb771cc73c94683c837758d37db5 /src-qt5/core-utils/lumina-config | |
parent | Change the default size so that there is no weird window resizing. (diff) | |
download | lumina-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')
-rw-r--r-- | src-qt5/core-utils/lumina-config/mainUI.cpp | 8 | ||||
-rw-r--r-- | 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 @@ <enum>QFrame::StyledPanel</enum> </property> <property name="currentIndex"> - <number>3</number> + <number>4</number> </property> <widget class="QWidget" name="page_desktop"> <layout class="QVBoxLayout" name="verticalLayout_3"> @@ -823,7 +823,7 @@ <item> <widget class="QTabWidget" name="tabWidget_apps"> <property name="currentIndex"> - <number>2</number> + <number>0</number> </property> <widget class="QWidget" name="tab_auto"> <attribute name="title"> @@ -1163,7 +1163,7 @@ <string/> </property> <property name="currentIndex"> - <number>0</number> + <number>2</number> </property> <widget class="QWidget" name="tab"> <attribute name="title"> @@ -1568,8 +1568,8 @@ <rect> <x>0</x> <y>0</y> - <width>138</width> - <height>28</height> + <width>573</width> + <height>97</height> </rect> </property> <property name="sizePolicy"> @@ -1683,6 +1683,12 @@ </layout> </widget> <widget class="QToolBar" name="toolBar"> + <property name="minimumSize"> + <size> + <width>120</width> + <height>0</height> + </size> + </property> <property name="contextMenuPolicy"> <enum>Qt::CustomContextMenu</enum> </property> @@ -1717,6 +1723,9 @@ <property name="text"> <string>Appearance</string> </property> + <property name="iconText"> + <string> Appearance </string> + </property> <property name="toolTip"> <string>Desktop Appearance</string> </property> @@ -1726,7 +1735,10 @@ <bool>true</bool> </property> <property name="text"> - <string>Interface</string> + <string> Interface </string> + </property> + <property name="iconText"> + <string> Interface </string> </property> <property name="toolTip"> <string>Interface Configuration</string> @@ -1737,7 +1749,10 @@ <bool>true</bool> </property> <property name="text"> - <string>Session</string> + <string> Session </string> + </property> + <property name="iconText"> + <string> Session </string> </property> <property name="toolTip"> <string>Session Options</string> @@ -1750,6 +1765,9 @@ <property name="text"> <string>Applications</string> </property> + <property name="iconText"> + <string> Applications </string> + </property> <property name="toolTip"> <string>Application Management</string> </property> @@ -1761,6 +1779,9 @@ <property name="text"> <string>Shortcuts</string> </property> + <property name="iconText"> + <string> Shortcuts </string> + </property> <property name="toolTip"> <string>Keyboard Shortcuts</string> </property> |