From 5e502c7bce94bed78413247fa0bd0852bde9f2ea Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 23 Jan 2021 18:46:07 +0000 Subject: modernise the gui interface --- src/frontend/gui/sisyphus-gui.py | 22 +++--- src/frontend/gui/ui/sisyphus.ui | 166 ++++++++++++++++++++++++++++++++------- 2 files changed, 149 insertions(+), 39 deletions(-) diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py index 4e9a8b1..fa2b057 100644 --- a/src/frontend/gui/sisyphus-gui.py +++ b/src/frontend/gui/sisyphus-gui.py @@ -21,25 +21,25 @@ class Sisyphus(QtWidgets.QMainWindow): self.show() self.filterApplications = OrderedDict([ - ('Search by Name', 'pn'), - ('Search by Category', 'cat'), - ('Search by Description', 'descr') + ('name', 'pn'), + ('category', 'cat'), + ('description', 'descr') ]) self.applicationFilter.addItems(self.filterApplications.keys()) - self.applicationFilter.setCurrentText('Search by Name') + self.applicationFilter.setCurrentText('name') self.applicationFilter.currentIndexChanged.connect(self.setApplicationFilter) - Sisyphus.applicationView = self.filterApplications['Search by Name'] + Sisyphus.applicationView = self.filterApplications['name'] self.filterDatabases = OrderedDict([ - ('All Packages', 'all'), - ('Installed Packages', 'installed'), - ('Available Packages', 'installable'), - ('Upgradable Packages', 'upgradable') + ('all packages', 'all'), + ('installed packages', 'installed'), + ('available packages', 'installable'), + ('upgradable packages', 'upgradable') ]) self.databaseFilter.addItems(self.filterDatabases.keys()) - self.databaseFilter.setCurrentText('All Packages') + self.databaseFilter.setCurrentText('all packages') self.databaseFilter.currentIndexChanged.connect(self.setDatabaseFilter) - Sisyphus.databaseView = self.filterDatabases['All Packages'] + Sisyphus.databaseView = self.filterDatabases['all packages'] Sisyphus.searchTerm = "'%%'" diff --git a/src/frontend/gui/ui/sisyphus.ui b/src/frontend/gui/ui/sisyphus.ui index 2831d55..a870d6b 100644 --- a/src/frontend/gui/ui/sisyphus.ui +++ b/src/frontend/gui/ui/sisyphus.ui @@ -55,7 +55,7 @@ QFrame::StyledPanel - QFrame::Raised + QFrame::Sunken Qt::ScrollBarAlwaysOn @@ -113,33 +113,99 @@ 25 - + - 25 - 25 + 16777215 + 30 - - <html><head/><body><p align="center">Mirror Configuration</p></body></html> + + + 10 + - - - ../icon/settings.png../icon/settings.png + + QFrame::StyledPanel - + + Search by + + + Qt::MarkdownText + + + true + + + Qt::NoTextInteraction + + + + + + - 16 - 16 + 16777215 + 30 + + + + false + + + + + + + + 16777215 + 30 + + + 10 + + + + true + + + QFrame::StyledPanel + + + in + + + true + + + Qt::NoTextInteraction + - + + + + 16777215 + 30 + + + + false + + + + + 16777215 + 30 + + <html><head/><body><p align="center">Write package name and press Enter</p></body></html> @@ -148,15 +214,12 @@ - - - - 25 - 25 + 16777215 + 30 @@ -172,6 +235,35 @@ 16 + + true + + + + + + + + 16777215 + 30 + + + + <html><head/><body><p align="center">Mirror Configuration</p></body></html> + + + + ../icon/settings.png../icon/settings.png + + + + 16 + 16 + + + + true + @@ -192,7 +284,7 @@ 16777215 - 25 + 30 @@ -211,6 +303,9 @@ 16 + + true + @@ -218,7 +313,7 @@ 16777215 - 25 + 30 @@ -237,6 +332,9 @@ 16 + + true + @@ -244,7 +342,7 @@ 16777215 - 25 + 30 @@ -260,6 +358,9 @@ 16 + + true + @@ -267,7 +368,7 @@ 16777215 - 25 + 30 @@ -286,6 +387,9 @@ 16 + + true + @@ -293,7 +397,7 @@ 16777215 - 25 + 30 @@ -309,6 +413,9 @@ 16 + + true + @@ -331,14 +438,17 @@ 0 - 250 + 200 <html><head/><body><p align="center">Progress Box</p></body></html> + + QFrame::StyledPanel + - QFrame::Raised + QFrame::Sunken Qt::ScrollBarAlwaysOn @@ -355,12 +465,12 @@ - settingsButton applicationFilter - inputBox databaseFilter - databaseTable + inputBox licenseButton + settingsButton + databaseTable progressBox installButton uninstallButton -- cgit v1.2.3