Skip to content

Commit b070f5f

Browse files
authored
FontSizeAdjust - set exact size
1 parent 5d8f6e4 commit b070f5f

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

shapesandlayers/ShapesAndLayers/FontSizeAdjust.ui

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
<string>Start</string>
4141
</property>
4242
<property name="icon">
43-
<iconset theme="media-playback-start"/>
43+
<iconset theme="media-playback-start">
44+
<normaloff>.</normaloff>.</iconset>
4445
</property>
4546
</widget>
4647
</item>
@@ -56,14 +57,15 @@
5657
<string/>
5758
</property>
5859
<property name="icon">
59-
<iconset theme="select-all"/>
60+
<iconset theme="select-all">
61+
<normaloff>.</normaloff>.</iconset>
6062
</property>
6163
</widget>
6264
</item>
6365
<item row="1" column="1">
6466
<widget class="QComboBox" name="cmbFontAdjustOperator">
6567
<property name="currentIndex">
66-
<number>1</number>
68+
<number>0</number>
6769
</property>
6870
<item>
6971
<property name="text">
@@ -85,6 +87,11 @@
8587
<string>Subtracting</string>
8688
</property>
8789
</item>
90+
<item>
91+
<property name="text">
92+
<string>Setting exactly to</string>
93+
</property>
94+
</item>
8895
</widget>
8996
</item>
9097
<item row="1" column="2">

shapesandlayers/ShapesAndLayers/ShapesAndLayersFontSizeAdjust.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def fontResize(self, adjustOp, adjustAmount, orgSize):
5353
elif adjustOp == 1: return orgSize / adjustAmount
5454
elif adjustOp == 2: return orgSize * adjustAmount
5555
elif adjustOp == 3 and orgSize > adjustAmount: return orgSize - adjustAmount
56+
elif adjustOp == 4: return adjustAmount
5657
else: return orgSize
5758

5859

0 commit comments

Comments
 (0)