diff options
author | Camila San <hello@camila.codes> | 2018-07-26 15:43:21 +0300 |
---|---|---|
committer | Camila San <hello@camila.codes> | 2018-08-02 20:57:16 +0300 |
commit | b14aa11c290894d1f796be9b2ca54278e5d8ae78 (patch) | |
tree | cc671ce07deec787c60f101f5331ca49e507340d /src/gui/shareuserline.ui | |
parent | a19904657a87d5b6690b15b79f9385f8452310b8 (diff) |
Changes share link layout so it looks like the UI on the server.
- Adds icons to Share link and to save password on share dialog.
- Changes wording of the menu options for sharing link.
- Adds functionality to the new menu (mostly permissions).
- More widget size and size policy adjustments.
Signed-off-by: Camila San <hello@camila.codes>
Diffstat (limited to 'src/gui/shareuserline.ui')
-rw-r--r-- | src/gui/shareuserline.ui | 55 |
1 files changed, 38 insertions, 17 deletions
diff --git a/src/gui/shareuserline.ui b/src/gui/shareuserline.ui index 7580882ad..e00b4bd86 100644 --- a/src/gui/shareuserline.ui +++ b/src/gui/shareuserline.ui @@ -9,7 +9,7 @@ <rect> <x>0</x> <y>0</y> - <width>340</width> + <width>350</width> <height>45</height> </rect> </property> @@ -21,7 +21,7 @@ </property> <property name="minimumSize"> <size> - <width>340</width> + <width>350</width> <height>45</height> </size> </property> @@ -39,22 +39,22 @@ </property> <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0,3,2,2,2"> <property name="spacing"> - <number>3</number> + <number>6</number> </property> <property name="sizeConstraint"> <enum>QLayout::SetFixedSize</enum> </property> <property name="leftMargin"> - <number>3</number> + <number>6</number> </property> <property name="topMargin"> - <number>3</number> + <number>6</number> </property> <property name="rightMargin"> - <number>3</number> + <number>6</number> </property> <property name="bottomMargin"> - <number>3</number> + <number>6</number> </property> <item> <widget class="QLabel" name="avatar"> @@ -70,15 +70,30 @@ <height>40</height> </size> </property> + <property name="sizeIncrement"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> <property name="text"> <string/> </property> <property name="scaledContents"> <bool>false</bool> </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> <property name="wordWrap"> <bool>true</bool> </property> + <property name="indent"> + <number>0</number> + </property> </widget> </item> <item> @@ -92,7 +107,7 @@ <property name="minimumSize"> <size> <width>100</width> - <height>0</height> + <height>26</height> </size> </property> <property name="text"> @@ -125,7 +140,7 @@ <item> <widget class="QCheckBox" name="permissionsEdit"> <property name="sizePolicy"> - <sizepolicy hsizetype="Maximum" vsizetype="Maximum"> + <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> @@ -144,34 +159,38 @@ <item> <widget class="QToolButton" name="permissionToolButton"> <property name="sizePolicy"> - <sizepolicy hsizetype="Maximum" vsizetype="Maximum"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> - <width>0</width> - <height>0</height> + <width>26</width> + <height>26</height> </size> </property> <property name="text"> - <string>...</string> + <string/> + </property> + <property name="icon"> + <iconset resource="../../client.qrc"> + <normaloff>:/client/resources/more.png</normaloff>:/client/resources/more.png</iconset> </property> </widget> </item> <item> <widget class="QToolButton" name="deleteShareButton"> <property name="sizePolicy"> - <sizepolicy hsizetype="Maximum" vsizetype="Maximum"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> - <width>0</width> - <height>0</height> + <width>26</width> + <height>26</height> </size> </property> <property name="text"> @@ -185,6 +204,8 @@ </item> </layout> </widget> - <resources/> + <resources> + <include location="../../client.qrc"/> + </resources> <connections/> </ui> |