From d46dd1d12ca54b4a57d31901560725d7b05a33f8 Mon Sep 17 00:00:00 2001 From: MrStevns Date: Mon, 13 May 2024 20:01:55 +0200 Subject: [PATCH] Remove setting font specifically on widgets instead use qstylesheet and it might work better. --- app/src/basedockwidget.cpp | 2 ++ app/src/timelinepage.cpp | 2 ++ app/ui/bucketoptionswidget.ui | 43 +-------------------------------- app/ui/cameraoptionswidget.ui | 10 -------- app/ui/colorinspector.ui | 5 ---- app/ui/colorpalette.ui | 5 ---- app/ui/onionskin.ui | 45 ----------------------------------- app/ui/timelinepage.ui | 5 ---- app/ui/tooloptions.ui | 5 ---- 9 files changed, 5 insertions(+), 117 deletions(-) diff --git a/app/src/basedockwidget.cpp b/app/src/basedockwidget.cpp index d052dd1cc1..68032d50dd 100644 --- a/app/src/basedockwidget.cpp +++ b/app/src/basedockwidget.cpp @@ -35,6 +35,8 @@ BaseDockWidget::BaseDockWidget(QWidget* pParent) } #endif + setStyleSheet("QWidget { font-size: 11px } "); + } BaseDockWidget::~BaseDockWidget() diff --git a/app/src/timelinepage.cpp b/app/src/timelinepage.cpp index c25a901c68..aaebde3579 100644 --- a/app/src/timelinepage.cpp +++ b/app/src/timelinepage.cpp @@ -49,6 +49,8 @@ TimelinePage::TimelinePage() connect(ui->visibilitySlider, &QSlider::valueChanged, this, &TimelinePage::layerVisibilityThresholdChanged); connect(ui->visibilitySpinbox, spinBoxValueChange, this, &TimelinePage::layerVisibilityThresholdChanged); ui->visibilitySpinbox->setSuffix("%"); + + ui->labelAppliesTo->setStyleSheet("font-size: 10px"); } TimelinePage::~TimelinePage() diff --git a/app/ui/bucketoptionswidget.ui b/app/ui/bucketoptionswidget.ui index d894b36e0c..f3fd9c2554 100644 --- a/app/ui/bucketoptionswidget.ui +++ b/app/ui/bucketoptionswidget.ui @@ -16,11 +16,6 @@ 0 - - - 11 - - Form @@ -55,11 +50,6 @@ - - - 11 - - Reference @@ -73,11 +63,6 @@ 0 - - - 11 - - @@ -89,11 +74,6 @@ - - - 11 - - Blend mode @@ -107,11 +87,6 @@ 0 - - - 11 - - @@ -157,11 +132,6 @@ - - - 11 - - 0 @@ -169,11 +139,6 @@ - - - 11 - - 0 @@ -211,13 +176,7 @@ - - - - 11 - - - + diff --git a/app/ui/cameraoptionswidget.ui b/app/ui/cameraoptionswidget.ui index 691255fd92..092c75fb6e 100644 --- a/app/ui/cameraoptionswidget.ui +++ b/app/ui/cameraoptionswidget.ui @@ -16,11 +16,6 @@ 0 - - - 11 - - 0 @@ -36,11 +31,6 @@ - - - 11 - - Transform diff --git a/app/ui/colorinspector.ui b/app/ui/colorinspector.ui index 0807861df7..2140a289c6 100644 --- a/app/ui/colorinspector.ui +++ b/app/ui/colorinspector.ui @@ -23,11 +23,6 @@ 114 - - - 11 - - 3 diff --git a/app/ui/colorpalette.ui b/app/ui/colorpalette.ui index a458293e2e..1155562fdd 100644 --- a/app/ui/colorpalette.ui +++ b/app/ui/colorpalette.ui @@ -16,11 +16,6 @@ 132 - - - 11 - - Color Palette diff --git a/app/ui/onionskin.ui b/app/ui/onionskin.ui index e96d22a652..9694cfc12f 100644 --- a/app/ui/onionskin.ui +++ b/app/ui/onionskin.ui @@ -16,11 +16,6 @@ 122 - - - 11 - - false @@ -34,11 +29,6 @@ 0 - - - 11 - - 0 @@ -117,11 +107,6 @@ - - - 11 - - Previous Frames @@ -206,11 +191,6 @@ - - - 11 - - Next Frames @@ -307,11 +287,6 @@ - - - 11 - - Distributed Opacity @@ -357,11 +332,6 @@ 0 - - - 11 - - Max @@ -427,11 +397,6 @@ 0 - - - 11 - - Min @@ -481,11 +446,6 @@ - - - 11 - - Show Keyframes Only @@ -493,11 +453,6 @@ - - - 11 - - Show During Playback diff --git a/app/ui/timelinepage.ui b/app/ui/timelinepage.ui index bb67929173..90e3c72e20 100644 --- a/app/ui/timelinepage.ui +++ b/app/ui/timelinepage.ui @@ -126,11 +126,6 @@ - - - 10 - - <html><head/><body><p>(Applies to Pencil, Eraser, Pen, Polyline, Bucket and Brush tools)</p></body></html> diff --git a/app/ui/tooloptions.ui b/app/ui/tooloptions.ui index 645193bf86..e9744147b4 100644 --- a/app/ui/tooloptions.ui +++ b/app/ui/tooloptions.ui @@ -16,11 +16,6 @@ 0 - - - 11 - - Form