Skip to content

Commit

Permalink
Remove setting font specifically on widgets
Browse files Browse the repository at this point in the history
instead use qstylesheet and it might work better.
  • Loading branch information
MrStevns committed May 13, 2024
1 parent 06e7169 commit d46dd1d
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 117 deletions.
2 changes: 2 additions & 0 deletions app/src/basedockwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ BaseDockWidget::BaseDockWidget(QWidget* pParent)
}
#endif

setStyleSheet("QWidget { font-size: 11px } ");

}

BaseDockWidget::~BaseDockWidget()
Expand Down
2 changes: 2 additions & 0 deletions app/src/timelinepage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
43 changes: 1 addition & 42 deletions app/ui/bucketoptionswidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
<height>0</height>
</size>
</property>
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
Expand Down Expand Up @@ -55,11 +50,6 @@
</property>
<item>
<widget class="QLabel" name="referenceLayerDescLabel">
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="text">
<string>Reference</string>
</property>
Expand All @@ -73,11 +63,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
</widget>
</item>
</layout>
Expand All @@ -89,11 +74,6 @@
</property>
<item>
<widget class="QLabel" name="blendModeLabel">
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="text">
<string>Blend mode</string>
</property>
Expand All @@ -107,11 +87,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
</widget>
</item>
</layout>
Expand Down Expand Up @@ -157,23 +132,13 @@
</item>
<item row="1" column="2">
<widget class="QSpinBox" name="expandSpinBox">
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="maximum">
<number>0</number>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QSpinBox" name="colorToleranceSpinbox">
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="maximum">
<number>0</number>
</property>
Expand Down Expand Up @@ -211,13 +176,7 @@
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="strokeThicknessSpinBox">
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
</widget>
<widget class="QDoubleSpinBox" name="strokeThicknessSpinBox"/>
</item>
</layout>
</item>
Expand Down
10 changes: 0 additions & 10 deletions app/ui/cameraoptionswidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
<height>0</height>
</size>
</property>
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="leftMargin">
<number>0</number>
Expand All @@ -36,11 +31,6 @@
</property>
<item>
<widget class="QGroupBox" name="transformGroupBox">
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="title">
<string>Transform</string>
</property>
Expand Down
5 changes: 0 additions & 5 deletions app/ui/colorinspector.ui
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
<height>114</height>
</size>
</property>
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<layout class="QVBoxLayout">
<property name="leftMargin">
<number>3</number>
Expand Down
5 changes: 0 additions & 5 deletions app/ui/colorpalette.ui
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
<height>132</height>
</size>
</property>
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="windowTitle">
<string comment="Window title of color palette.">Color Palette</string>
</property>
Expand Down
45 changes: 0 additions & 45 deletions app/ui/onionskin.ui
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
<height>122</height>
</size>
</property>
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="floating">
<bool>false</bool>
</property>
Expand All @@ -34,11 +29,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>0</number>
Expand Down Expand Up @@ -117,11 +107,6 @@
</property>
<item>
<widget class="QGroupBox" name="prevFramesGroup">
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="title">
<string>Previous Frames</string>
</property>
Expand Down Expand Up @@ -206,11 +191,6 @@
</item>
<item>
<widget class="QGroupBox" name="nextFramesGroup">
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="title">
<string>Next Frames</string>
</property>
Expand Down Expand Up @@ -307,11 +287,6 @@
</item>
<item>
<widget class="QGroupBox" name="opacityGroup">
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="title">
<string>Distributed Opacity</string>
</property>
Expand Down Expand Up @@ -357,11 +332,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="text">
<string>Max</string>
</property>
Expand Down Expand Up @@ -427,11 +397,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="text">
<string>Min</string>
</property>
Expand Down Expand Up @@ -481,23 +446,13 @@
</property>
<item>
<widget class="QCheckBox" name="onionSkinMode">
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="text">
<string>Show Keyframes Only</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="onionWhilePlayback">
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="text">
<string>Show During Playback</string>
</property>
Expand Down
5 changes: 0 additions & 5 deletions app/ui/timelinepage.ui
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,6 @@
</item>
<item>
<widget class="QLabel" name="labelAppliesTo">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;(Applies to Pencil, Eraser, Pen, Polyline, Bucket and Brush tools)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
Expand Down
5 changes: 0 additions & 5 deletions app/ui/tooloptions.ui
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
<height>0</height>
</size>
</property>
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
Expand Down

0 comments on commit d46dd1d

Please sign in to comment.