From aefcec13ce5027b50257fe8ecf53e3e719a94ce5 Mon Sep 17 00:00:00 2001
Message-Id: <aefcec13ce5027b50257fe8ecf53e3e719a94ce5.1614722512.git.bubu@ujevangelizacio.hu>
From: =?UTF-8?q?Gyuris=20Gell=C3=A9rt?= <bubu@ujevangelizacio.hu>
Date: Tue, 2 Mar 2021 23:01:26 +0100
Subject: [PATCH] Unify size of icon buttons on dock palettes

---
 scribus/plugins/shapes/shapepalette.cpp   |  26 +-
 scribus/ui/aligndistribute.ui             | 336 ++++++++++++++++++++++
 scribus/ui/layers.cpp                     |  25 +-
 scribus/ui/propertiespalette_shapebase.ui | 122 +++++---
 scribus/ui/propertiespalette_tablebase.ui |  40 ++-
 scribus/ui/propertiespalette_xyzbase.ui   | 124 +++++++-
 scribus/ui/scrapbookpalette.cpp           |  10 +
 scribus/ui/transparencypalette.ui         |  24 ++
 8 files changed, 633 insertions(+), 74 deletions(-)

diff --git a/scribus/plugins/shapes/shapepalette.cpp b/scribus/plugins/shapes/shapepalette.cpp
index 532f6f098..be4453244 100644
--- a/scribus/plugins/shapes/shapepalette.cpp
+++ b/scribus/plugins/shapes/shapepalette.cpp
@@ -282,19 +282,21 @@ ShapePalette::ShapePalette( QWidget* parent) : ScDockPalette(parent, "Shap", Qt:
 {
 	setMinimumSize( QSize( 220, 240 ) );
 	setObjectName(QString::fromLocal8Bit("Shap"));
-	setSizePolicy( QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum));
-	containerWidget = new QWidget(this);
-	vLayout = new QVBoxLayout( containerWidget );
-	vLayout->setSpacing(3);
-	vLayout->setContentsMargins(3, 3, 3, 3);
-	buttonLayout = new QHBoxLayout;
-	buttonLayout->setSpacing(6);
-	buttonLayout->setContentsMargins(0, 0, 0, 0);
-
-	importButton = new QToolButton(this);
-	importButton->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
+	setSizePolicy( QSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum));
+	containerWidget = new QWidget(this);
+	vLayout = new QVBoxLayout( containerWidget );
+	vLayout->setSpacing(3);
+	vLayout->setContentsMargins(3, 3, 3, 3);
+	buttonLayout = new QHBoxLayout;
+	buttonLayout->setSpacing(6);
+	buttonLayout->setContentsMargins(0, 0, 0, 0);
+
+	importButton = new QToolButton(this);
+	importButton->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
 	importButton->setIcon(IconManager::instance().loadIcon("16/document-open.png"));
 	importButton->setIconSize(QSize(16, 16));
+	importButton->setMinimumSize(24, 24);
+	importButton->setMaximumSize(24, 24);
 	buttonLayout->addWidget( importButton );
 
 	QSpacerItem* spacer = new QSpacerItem( 1, 1, QSizePolicy::Expanding, QSizePolicy::Minimum );
@@ -304,6 +306,8 @@ ShapePalette::ShapePalette( QWidget* parent) : ScDockPalette(parent, "Shap", Qt:
 	closeButton->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
 	closeButton->setIcon(IconManager::instance().loadIcon("16/close.png"));
 	closeButton->setIconSize(QSize(16, 16));
+	closeButton->setMinimumSize(24, 24);
+	closeButton->setMaximumSize(24, 24);
 	buttonLayout->addWidget( closeButton );
 	vLayout->addLayout( buttonLayout );
 
diff --git a/scribus/ui/aligndistribute.ui b/scribus/ui/aligndistribute.ui
index 30163d713..35b920a29 100644
--- a/scribus/ui/aligndistribute.ui
+++ b/scribus/ui/aligndistribute.ui
@@ -168,6 +168,18 @@
            <layout class="QGridLayout" name="_5">
             <item row="1" column="3">
              <widget class="QToolButton" name="alignBottomInToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -181,6 +193,18 @@
             </item>
             <item row="1" column="1">
              <widget class="QToolButton" name="alignTopInToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -194,6 +218,18 @@
             </item>
             <item row="0" column="1">
              <widget class="QToolButton" name="alignLeftInToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -207,6 +243,18 @@
             </item>
             <item row="0" column="3">
              <widget class="QToolButton" name="alignRightInToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -220,6 +268,18 @@
             </item>
             <item row="1" column="4">
              <widget class="QToolButton" name="alignBottomOutToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -233,6 +293,18 @@
             </item>
             <item row="1" column="0">
              <widget class="QToolButton" name="alignTopOutToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -246,6 +318,18 @@
             </item>
             <item row="1" column="2">
              <widget class="QToolButton" name="alignCenterVerToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -259,6 +343,18 @@
             </item>
             <item row="0" column="0">
              <widget class="QToolButton" name="alignLeftOutToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -272,6 +368,18 @@
             </item>
             <item row="0" column="4">
              <widget class="QToolButton" name="alignRightOutToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -285,6 +393,18 @@
             </item>
             <item row="0" column="2">
              <widget class="QToolButton" name="alignCenterHorToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -379,6 +499,18 @@
            <layout class="QGridLayout" name="_7">
             <item row="0" column="3">
              <widget class="QToolButton" name="distributeDistHToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -392,6 +524,18 @@
             </item>
             <item row="1" column="2">
              <widget class="QToolButton" name="distributeTopToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -405,6 +549,18 @@
             </item>
             <item row="1" column="1">
              <widget class="QToolButton" name="distributeCenterVToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -418,6 +574,18 @@
             </item>
             <item row="0" column="2">
              <widget class="QToolButton" name="distributeRightToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -431,6 +599,18 @@
             </item>
             <item row="3" column="0">
              <widget class="QToolButton" name="toolButtonDummy1">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -447,6 +627,18 @@
               <property name="enabled">
                <bool>true</bool>
               </property>
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -460,6 +652,18 @@
             </item>
             <item row="0" column="0">
              <widget class="QToolButton" name="distributeLeftToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -476,6 +680,18 @@
               <property name="enabled">
                <bool>true</bool>
               </property>
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -489,6 +705,18 @@
             </item>
             <item row="3" column="1">
              <widget class="QToolButton" name="distributeDistValueHToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -505,6 +733,18 @@
               <property name="enabled">
                <bool>true</bool>
               </property>
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -518,6 +758,18 @@
             </item>
             <item row="0" column="1">
              <widget class="QToolButton" name="distributeCenterHToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -531,6 +783,18 @@
             </item>
             <item row="3" column="3">
              <widget class="QToolButton" name="toolButtonDummy2">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -547,6 +811,18 @@
               <property name="enabled">
                <bool>true</bool>
               </property>
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -560,6 +836,18 @@
             </item>
             <item row="3" column="2">
              <widget class="QToolButton" name="distributeDistValueVToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -573,6 +861,18 @@
             </item>
             <item row="1" column="3">
              <widget class="QToolButton" name="distributeDistVToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -586,6 +886,18 @@
             </item>
             <item row="1" column="0">
              <widget class="QToolButton" name="distributeBottomToolButton">
+              <property name="minimumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
+              <property name="maximumSize">
+               <size>
+                <width>24</width>
+                <height>24</height>
+               </size>
+              </property>
               <property name="text">
                <string/>
               </property>
@@ -790,6 +1102,18 @@
           </item>
           <item>
            <widget class="QToolButton" name="swapLeftToolButton">
+            <property name="minimumSize">
+             <size>
+              <width>24</width>
+              <height>24</height>
+             </size>
+            </property>
+            <property name="maximumSize">
+             <size>
+              <width>24</width>
+              <height>24</height>
+             </size>
+            </property>
             <property name="text">
              <string/>
             </property>
@@ -803,6 +1127,18 @@
           </item>
           <item>
            <widget class="QToolButton" name="swapRightToolButton">
+            <property name="minimumSize">
+             <size>
+              <width>24</width>
+              <height>24</height>
+             </size>
+            </property>
+            <property name="maximumSize">
+             <size>
+              <width>24</width>
+              <height>24</height>
+             </size>
+            </property>
             <property name="text">
              <string/>
             </property>
diff --git a/scribus/ui/layers.cpp b/scribus/ui/layers.cpp
index ebef61598..84a8d9e12 100644
--- a/scribus/ui/layers.cpp
+++ b/scribus/ui/layers.cpp
@@ -113,36 +113,41 @@ LayerPalette::LayerPalette(QWidget* parent) : ScDockPalette(parent, "Layers", Qt
 	Layout1->addItem( spacer );
 
 	newLayerButton = new QPushButton( this );
-	newLayerButton->setMinimumSize( QSize( 50, 24 ) );
-	newLayerButton->setMaximumSize( QSize( 50, 24 ) );
+	newLayerButton->setIconSize(QSize(16, 16));
+	newLayerButton->setMinimumSize( QSize( 48, 24 ) );
+	newLayerButton->setMaximumSize( QSize( 48, 24 ) );
 	newLayerButton->setText( "" );
 	newLayerButton->setIcon(IconManager::instance().loadIcon("16/list-add.png"));
 	Layout1->addWidget( newLayerButton );
 
 	deleteLayerButton = new QPushButton( this );
-	deleteLayerButton->setMinimumSize( QSize( 50, 24 ) );
-	deleteLayerButton->setMaximumSize( QSize( 50, 24 ) );
+	deleteLayerButton->setIconSize(QSize(16, 16));
+	deleteLayerButton->setMinimumSize( QSize( 48, 24 ) );
+	deleteLayerButton->setMaximumSize( QSize( 48, 24 ) );
 	deleteLayerButton->setText( "" );
 	deleteLayerButton->setIcon(IconManager::instance().loadIcon("16/list-remove.png"));
 	Layout1->addWidget( deleteLayerButton );
 	
 	duplicateLayerButton = new QPushButton( this );
-	duplicateLayerButton->setMinimumSize( QSize( 50, 24 ) );
-	duplicateLayerButton->setMaximumSize( QSize( 50, 24 ) );
+	duplicateLayerButton->setIconSize(QSize(16, 16));
+	duplicateLayerButton->setMinimumSize( QSize( 48, 24 ) );
+	duplicateLayerButton->setMaximumSize( QSize( 48, 24 ) );
 	duplicateLayerButton->setText( "" );
 	duplicateLayerButton->setIcon(IconManager::instance().loadIcon("16/edit-copy.png"));
 	Layout1->addWidget( duplicateLayerButton );
 
 	raiseLayerButton = new QPushButton( this );
-	raiseLayerButton->setMinimumSize( QSize( 50, 24 ) );
-	raiseLayerButton->setMaximumSize( QSize( 50, 24 ) );
+	raiseLayerButton->setIconSize(QSize(16, 16));
+	raiseLayerButton->setMinimumSize( QSize( 48, 24 ) );
+	raiseLayerButton->setMaximumSize( QSize( 48, 24 ) );
 	raiseLayerButton->setText( "" );
 	raiseLayerButton->setIcon(IconManager::instance().loadIcon("16/go-up.png"));
 	Layout1->addWidget( raiseLayerButton );
 
 	lowerLayerButton = new QPushButton( this );
-	lowerLayerButton->setMinimumSize( QSize( 50, 24 ) );
-	lowerLayerButton->setMaximumSize( QSize( 50, 24 ) );
+	lowerLayerButton->setIconSize(QSize(16, 16));
+	lowerLayerButton->setMinimumSize( QSize( 48, 24 ) );
+	lowerLayerButton->setMaximumSize( QSize( 48, 24 ) );
 	lowerLayerButton->setText( "" );
 	lowerLayerButton->setIcon(IconManager::instance().loadIcon("16/go-down.png"));
 	Layout1->addWidget( lowerLayerButton );
diff --git a/scribus/ui/propertiespalette_shapebase.ui b/scribus/ui/propertiespalette_shapebase.ui
index 72ba06355..6e282ac4e 100644
--- a/scribus/ui/propertiespalette_shapebase.ui
+++ b/scribus/ui/propertiespalette_shapebase.ui
@@ -48,16 +48,16 @@
        </property>
        <item>
         <widget class="QToolButton" name="textFlowDisabled">
-         <property name="sizePolicy">
-          <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
-           <horstretch>0</horstretch>
-           <verstretch>0</verstretch>
-          </sizepolicy>
+         <property name="minimumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
          </property>
          <property name="maximumSize">
           <size>
-           <width>22</width>
-           <height>16777215</height>
+           <width>24</width>
+           <height>24</height>
           </size>
          </property>
          <property name="toolTip">
@@ -82,16 +82,16 @@
        </item>
        <item>
         <widget class="QToolButton" name="textFlowUsesFrameShape">
-         <property name="sizePolicy">
-          <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
-           <horstretch>0</horstretch>
-           <verstretch>0</verstretch>
-          </sizepolicy>
+         <property name="minimumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
          </property>
          <property name="maximumSize">
           <size>
-           <width>22</width>
-           <height>16777215</height>
+           <width>24</width>
+           <height>24</height>
           </size>
          </property>
          <property name="toolTip">
@@ -116,16 +116,16 @@
        </item>
        <item>
         <widget class="QToolButton" name="textFlowUsesBoundingBox">
-         <property name="sizePolicy">
-          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
-           <horstretch>0</horstretch>
-           <verstretch>0</verstretch>
-          </sizepolicy>
+         <property name="minimumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
          </property>
          <property name="maximumSize">
           <size>
-           <width>22</width>
-           <height>16777215</height>
+           <width>24</width>
+           <height>24</height>
           </size>
          </property>
          <property name="toolTip">
@@ -150,16 +150,16 @@
        </item>
        <item>
         <widget class="QToolButton" name="textFlowUsesContourLine">
-         <property name="sizePolicy">
-          <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
-           <horstretch>0</horstretch>
-           <verstretch>0</verstretch>
-          </sizepolicy>
+         <property name="minimumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
          </property>
          <property name="maximumSize">
           <size>
-           <width>22</width>
-           <height>16777215</height>
+           <width>24</width>
+           <height>24</height>
           </size>
          </property>
          <property name="toolTip">
@@ -184,16 +184,16 @@
        </item>
        <item>
         <widget class="QToolButton" name="textFlowUsesImageClipping">
-         <property name="sizePolicy">
-          <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
-           <horstretch>0</horstretch>
-           <verstretch>0</verstretch>
-          </sizepolicy>
+         <property name="minimumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
          </property>
          <property name="maximumSize">
           <size>
-           <width>22</width>
-           <height>16777215</height>
+           <width>24</width>
+           <height>24</height>
           </size>
          </property>
          <property name="toolTip">
@@ -238,6 +238,18 @@
        </property>
        <item>
         <widget class="Autoforms" name="customShape">
+         <property name="minimumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
+         <property name="maximumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
          <property name="toolTip">
           <string>Choose the shape of frame...</string>
          </property>
@@ -268,10 +280,22 @@
        </item>
        <item>
         <widget class="QLabel" name="roundRectIcon">
+         <property name="sizePolicy">
+          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+           <horstretch>0</horstretch>
+           <verstretch>0</verstretch>
+          </sizepolicy>
+         </property>
          <property name="minimumSize">
           <size>
-           <width>10</width>
-           <height>10</height>
+           <width>22</width>
+           <height>22</height>
+          </size>
+         </property>
+         <property name="maximumSize">
+          <size>
+           <width>22</width>
+           <height>22</height>
           </size>
          </property>
          <property name="toolTip">
@@ -318,6 +342,18 @@
        </property>
        <item>
         <widget class="QToolButton" name="evenOdd">
+         <property name="minimumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
+         <property name="maximumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
          <property name="toolTip">
           <string>Any path self-intersections or subpaths create holes in the fill (fill-rule: evenodd)</string>
          </property>
@@ -337,6 +373,18 @@
        </item>
        <item>
         <widget class="QToolButton" name="nonZero">
+         <property name="minimumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
+         <property name="maximumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
          <property name="toolTip">
           <string>Fill is solid unless a subpath is counterdirectional  (fill-rule: nonzero)</string>
          </property>
diff --git a/scribus/ui/propertiespalette_tablebase.ui b/scribus/ui/propertiespalette_tablebase.ui
index 48d96dc0b..b51e4e73b 100644
--- a/scribus/ui/propertiespalette_tablebase.ui
+++ b/scribus/ui/propertiespalette_tablebase.ui
@@ -72,6 +72,18 @@
       </item>
       <item row="0" column="2">
        <widget class="QToolButton" name="buttonClearTableStyle">
+        <property name="minimumSize">
+         <size>
+          <width>24</width>
+          <height>24</height>
+         </size>
+        </property>
+        <property name="maximumSize">
+         <size>
+          <width>24</width>
+          <height>24</height>
+         </size>
+        </property>
         <property name="toolTip">
          <string>Remove Direct Table Formatting</string>
         </property>
@@ -108,6 +120,18 @@
       </item>
       <item row="1" column="2">
        <widget class="QToolButton" name="buttonClearCellStyle">
+        <property name="minimumSize">
+         <size>
+          <width>24</width>
+          <height>24</height>
+         </size>
+        </property>
+        <property name="maximumSize">
+         <size>
+          <width>24</width>
+          <height>24</height>
+         </size>
+        </property>
         <property name="toolTip">
          <string>Remove Direct Cell Formatting</string>
         </property>
@@ -290,14 +314,14 @@
             </property>
             <property name="minimumSize">
              <size>
-              <width>20</width>
-              <height>20</height>
+              <width>24</width>
+              <height>24</height>
              </size>
             </property>
             <property name="maximumSize">
              <size>
-              <width>20</width>
-              <height>20</height>
+              <width>24</width>
+              <height>24</height>
              </size>
             </property>
             <property name="text">
@@ -318,14 +342,14 @@
             </property>
             <property name="minimumSize">
              <size>
-              <width>20</width>
-              <height>20</height>
+              <width>24</width>
+              <height>24</height>
              </size>
             </property>
             <property name="maximumSize">
              <size>
-              <width>20</width>
-              <height>20</height>
+              <width>24</width>
+              <height>24</height>
              </size>
             </property>
             <property name="text">
diff --git a/scribus/ui/propertiespalette_xyzbase.ui b/scribus/ui/propertiespalette_xyzbase.ui
index 47fabf1f5..c36538939 100644
--- a/scribus/ui/propertiespalette_xyzbase.ui
+++ b/scribus/ui/propertiespalette_xyzbase.ui
@@ -272,10 +272,16 @@
         </property>
         <item row="0" column="0">
          <widget class="QToolButton" name="levelUp">
+          <property name="minimumSize">
+           <size>
+            <width>24</width>
+            <height>24</height>
+           </size>
+          </property>
           <property name="maximumSize">
            <size>
-            <width>22</width>
-            <height>22</height>
+            <width>24</width>
+            <height>24</height>
            </size>
           </property>
           <property name="toolTip">
@@ -288,10 +294,16 @@
         </item>
         <item row="1" column="0">
          <widget class="QToolButton" name="levelDown">
+          <property name="minimumSize">
+           <size>
+            <width>24</width>
+            <height>24</height>
+           </size>
+          </property>
           <property name="maximumSize">
            <size>
-            <width>22</width>
-            <height>22</height>
+            <width>24</width>
+            <height>24</height>
            </size>
           </property>
           <property name="toolTip">
@@ -304,10 +316,16 @@
         </item>
         <item row="0" column="1">
          <widget class="QToolButton" name="levelTop">
+          <property name="minimumSize">
+           <size>
+            <width>24</width>
+            <height>24</height>
+           </size>
+          </property>
           <property name="maximumSize">
            <size>
-            <width>22</width>
-            <height>22</height>
+            <width>24</width>
+            <height>24</height>
            </size>
           </property>
           <property name="toolTip">
@@ -320,10 +338,16 @@
         </item>
         <item row="1" column="1">
          <widget class="QToolButton" name="levelBottom">
+          <property name="minimumSize">
+           <size>
+            <width>24</width>
+            <height>24</height>
+           </size>
+          </property>
           <property name="maximumSize">
            <size>
-            <width>22</width>
-            <height>22</height>
+            <width>24</width>
+            <height>24</height>
            </size>
           </property>
           <property name="toolTip">
@@ -367,6 +391,18 @@
        </property>
        <item row="0" column="0">
         <widget class="QToolButton" name="doGroup">
+         <property name="minimumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
+         <property name="maximumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
          <property name="toolTip">
           <string>Group the selected objects</string>
          </property>
@@ -377,6 +413,18 @@
        </item>
        <item row="1" column="0">
         <widget class="QToolButton" name="doUnGroup">
+         <property name="minimumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
+         <property name="maximumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
          <property name="toolTip">
           <string>Ungroup the selected group</string>
          </property>
@@ -387,6 +435,18 @@
        </item>
        <item row="0" column="1">
         <widget class="QToolButton" name="flipH">
+         <property name="minimumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
+         <property name="maximumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
          <property name="toolTip">
           <string>Flip horizontally</string>
          </property>
@@ -397,6 +457,18 @@
        </item>
        <item row="1" column="1">
         <widget class="QToolButton" name="flipV">
+         <property name="minimumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
+         <property name="maximumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
          <property name="toolTip">
           <string>Flip vertically</string>
          </property>
@@ -407,6 +479,18 @@
        </item>
        <item row="0" column="2">
         <widget class="QToolButton" name="doLock">
+         <property name="minimumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
+         <property name="maximumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
          <property name="toolTip">
           <string>Lock or unlock the object</string>
          </property>
@@ -417,6 +501,18 @@
        </item>
        <item row="1" column="2">
         <widget class="QToolButton" name="noPrint">
+         <property name="minimumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
+         <property name="maximumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
          <property name="toolTip">
           <string>Enable or disable exporting of the object</string>
          </property>
@@ -427,6 +523,18 @@
        </item>
        <item row="0" column="3">
         <widget class="QToolButton" name="noResize">
+         <property name="minimumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
+         <property name="maximumSize">
+          <size>
+           <width>24</width>
+           <height>24</height>
+          </size>
+         </property>
          <property name="toolTip">
           <string>Lock or unlock the size of the object</string>
          </property>
diff --git a/scribus/ui/scrapbookpalette.cpp b/scribus/ui/scrapbookpalette.cpp
index febb8443a..1d0436fd5 100644
--- a/scribus/ui/scrapbookpalette.cpp
+++ b/scribus/ui/scrapbookpalette.cpp
@@ -734,20 +734,30 @@ Biblio::Biblio(QWidget* parent) : ScDockPalette(parent, "Sclib", Qt::WindowFlags
 	newButton->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
 	newButton->setIcon(IconManager::instance().loadPixmap("16/document-new.png"));
 	newButton->setIconSize(QSize(16, 16));
+	newButton->setMinimumSize(24, 24);
+	newButton->setMaximumSize(24, 24);
 	upButton = new QToolButton(this);
 	upButton->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
 	upButton->setIcon(IconManager::instance().loadPixmap("16/go-up.png"));
 	upButton->setIconSize(QSize(16, 16));
+	upButton->setMinimumSize(24, 24);
+	upButton->setMaximumSize(24, 24);
 	importButton = new QToolButton(this);
 	importButton->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
 	importButton->setIcon(IconManager::instance().loadPixmap("compfile16.png"));
 	importButton->setIconSize(QSize(16, 16));
+	importButton->setMinimumSize(24, 24);
+	importButton->setMaximumSize(24, 24);
 	closeButton = new QToolButton(this);
 	closeButton->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
 	closeButton->setIcon(IconManager::instance().loadPixmap("16/close.png"));
 	closeButton->setIconSize(QSize(16, 16));
+	closeButton->setMinimumSize(24, 24);
+	closeButton->setMaximumSize(24, 24);
 	configButton = new QToolButton(this);
 	configButton->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
+	configButton->setMinimumSize(24, 24);
+	configButton->setMaximumSize(24, 24);
 
 	configMenue = new QMenu();
 	conf_HideDirs = configMenue->addAction( tr("Hide Directories"));
diff --git a/scribus/ui/transparencypalette.ui b/scribus/ui/transparencypalette.ui
index a407d2792..7119e821e 100644
--- a/scribus/ui/transparencypalette.ui
+++ b/scribus/ui/transparencypalette.ui
@@ -36,6 +36,18 @@
      </property>
      <item>
       <widget class="QToolButton" name="editLineSelector">
+       <property name="minimumSize">
+        <size>
+         <width>24</width>
+         <height>24</height>
+        </size>
+       </property>
+       <property name="maximumSize">
+        <size>
+         <width>24</width>
+         <height>24</height>
+        </size>
+       </property>
        <property name="toolTip">
         <string>Edit Line Color Properties</string>
        </property>
@@ -52,6 +64,18 @@
      </item>
      <item>
       <widget class="QToolButton" name="editFillSelector">
+       <property name="minimumSize">
+        <size>
+         <width>24</width>
+         <height>24</height>
+        </size>
+       </property>
+       <property name="maximumSize">
+        <size>
+         <width>24</width>
+         <height>24</height>
+        </size>
+       </property>
        <property name="toolTip">
         <string>Edit Fill Color Properties</string>
        </property>
-- 
2.27.0

