Frontend: Increase padding of small push buttons
authorWuzzy <Wuzzy2@mail.ru>
Fri, 11 Jan 2019 01:44:04 +0100
changeset 14556 1c623169a44d
parent 14555 8b66de6c9fb0
child 14557 05b929808585
Frontend: Increase padding of small push buttons
QTfrontend/res/css/april1.css
QTfrontend/res/css/birthday.css
QTfrontend/res/css/christmas.css
QTfrontend/res/css/easter.css
QTfrontend/res/css/qt.css
QTfrontend/ui/page/pageoptions.cpp
QTfrontend/ui/page/pageselectweapon.cpp
QTfrontend/ui/widget/gamecfgwidget.cpp
--- a/QTfrontend/res/css/april1.css	Thu Jan 10 23:22:44 2019 +0100
+++ b/QTfrontend/res/css/april1.css	Fri Jan 11 01:44:04 2019 +0100
@@ -442,7 +442,7 @@
 background-color: #150A61;
 }
 
-QDialogButtonBox QPushButton {
+QPushButton {
 padding: 3px 5px;
 }
 
--- a/QTfrontend/res/css/birthday.css	Thu Jan 10 23:22:44 2019 +0100
+++ b/QTfrontend/res/css/birthday.css	Fri Jan 11 01:44:04 2019 +0100
@@ -446,7 +446,7 @@
 background-color: #150A61;
 }
 
-QDialogButtonBox QPushButton {
+QPushButton {
 padding: 3px 5px;
 }
 
--- a/QTfrontend/res/css/christmas.css	Thu Jan 10 23:22:44 2019 +0100
+++ b/QTfrontend/res/css/christmas.css	Fri Jan 11 01:44:04 2019 +0100
@@ -441,7 +441,7 @@
 background-color: #150A61;
 }
 
-QDialogButtonBox QPushButton {
+QPushButton {
 padding: 3px 5px;
 }
 
--- a/QTfrontend/res/css/easter.css	Thu Jan 10 23:22:44 2019 +0100
+++ b/QTfrontend/res/css/easter.css	Fri Jan 11 01:44:04 2019 +0100
@@ -438,7 +438,7 @@
 background-color: #150A61;
 }
 
-QDialogButtonBox QPushButton {
+QPushButton {
 padding: 3px 5px;
 }
 
--- a/QTfrontend/res/css/qt.css	Thu Jan 10 23:22:44 2019 +0100
+++ b/QTfrontend/res/css/qt.css	Fri Jan 11 01:44:04 2019 +0100
@@ -433,7 +433,7 @@
 background-color: #150A61;
 }
 
-QDialogButtonBox QPushButton {
+QPushButton {
 padding: 3px 5px;
 }
 
--- a/QTfrontend/ui/page/pageoptions.cpp	Thu Jan 10 23:22:44 2019 +0100
+++ b/QTfrontend/ui/page/pageoptions.cpp	Fri Jan 11 01:44:04 2019 +0100
@@ -142,6 +142,7 @@
             BtnNewTeam->setIconSize(pmNew.size());
             BtnNewTeam->setIcon(pmNew);
             BtnNewTeam->setMaximumWidth(pmNew.width() + 6);
+            BtnNewTeam->setStyleSheet("padding: 0px;");
             connect(BtnNewTeam, SIGNAL(clicked()), this, SIGNAL(newTeamRequested()));
             groupTeams->layout()->addWidget(BtnNewTeam, 0, 1);
 
@@ -150,6 +151,7 @@
             BtnEditTeam->setIconSize(pmEdit.size());
             BtnEditTeam->setIcon(pmEdit);
             BtnEditTeam->setMaximumWidth(pmEdit.width() + 6);
+            BtnEditTeam->setStyleSheet("padding: 0px;");
             connect(BtnEditTeam, SIGNAL(clicked()), this, SLOT(requestEditSelectedTeam()));
             groupTeams->layout()->addWidget(BtnEditTeam, 0, 2);
 
@@ -158,6 +160,7 @@
             BtnDeleteTeam->setIconSize(pmDelete.size());
             BtnDeleteTeam->setIcon(pmDelete);
             BtnDeleteTeam->setMaximumWidth(pmDelete.width() + 6);
+            BtnDeleteTeam->setStyleSheet("padding: 0px;");
             connect(BtnDeleteTeam, SIGNAL(clicked()), this, SLOT(requestDeleteSelectedTeam()));
             groupTeams->layout()->addWidget(BtnDeleteTeam, 0, 3);
 
@@ -184,6 +187,7 @@
             SchemeNew->setIconSize(pmNew.size());
             SchemeNew->setIcon(pmNew);
             SchemeNew->setMaximumWidth(pmNew.width() + 6);
+            SchemeNew->setStyleSheet("padding: 0px;");
             groupSchemes->layout()->addWidget(SchemeNew, 0, 1);
 
             SchemeEdit = new QPushButton(groupSchemes);
@@ -191,6 +195,7 @@
             SchemeEdit->setIconSize(pmEdit.size());
             SchemeEdit->setIcon(pmEdit);
             SchemeEdit->setMaximumWidth(pmEdit.width() + 6);
+            SchemeEdit->setStyleSheet("padding: 0px;");
             groupSchemes->layout()->addWidget(SchemeEdit, 0, 2);
 
             SchemeDelete = new QPushButton(groupSchemes);
@@ -198,6 +203,7 @@
             SchemeDelete->setIconSize(pmDelete.size());
             SchemeDelete->setIcon(pmDelete);
             SchemeDelete->setMaximumWidth(pmDelete.width() + 6);
+            SchemeDelete->setStyleSheet("padding: 0px;");
             groupSchemes->layout()->addWidget(SchemeDelete, 0, 3);
         }
 
@@ -217,6 +223,7 @@
             WeaponNew->setIconSize(pmNew.size());
             WeaponNew->setIcon(pmNew);
             WeaponNew->setMaximumWidth(pmNew.width() + 6);
+            WeaponNew->setStyleSheet("padding: 0px;");
             groupWeapons->layout()->addWidget(WeaponNew, 0, 1);
 
             WeaponEdit = new QPushButton(groupWeapons);
@@ -224,6 +231,7 @@
             WeaponEdit->setIconSize(pmEdit.size());
             WeaponEdit->setIcon(pmEdit);
             WeaponEdit->setMaximumWidth(pmEdit.width() + 6);
+            WeaponEdit->setStyleSheet("padding: 0px;");
             groupWeapons->layout()->addWidget(WeaponEdit, 0, 2);
 
             WeaponDelete = new QPushButton(groupWeapons);
@@ -231,6 +239,7 @@
             WeaponDelete->setIconSize(pmDelete.size());
             WeaponDelete->setIcon(pmDelete);
             WeaponDelete->setMaximumWidth(pmDelete.width() + 6);
+            WeaponDelete->setStyleSheet("padding: 0px;");
             groupWeapons->layout()->addWidget(WeaponDelete, 0, 3);
         }
 
--- a/QTfrontend/ui/page/pageselectweapon.cpp	Thu Jan 10 23:22:44 2019 +0100
+++ b/QTfrontend/ui/page/pageselectweapon.cpp	Fri Jan 11 01:44:04 2019 +0100
@@ -46,11 +46,15 @@
 
     // first row
     BtnNew = addButton(tr("New"), bottomLayout, 0, 1);
+    BtnNew->setStyleSheet("padding: 3px;");
     BtnDefault = addButton(tr("Default"), bottomLayout, 0, 2);
+    BtnDefault->setStyleSheet("padding: 3px;");
 
     // second row
     BtnCopy = addButton(tr("Copy"), bottomLayout, 1, 1);
+    BtnCopy->setStyleSheet("padding: 3px;");
     BtnDelete = addButton(tr("Delete"), bottomLayout, 1, 2);
+    BtnDelete->setStyleSheet("padding: 3px;");
 
     bottomLayout->setColumnStretch(1,1);
     bottomLayout->setColumnStretch(2,1);
--- a/QTfrontend/ui/widget/gamecfgwidget.cpp	Thu Jan 10 23:22:44 2019 +0100
+++ b/QTfrontend/ui/widget/gamecfgwidget.cpp	Fri Jan 11 01:44:04 2019 +0100
@@ -150,6 +150,7 @@
     goToSchemePage->setIconSize(pmEdit.size());
     goToSchemePage->setIcon(iconEdit);
     goToSchemePage->setMaximumWidth(pmEdit.width() + 6);
+    goToSchemePage->setStyleSheet("padding: 0px;");
     SchemeWidgetLayout->addWidget(goToSchemePage, 0, 3);
     connect(goToSchemePage, SIGNAL(clicked()), this, SLOT(jumpToSchemes()));
 
@@ -172,6 +173,7 @@
     goToWeaponPage->setIconSize(pmEdit.size());
     goToWeaponPage->setIcon(pmEdit);
     goToWeaponPage->setMaximumWidth(pmEdit.width() + 6);
+    goToWeaponPage->setStyleSheet("padding: 0px;");
     SchemeWidgetLayout->addWidget(goToWeaponPage, 1, 3);
     connect(goToWeaponPage, SIGNAL(clicked()), this, SLOT(jumpToWeapons()));