summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAl <gabriel.cortesi@outlook.com>2019-06-19 15:31:52 +0200
committerAl <gabriel.cortesi@outlook.com>2019-06-19 15:31:52 +0200
commitf74c3419543058e6a97943f421bb74261ae1b10c (patch)
treeb32e9b83d4fc80897a2dcf6f09d30a983019aad8 /src
parentf883a14823bdc3ed853b23d425f73ff55068ec55 (diff)
* Made the loadingbar a little bigger and more centered in the statusbar.
* Changed themes to remove the ugly separator line between widgets on the statusbar.
Diffstat (limited to 'src')
-rw-r--r--src/organizer_en.ts4
-rw-r--r--src/statusbar.cpp15
-rw-r--r--src/stylesheets/Night Eyes.qss1
-rw-r--r--src/stylesheets/Paper Automata.qss2
-rw-r--r--src/stylesheets/Paper Dark by 6788.qss2
-rw-r--r--src/stylesheets/Paper Light by 6788.qss2
-rw-r--r--src/stylesheets/Parchment v1.1 by Bob.qss2
-rw-r--r--src/stylesheets/Transparent-Style-101-Green.qss3
-rw-r--r--src/stylesheets/Transparent-Style-BOS.qss3
-rw-r--r--src/stylesheets/Transparent-Style-Skyrim.qss3
-rw-r--r--src/stylesheets/dark.qss2
-rw-r--r--src/stylesheets/dracula.qss2
-rw-r--r--src/stylesheets/skyrim.qss2
-rw-r--r--src/stylesheets/vs15 Dark-Green.qss2
-rw-r--r--src/stylesheets/vs15 Dark-Orange.qss2
-rw-r--r--src/stylesheets/vs15 Dark-Purple.qss2
-rw-r--r--src/stylesheets/vs15 Dark-Red.qss2
-rw-r--r--src/stylesheets/vs15 Dark-Yellow.qss2
-rw-r--r--src/stylesheets/vs15 Dark.qss2
19 files changed, 51 insertions, 4 deletions
diff --git a/src/organizer_en.ts b/src/organizer_en.ts
index ae71eefa..283f2d3c 100644
--- a/src/organizer_en.ts
+++ b/src/organizer_en.ts
@@ -6164,12 +6164,12 @@ You will be asked if you want to allow helper.exe to make changes to the system.
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="statusbar.cpp" line="26"/>
+ <location filename="statusbar.cpp" line="37"/>
<source>This tracks the number of queued Nexus API requests, as well as the remaining daily and hourly requests. The Nexus API limits you to a pool of requests per day and requests per hour. It is dynamically updated every time a request is completed. If you run out of requests, you will be unable to queue downloads, check updates, parse mod info, or even log in. Both pools must be consumed before this happens.</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="statusbar.cpp" line="45"/>
+ <location filename="statusbar.cpp" line="56"/>
<source>Loading...</source>
<translation type="unfinished"></translation>
</message>
diff --git a/src/statusbar.cpp b/src/statusbar.cpp
index 01449202..8ad5bea1 100644
--- a/src/statusbar.cpp
+++ b/src/statusbar.cpp
@@ -9,15 +9,26 @@ StatusBar::StatusBar(QStatusBar* bar, Ui::MainWindow* ui) :
m_update(new StatusBarAction(ui->actionUpdate)),
m_api(new QLabel)
{
+ QWidget* spacer1 = new QWidget;
+ spacer1->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
+ spacer1->setHidden(true);
+ spacer1->setVisible(true);
+ m_bar->addPermanentWidget(spacer1, 0);
m_bar->addPermanentWidget(m_progress);
+ QWidget* spacer2 = new QWidget;
+ spacer2->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
+ spacer2->setHidden(true);
+ spacer2->setVisible(true);
+ m_bar->addPermanentWidget(spacer2,0);
m_bar->addPermanentWidget(m_notifications);
m_bar->addPermanentWidget(m_update);
m_bar->addPermanentWidget(m_api);
+
m_progress->setTextVisible(true);
m_progress->setRange(0, 100);
- m_progress->setMaximumWidth(150);
- m_progress->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
+ m_progress->setMaximumWidth(300);
+ m_progress->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
m_update->set(false);
m_notifications->set(false);
diff --git a/src/stylesheets/Night Eyes.qss b/src/stylesheets/Night Eyes.qss
index f2f193c4..142acb6a 100644
--- a/src/stylesheets/Night Eyes.qss
+++ b/src/stylesheets/Night Eyes.qss
@@ -481,6 +481,7 @@ QToolTip
border: 0px;
}
+QStatusBar::item {border: None;}
/* Progress Bars (Downloads) -------------------------------------------------- */
diff --git a/src/stylesheets/Paper Automata.qss b/src/stylesheets/Paper Automata.qss
index c9830331..7c0a604e 100644
--- a/src/stylesheets/Paper Automata.qss
+++ b/src/stylesheets/Paper Automata.qss
@@ -681,6 +681,8 @@ QToolTip {
border: 2px solid #CDC8B0;
}
+QStatusBar::item {border: None;}
+
/* Progress Bars (Downloads) */
QProgressBar {
diff --git a/src/stylesheets/Paper Dark by 6788.qss b/src/stylesheets/Paper Dark by 6788.qss
index cde25733..77086c15 100644
--- a/src/stylesheets/Paper Dark by 6788.qss
+++ b/src/stylesheets/Paper Dark by 6788.qss
@@ -683,6 +683,8 @@ QToolTip {
border-radius: 6px;
}
+QStatusBar::item {border: None;}
+
/* Progress Bars (Downloads) */
QProgressBar {
diff --git a/src/stylesheets/Paper Light by 6788.qss b/src/stylesheets/Paper Light by 6788.qss
index 54af277a..2b08bcd1 100644
--- a/src/stylesheets/Paper Light by 6788.qss
+++ b/src/stylesheets/Paper Light by 6788.qss
@@ -685,6 +685,8 @@ QToolTip {
border-radius: 6px;
}
+QStatusBar::item {border: None;}
+
/* Progress Bars (Downloads) */
QProgressBar {
diff --git a/src/stylesheets/Parchment v1.1 by Bob.qss b/src/stylesheets/Parchment v1.1 by Bob.qss
index 45c1d57b..61c2f84d 100644
--- a/src/stylesheets/Parchment v1.1 by Bob.qss
+++ b/src/stylesheets/Parchment v1.1 by Bob.qss
@@ -491,6 +491,8 @@ QToolTip {
border: 0px;
}
+QStatusBar::item {border: None;}
+
/* Progress Bars (Downloads) */
QProgressBar {
diff --git a/src/stylesheets/Transparent-Style-101-Green.qss b/src/stylesheets/Transparent-Style-101-Green.qss
index 7dbf6157..a4ed2623 100644
--- a/src/stylesheets/Transparent-Style-101-Green.qss
+++ b/src/stylesheets/Transparent-Style-101-Green.qss
@@ -461,6 +461,9 @@
background-color:#121212;
color:#C0C0C0;
}
+
+QStatusBar::item {border: None;}
+
/* **************************** */
/* Handles Web, Nexus info tab */
/* **************************** */
diff --git a/src/stylesheets/Transparent-Style-BOS.qss b/src/stylesheets/Transparent-Style-BOS.qss
index 2c1eb3de..efad0859 100644
--- a/src/stylesheets/Transparent-Style-BOS.qss
+++ b/src/stylesheets/Transparent-Style-BOS.qss
@@ -673,6 +673,9 @@ QAbstractSpinBox::down-arrow{
border-width:1px;
border-style:solid;
}
+
+QStatusBar::item {border: None;}
+
/* Font size */
QLabel,QMenu,QPushButton,QAbstractSpinBox,QGroupBox,QCheckBox,QRadioButton{
color: #cccccc;
diff --git a/src/stylesheets/Transparent-Style-Skyrim.qss b/src/stylesheets/Transparent-Style-Skyrim.qss
index e95dcfc5..89e36c74 100644
--- a/src/stylesheets/Transparent-Style-Skyrim.qss
+++ b/src/stylesheets/Transparent-Style-Skyrim.qss
@@ -644,6 +644,9 @@ QAbstractSpinBox::down-arrow{
border-width:1px;
border-style:solid;
}
+
+QStatusBar::item {border: None;}
+
/* **************************** */
/* Handles Web, Nexus info tab */
/* **************************** */
diff --git a/src/stylesheets/dark.qss b/src/stylesheets/dark.qss
index 1ad534a1..22cd598c 100644
--- a/src/stylesheets/dark.qss
+++ b/src/stylesheets/dark.qss
@@ -252,6 +252,8 @@ QMenuBar::item:selected {
border-color: #3EA0CA;
}
+QStatusBar::item {border: None;}
+
QProgressBar
{
border: 2px solid grey;
diff --git a/src/stylesheets/dracula.qss b/src/stylesheets/dracula.qss
index ac0119b0..2a7fbf9e 100644
--- a/src/stylesheets/dracula.qss
+++ b/src/stylesheets/dracula.qss
@@ -418,6 +418,8 @@ DownloadListWidget::item:selected {
padding: 0px;
}
+QStatusBar::item {border: None;}
+
QProgressBar
{
border: 2px solid grey;
diff --git a/src/stylesheets/skyrim.qss b/src/stylesheets/skyrim.qss
index d69fa173..2da5154d 100644
--- a/src/stylesheets/skyrim.qss
+++ b/src/stylesheets/skyrim.qss
@@ -537,6 +537,8 @@ SaveGameInfoWidget {
background-color: #121212;
color: #C0C0C0; }
+QStatusBar::item {border: None;}
+
/* Progress Bars (Downloads) #QProgressBar */
QProgressBar {
background-color: transparent;
diff --git a/src/stylesheets/vs15 Dark-Green.qss b/src/stylesheets/vs15 Dark-Green.qss
index 5edcab9c..9c57d96e 100644
--- a/src/stylesheets/vs15 Dark-Green.qss
+++ b/src/stylesheets/vs15 Dark-Green.qss
@@ -590,6 +590,8 @@ SaveGameInfoWidget {
border-width: 1px;
padding: 2px; }
+QStatusBar::item {border: None;}
+
/* Progress Bars (Downloads) #QProgressBar */
QProgressBar {
background-color: #E6E6E6;
diff --git a/src/stylesheets/vs15 Dark-Orange.qss b/src/stylesheets/vs15 Dark-Orange.qss
index 5d3bcd94..bf7647b2 100644
--- a/src/stylesheets/vs15 Dark-Orange.qss
+++ b/src/stylesheets/vs15 Dark-Orange.qss
@@ -591,6 +591,8 @@ SaveGameInfoWidget {
border-width: 1px;
padding: 2px; }
+ QStatusBar::item {border: None;}
+
/* Progress Bars (Downloads) #QProgressBar */
QProgressBar {
background-color: #E6E6E6;
diff --git a/src/stylesheets/vs15 Dark-Purple.qss b/src/stylesheets/vs15 Dark-Purple.qss
index 0ace4f23..1c9cb2b8 100644
--- a/src/stylesheets/vs15 Dark-Purple.qss
+++ b/src/stylesheets/vs15 Dark-Purple.qss
@@ -591,6 +591,8 @@ SaveGameInfoWidget {
border-width: 1px;
padding: 2px; }
+ QStatusBar::item {border: None;}
+
/* Progress Bars (Downloads) #QProgressBar */
QProgressBar {
background-color: #E6E6E6;
diff --git a/src/stylesheets/vs15 Dark-Red.qss b/src/stylesheets/vs15 Dark-Red.qss
index 3a0a645c..73a90b15 100644
--- a/src/stylesheets/vs15 Dark-Red.qss
+++ b/src/stylesheets/vs15 Dark-Red.qss
@@ -591,6 +591,8 @@ SaveGameInfoWidget {
border-width: 1px;
padding: 2px; }
+ QStatusBar::item {border: None;}
+
/* Progress Bars (Downloads) #QProgressBar */
QProgressBar {
background-color: #E6E6E6;
diff --git a/src/stylesheets/vs15 Dark-Yellow.qss b/src/stylesheets/vs15 Dark-Yellow.qss
index b833c37e..1d43091d 100644
--- a/src/stylesheets/vs15 Dark-Yellow.qss
+++ b/src/stylesheets/vs15 Dark-Yellow.qss
@@ -591,6 +591,8 @@ SaveGameInfoWidget {
border-width: 1px;
padding: 2px; }
+ QStatusBar::item {border: None;}
+
/* Progress Bars (Downloads) #QProgressBar */
QProgressBar {
background-color: #E6E6E6;
diff --git a/src/stylesheets/vs15 Dark.qss b/src/stylesheets/vs15 Dark.qss
index 9a571ab9..dbeaaf28 100644
--- a/src/stylesheets/vs15 Dark.qss
+++ b/src/stylesheets/vs15 Dark.qss
@@ -590,6 +590,8 @@ SaveGameInfoWidget {
border-width: 1px;
padding: 2px; }
+QStatusBar::item {border: None;}
+
/* Progress Bars (Downloads) #QProgressBar */
QProgressBar {
background-color: #E6E6E6;