Commit 7e121478 authored by Dan Pascu's avatar Dan Pascu

Enhanced the main window layout

parent 9dad1e5f
...@@ -33,11 +33,20 @@ ...@@ -33,11 +33,20 @@
<property name="autoFillBackground"> <property name="autoFillBackground">
<bool>false</bool> <bool>false</bool>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="window_layout">
<property name="spacing"> <property name="spacing">
<number>2</number> <number>2</number>
</property> </property>
<property name="margin"> <property name="leftMargin">
<number>1</number>
</property>
<property name="topMargin">
<number>1</number>
</property>
<property name="rightMargin">
<number>1</number>
</property>
<property name="bottomMargin">
<number>1</number> <number>1</number>
</property> </property>
<item> <item>
...@@ -59,6 +68,9 @@ ...@@ -59,6 +68,9 @@
<property name="maxVisibleItems"> <property name="maxVisibleItems">
<number>20</number> <number>20</number>
</property> </property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToContents</enum>
</property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
<width>14</width> <width>14</width>
...@@ -87,212 +99,216 @@ ...@@ -87,212 +99,216 @@
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="identity_layout"> <widget class="QWidget" name="identity_widget" native="true">
<property name="spacing"> <layout class="QGridLayout" name="identity_layout">
<number>2</number> <property name="leftMargin">
</property> <number>0</number>
<property name="leftMargin"> </property>
<number>2</number> <property name="topMargin">
</property> <number>0</number>
<property name="rightMargin"> </property>
<number>1</number> <property name="rightMargin">
</property> <number>0</number>
<item> </property>
<widget class="AccountState" name="account_state"> <property name="bottomMargin">
<property name="icon"> <number>0</number>
<iconset> </property>
<normaloff>icons/avatar.jpg</normaloff>icons/avatar.jpg</iconset> <property name="horizontalSpacing">
</property> <number>2</number>
<property name="iconSize"> </property>
<size> <property name="verticalSpacing">
<width>32</width> <number>0</number>
<height>32</height> </property>
</size> <item row="0" column="0" rowspan="2">
</property> <widget class="AccountState" name="account_state">
<property name="popupMode"> <property name="icon">
<enum>QToolButton::MenuButtonPopup</enum> <iconset>
</property> <normaloff>icons/avatar.jpg</normaloff>icons/avatar.jpg</iconset>
</widget> </property>
</item> <property name="iconSize">
<item> <size>
<layout class="QVBoxLayout" name="name_note_layout"> <width>32</width>
<property name="spacing"> <height>32</height>
<number>0</number> </size>
</property> </property>
<item> <property name="popupMode">
<widget class="LineEdit" name="display_name"> <enum>QToolButton::MenuButtonPopup</enum>
<property name="maximumSize"> </property>
<size> </widget>
<width>16777215</width> </item>
<height>18</height> <item row="0" column="1">
</size> <widget class="LineEdit" name="display_name">
</property> <property name="maximumSize">
<property name="toolTip"> <size>
<string>Click to change your display name</string> <width>16777215</width>
</property> <height>18</height>
<property name="styleSheet"> </size>
<string>QLineEdit { </property>
<property name="toolTip">
<string>Click to change your display name</string>
</property>
<property name="styleSheet">
<string>QLineEdit {
background-color: transparent; background-color: transparent;
} }
</string> </string>
</property> </property>
<property name="frame"> <property name="frame">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="inactiveText" stdset="0"> <property name="inactiveText" stdset="0">
<string>Type your name here</string> <string>Type your name here</string>
</property> </property>
<property name="widgetSpacing" stdset="0"> <property name="widgetSpacing" stdset="0">
<number>0</number> <number>0</number>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="1" column="1">
<widget class="LineEdit" name="activity_note"> <widget class="LineEdit" name="activity_note">
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>16777215</width> <width>16777215</width>
<height>18</height> <height>18</height>
</size> </size>
</property> </property>
<property name="palette"> <property name="palette">
<palette> <palette>
<active> <active>
<colorrole role="Button"> <colorrole role="Button">
<brush brushstyle="SolidPattern"> <brush brushstyle="SolidPattern">
<color alpha="0"> <color alpha="0">
<red>0</red> <red>0</red>
<green>0</green> <green>0</green>
<blue>0</blue> <blue>0</blue>
</color> </color>
</brush> </brush>
</colorrole> </colorrole>
<colorrole role="Text"> <colorrole role="Text">
<brush brushstyle="SolidPattern"> <brush brushstyle="SolidPattern">
<color alpha="255"> <color alpha="255">
<red>70</red> <red>70</red>
<green>70</green> <green>70</green>
<blue>70</blue> <blue>70</blue>
</color> </color>
</brush> </brush>
</colorrole> </colorrole>
<colorrole role="Base"> <colorrole role="Base">
<brush brushstyle="SolidPattern"> <brush brushstyle="SolidPattern">
<color alpha="0"> <color alpha="0">
<red>0</red> <red>0</red>
<green>0</green> <green>0</green>
<blue>0</blue> <blue>0</blue>
</color> </color>
</brush> </brush>
</colorrole> </colorrole>
<colorrole role="Window"> <colorrole role="Window">
<brush brushstyle="SolidPattern"> <brush brushstyle="SolidPattern">
<color alpha="0"> <color alpha="0">
<red>0</red> <red>0</red>
<green>0</green> <green>0</green>
<blue>0</blue> <blue>0</blue>
</color> </color>
</brush> </brush>
</colorrole> </colorrole>
</active> </active>
<inactive> <inactive>
<colorrole role="Button"> <colorrole role="Button">
<brush brushstyle="SolidPattern"> <brush brushstyle="SolidPattern">
<color alpha="0"> <color alpha="0">
<red>0</red> <red>0</red>
<green>0</green> <green>0</green>
<blue>0</blue> <blue>0</blue>
</color> </color>
</brush> </brush>
</colorrole> </colorrole>
<colorrole role="Text"> <colorrole role="Text">
<brush brushstyle="SolidPattern"> <brush brushstyle="SolidPattern">
<color alpha="255"> <color alpha="255">
<red>70</red> <red>70</red>
<green>70</green> <green>70</green>
<blue>70</blue> <blue>70</blue>
</color> </color>
</brush> </brush>
</colorrole> </colorrole>
<colorrole role="Base"> <colorrole role="Base">
<brush brushstyle="SolidPattern"> <brush brushstyle="SolidPattern">
<color alpha="0"> <color alpha="0">
<red>0</red> <red>0</red>
<green>0</green> <green>0</green>
<blue>0</blue> <blue>0</blue>
</color> </color>
</brush> </brush>
</colorrole> </colorrole>
<colorrole role="Window"> <colorrole role="Window">
<brush brushstyle="SolidPattern"> <brush brushstyle="SolidPattern">
<color alpha="0"> <color alpha="0">
<red>0</red> <red>0</red>
<green>0</green> <green>0</green>
<blue>0</blue> <blue>0</blue>
</color> </color>
</brush> </brush>
</colorrole> </colorrole>
</inactive> </inactive>
<disabled> <disabled>
<colorrole role="Button"> <colorrole role="Button">
<brush brushstyle="SolidPattern"> <brush brushstyle="SolidPattern">
<color alpha="0"> <color alpha="0">
<red>0</red> <red>0</red>
<green>0</green> <green>0</green>
<blue>0</blue> <blue>0</blue>
</color> </color>
</brush> </brush>
</colorrole> </colorrole>
<colorrole role="Text"> <colorrole role="Text">
<brush brushstyle="SolidPattern"> <brush brushstyle="SolidPattern">
<color alpha="255"> <color alpha="255">
<red>166</red> <red>166</red>
<green>165</green> <green>165</green>
<blue>165</blue> <blue>165</blue>
</color> </color>
</brush> </brush>
</colorrole> </colorrole>
<colorrole role="Base"> <colorrole role="Base">
<brush brushstyle="SolidPattern"> <brush brushstyle="SolidPattern">
<color alpha="0"> <color alpha="0">
<red>0</red> <red>0</red>
<green>0</green> <green>0</green>
<blue>0</blue> <blue>0</blue>
</color> </color>
</brush> </brush>
</colorrole> </colorrole>
<colorrole role="Window"> <colorrole role="Window">
<brush brushstyle="SolidPattern"> <brush brushstyle="SolidPattern">
<color alpha="0"> <color alpha="0">
<red>0</red> <red>0</red>
<green>0</green> <green>0</green>
<blue>0</blue> <blue>0</blue>
</color> </color>
</brush> </brush>
</colorrole> </colorrole>
</disabled> </disabled>
</palette> </palette>
</property> </property>
<property name="styleSheet"> <property name="styleSheet">
<string>QLineEdit { <string>QLineEdit {
background-color: transparent; background-color: transparent;
} }
</string> </string>
</property> </property>
<property name="frame"> <property name="frame">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="inactiveText" stdset="0"> <property name="inactiveText" stdset="0">
<string>Add an activity note here</string> <string>Add an activity note here</string>
</property> </property>
<property name="widgetSpacing" stdset="0"> <property name="widgetSpacing" stdset="0">
<number>0</number> <number>0</number>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </widget>
</layout>
</item> </item>
<item> <item>
<widget class="SwitchViewButton" name="switch_view_button"> <widget class="SwitchViewButton" name="switch_view_button">
...@@ -334,11 +350,20 @@ ...@@ -334,11 +350,20 @@
<number>0</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="contacts_panel"> <widget class="QWidget" name="contacts_panel">
<layout class="QVBoxLayout" name="verticalLayout_8"> <layout class="QVBoxLayout" name="contacts_layout">
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<property name="margin"> <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> <number>0</number>
</property> </property>
<item> <item>
...@@ -347,11 +372,20 @@ ...@@ -347,11 +372,20 @@
<number>0</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="contact_list_panel"> <widget class="QWidget" name="contact_list_panel">
<layout class="QVBoxLayout" name="verticalLayout_7"> <layout class="QVBoxLayout" name="contact_list_layout">
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<property name="margin"> <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> <number>0</number>
</property> </property>
<item> <item>
...@@ -379,11 +413,20 @@ ...@@ -379,11 +413,20 @@
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="search_panel"> <widget class="QWidget" name="search_panel">
<layout class="QVBoxLayout" name="verticalLayout_6"> <layout class="QVBoxLayout" name="search_layout">
<property name="spacing"> <property name="spacing">
<number>2</number> <number>2</number>
</property> </property>
<property name="margin"> <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> <number>0</number>
</property> </property>
<item> <item>
...@@ -485,11 +528,20 @@ ...@@ -485,11 +528,20 @@
<number>0</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="search_list_panel"> <widget class="QWidget" name="search_list_panel">
<layout class="QVBoxLayout" name="verticalLayout_5"> <layout class="QVBoxLayout" name="search_list_layout">
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<property name="margin"> <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> <number>0</number>
</property> </property>
<item> <item>
...@@ -514,11 +566,20 @@ ...@@ -514,11 +566,20 @@
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="not_found_panel"> <widget class="QWidget" name="not_found_panel">
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QVBoxLayout" name="not_found_layout">
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<property name="margin"> <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> <number>0</number>
</property> </property>
<item> <item>
...@@ -813,11 +874,20 @@ padding: 2px;</string> ...@@ -813,11 +874,20 @@ padding: 2px;</string>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="sessions_panel"> <widget class="QWidget" name="sessions_panel">
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="sessions_layout">
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
<property name="margin"> <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> <number>0</number>
</property> </property>
<item> <item>
...@@ -960,7 +1030,7 @@ padding: 2px;</string> ...@@ -960,7 +1030,7 @@ padding: 2px;</string>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>285</width> <width>285</width>
<height>20</height> <height>29</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="blink_menu"> <widget class="QMenu" name="blink_menu">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment