diff options
author | Jocelyn Turcotte <jturcotte@woboq.com> | 2015-08-28 16:51:11 +0300 |
---|---|---|
committer | Jocelyn Turcotte <jturcotte@woboq.com> | 2015-08-28 16:51:11 +0300 |
commit | cb1bcdc8e0823723a0c2da692cbce1e64a6b3bff (patch) | |
tree | ed651f6d285fd956d5470381279d53406be4a0d8 /src/gui/accountsettings.ui | |
parent | f38deb44fb80bf4cef63ced38a9c9db1c2546b89 (diff) |
Tweak the settings UI
- Move the cancel and apply buttons side by side
- Hide the notification label when empty
- Clamp elements at the top together a bit
Diffstat (limited to 'src/gui/accountsettings.ui')
-rw-r--r-- | src/gui/accountsettings.ui | 160 |
1 files changed, 92 insertions, 68 deletions
diff --git a/src/gui/accountsettings.ui b/src/gui/accountsettings.ui index a1ce6de73..c3921f1ff 100644 --- a/src/gui/accountsettings.ui +++ b/src/gui/accountsettings.ui @@ -15,60 +15,6 @@ </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> - <widget class="QWidget" name="accountStatus" native="true"> - <layout class="QHBoxLayout" name="horizontalLayout"> - <item> - <widget class="SslButton" name="sslButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string/> - </property> - </widget> - </item> - <item> - <widget class="QLabel" name="connectLabel"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Connected with <server> as <user></string> - </property> - <property name="wordWrap"> - <bool>true</bool> - </property> - <property name="openExternalLinks"> - <bool>true</bool> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="deleteButton"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip"> - <string>Remove the account configuration from the client</string> - </property> - <property name="text"> - <string>Delete</string> - </property> - </widget> - </item> - </layout> - </widget> - </item> - <item> <widget class="QGroupBox" name="storageGroupBox"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> @@ -76,10 +22,94 @@ <verstretch>0</verstretch> </sizepolicy> </property> + <property name="autoFillBackground"> + <bool>false</bool> + </property> <property name="title"> <string/> </property> + <property name="flat"> + <bool>true</bool> + </property> <layout class="QVBoxLayout" name="verticalLayout_2"> + <property name="leftMargin"> + <number>0</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <widget class="QWidget" name="accountStatus" native="true"> + <layout class="QHBoxLayout" name="horizontalLayout"> + <property name="leftMargin"> + <number>0</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <widget class="SslButton" name="sslButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="connectLabel"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Connected with <server> as <user></string> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + <property name="openExternalLinks"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="deleteButton"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>Remove the account configuration from the client</string> + </property> + <property name="text"> + <string>Delete</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> <item> <widget class="QLabel" name="quotaInfoLabel"> <property name="sizePolicy"> @@ -145,14 +175,8 @@ </item> <item> <widget class="QWidget" name="selectiveSyncStatus" native="true"> - <property name="sizePolicy"> - <sizepolicy hsizetype="MinimumExpanding" vsizetype="Maximum"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <layout class="QGridLayout" name="gridLayout"> - <item row="0" column="0" rowspan="2"> + <layout class="QHBoxLayout" name="horizontalLayout_3"> + <item> <layout class="QVBoxLayout" name="verticalLayout_3"> <item> <widget class="QLabel" name="selectiveSyncLabel"> @@ -185,8 +209,8 @@ </item> </layout> </item> - <item row="0" column="1"> - <widget class="QPushButton" name="selectiveSyncApply"> + <item> + <widget class="QPushButton" name="selectiveSyncCancel"> <property name="sizePolicy"> <sizepolicy hsizetype="Minimum" vsizetype="Maximum"> <horstretch>0</horstretch> @@ -194,12 +218,12 @@ </sizepolicy> </property> <property name="text"> - <string>Apply</string> + <string>Cancel</string> </property> </widget> </item> - <item row="1" column="1"> - <widget class="QPushButton" name="selectiveSyncCancel"> + <item> + <widget class="QPushButton" name="selectiveSyncApply"> <property name="sizePolicy"> <sizepolicy hsizetype="Minimum" vsizetype="Maximum"> <horstretch>0</horstretch> @@ -207,7 +231,7 @@ </sizepolicy> </property> <property name="text"> - <string>Cancel</string> + <string>Apply</string> </property> </widget> </item> |