summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-04-05 08:42:02 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-04-05 08:42:02 +0100
commit74ab4e42aa24eea172cd03c6fa4c15250fff4a48 (patch)
treebdbf5d86b315040895f14b9e67682477ba23d5f4
parent67b54180c8e93b6fba312e4c75f416b832afbc6a (diff)
ui : maintain the aspect ratio, but make sure we fit the window in low rez displays
-rw-r--r--src/frontend/gui/ui/sisyphus.ui198
1 files changed, 93 insertions, 105 deletions
diff --git a/src/frontend/gui/ui/sisyphus.ui b/src/frontend/gui/ui/sisyphus.ui
index fbbf889..cf2df13 100644
--- a/src/frontend/gui/ui/sisyphus.ui
+++ b/src/frontend/gui/ui/sisyphus.ui
@@ -9,8 +9,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>1280</width>
- <height>720</height>
+ <width>1024</width>
+ <height>576</height>
</rect>
</property>
<property name="sizePolicy">
@@ -21,8 +21,8 @@
</property>
<property name="minimumSize">
<size>
- <width>1280</width>
- <height>720</height>
+ <width>1024</width>
+ <height>576</height>
</size>
</property>
<property name="windowTitle">
@@ -35,50 +35,86 @@
<widget class="QWidget" name="layoutGrid">
<layout class="QGridLayout" name="mainGrid">
<property name="leftMargin">
- <number>25</number>
+ <number>15</number>
</property>
<property name="topMargin">
- <number>25</number>
+ <number>15</number>
</property>
<property name="rightMargin">
- <number>25</number>
+ <number>15</number>
</property>
<property name="bottomMargin">
- <number>25</number>
+ <number>15</number>
</property>
<property name="spacing">
- <number>25</number>
+ <number>15</number>
</property>
- <item row="4" column="0">
- <widget class="QProgressBar" name="progressBar">
- <property name="maximumSize">
+ <item row="1" column="0">
+ <widget class="QTableView" name="databaseTable">
+ <property name="minimumSize">
<size>
- <width>16777215</width>
- <height>25</height>
+ <width>0</width>
+ <height>175</height>
</size>
</property>
- <property name="value">
- <number>24</number>
+ <property name="frameShape">
+ <enum>QFrame::StyledPanel</enum>
</property>
+ <property name="frameShadow">
+ <enum>QFrame::Sunken</enum>
+ </property>
+ <property name="verticalScrollBarPolicy">
+ <enum>Qt::ScrollBarAlwaysOn</enum>
+ </property>
+ <property name="sizeAdjustPolicy">
+ <enum>QAbstractScrollArea::AdjustToContents</enum>
+ </property>
+ <property name="editTriggers">
+ <set>QAbstractItemView::NoEditTriggers</set>
+ </property>
+ <property name="dragDropOverwriteMode">
+ <bool>false</bool>
+ </property>
+ <property name="alternatingRowColors">
+ <bool>true</bool>
+ </property>
+ <property name="selectionMode">
+ <enum>QAbstractItemView::MultiSelection</enum>
+ </property>
+ <property name="selectionBehavior">
+ <enum>QAbstractItemView::SelectRows</enum>
+ </property>
+ <property name="gridStyle">
+ <enum>Qt::DashLine</enum>
+ </property>
+ <attribute name="horizontalHeaderCascadingSectionResizes">
+ <bool>true</bool>
+ </attribute>
+ <attribute name="horizontalHeaderMinimumSectionSize">
+ <number>150</number>
+ </attribute>
+ <attribute name="horizontalHeaderDefaultSectionSize">
+ <number>200</number>
+ </attribute>
+ <attribute name="horizontalHeaderStretchLastSection">
+ <bool>true</bool>
+ </attribute>
+ <attribute name="verticalHeaderVisible">
+ <bool>false</bool>
+ </attribute>
+ <attribute name="verticalHeaderHighlightSections">
+ <bool>false</bool>
+ </attribute>
</widget>
</item>
<item row="3" column="0">
<layout class="QHBoxLayout" name="actionGrid">
- <property name="spacing">
- <number>0</number>
- </property>
- <property name="leftMargin">
- <number>0</number>
- </property>
- <property name="rightMargin">
- <number>0</number>
- </property>
<item>
<widget class="QToolButton" name="installButton">
<property name="minimumSize">
<size>
- <width>175</width>
- <height>64</height>
+ <width>125</width>
+ <height>48</height>
</size>
</property>
<property name="maximumSize">
@@ -96,8 +132,8 @@
</property>
<property name="iconSize">
<size>
- <width>36</width>
- <height>36</height>
+ <width>30</width>
+ <height>30</height>
</size>
</property>
<property name="toolButtonStyle">
@@ -115,8 +151,8 @@
<widget class="QToolButton" name="uninstallButton">
<property name="minimumSize">
<size>
- <width>175</width>
- <height>64</height>
+ <width>125</width>
+ <height>48</height>
</size>
</property>
<property name="maximumSize">
@@ -134,8 +170,8 @@
</property>
<property name="iconSize">
<size>
- <width>36</width>
- <height>36</height>
+ <width>30</width>
+ <height>30</height>
</size>
</property>
<property name="toolButtonStyle">
@@ -153,8 +189,8 @@
<widget class="QToolButton" name="upgradeButton">
<property name="minimumSize">
<size>
- <width>175</width>
- <height>64</height>
+ <width>125</width>
+ <height>48</height>
</size>
</property>
<property name="maximumSize">
@@ -172,8 +208,8 @@
</property>
<property name="iconSize">
<size>
- <width>36</width>
- <height>36</height>
+ <width>30</width>
+ <height>30</height>
</size>
</property>
<property name="toolButtonStyle">
@@ -188,8 +224,8 @@
<widget class="QToolButton" name="autoremoveButton">
<property name="minimumSize">
<size>
- <width>175</width>
- <height>64</height>
+ <width>125</width>
+ <height>48</height>
</size>
</property>
<property name="maximumSize">
@@ -199,7 +235,7 @@
</size>
</property>
<property name="text">
- <string>Cleanup orphan packages</string>
+ <string>Uninstall orphan package(s)</string>
</property>
<property name="icon">
<iconset>
@@ -207,8 +243,8 @@
</property>
<property name="iconSize">
<size>
- <width>36</width>
- <height>36</height>
+ <width>30</width>
+ <height>30</height>
</size>
</property>
<property name="toolButtonStyle">
@@ -223,8 +259,8 @@
<widget class="QToolButton" name="exitButton">
<property name="minimumSize">
<size>
- <width>175</width>
- <height>64</height>
+ <width>125</width>
+ <height>48</height>
</size>
</property>
<property name="maximumSize">
@@ -242,8 +278,8 @@
</property>
<property name="iconSize">
<size>
- <width>36</width>
- <height>36</height>
+ <width>30</width>
+ <height>30</height>
</size>
</property>
<property name="toolButtonStyle">
@@ -256,64 +292,6 @@
</item>
</layout>
</item>
- <item row="1" column="0">
- <widget class="QTableView" name="databaseTable">
- <property name="minimumSize">
- <size>
- <width>0</width>
- <height>200</height>
- </size>
- </property>
- <property name="frameShape">
- <enum>QFrame::StyledPanel</enum>
- </property>
- <property name="frameShadow">
- <enum>QFrame::Sunken</enum>
- </property>
- <property name="verticalScrollBarPolicy">
- <enum>Qt::ScrollBarAlwaysOn</enum>
- </property>
- <property name="sizeAdjustPolicy">
- <enum>QAbstractScrollArea::AdjustToContents</enum>
- </property>
- <property name="editTriggers">
- <set>QAbstractItemView::NoEditTriggers</set>
- </property>
- <property name="dragDropOverwriteMode">
- <bool>false</bool>
- </property>
- <property name="alternatingRowColors">
- <bool>true</bool>
- </property>
- <property name="selectionMode">
- <enum>QAbstractItemView::MultiSelection</enum>
- </property>
- <property name="selectionBehavior">
- <enum>QAbstractItemView::SelectRows</enum>
- </property>
- <property name="gridStyle">
- <enum>Qt::DashLine</enum>
- </property>
- <attribute name="horizontalHeaderCascadingSectionResizes">
- <bool>true</bool>
- </attribute>
- <attribute name="horizontalHeaderMinimumSectionSize">
- <number>150</number>
- </attribute>
- <attribute name="horizontalHeaderDefaultSectionSize">
- <number>200</number>
- </attribute>
- <attribute name="horizontalHeaderStretchLastSection">
- <bool>true</bool>
- </attribute>
- <attribute name="verticalHeaderVisible">
- <bool>false</bool>
- </attribute>
- <attribute name="verticalHeaderHighlightSections">
- <bool>false</bool>
- </attribute>
- </widget>
- </item>
<item row="0" column="0">
<layout class="QHBoxLayout" name="inputGrid">
<property name="spacing">
@@ -523,12 +501,22 @@
</item>
</layout>
</item>
+ <item row="4" column="0">
+ <widget class="QProgressBar" name="progressBar">
+ <property name="maximumSize">
+ <size>
+ <width>16777215</width>
+ <height>25</height>
+ </size>
+ </property>
+ </widget>
+ </item>
<item row="2" column="0">
<widget class="QPlainTextEdit" name="progressBox">
<property name="minimumSize">
<size>
<width>0</width>
- <height>200</height>
+ <height>175</height>
</size>
</property>
<property name="maximumSize">