Skip to content

Commit f662eae

Browse files
authored
Revert font setting in custom class (#1941)
2 parents 2514751 + 1e6377a commit f662eae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

novelwriter/extensions/configlayout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
QVBoxLayout, QWidget
3535
)
3636

37-
from novelwriter import CONFIG, SHARED
37+
from novelwriter import CONFIG
3838

3939
DEFAULT_SCALE = 0.9
4040

@@ -266,7 +266,7 @@ def __init__(
266266
self._color = color or default
267267
self._faded = faded or default
268268

269-
font = SHARED.theme.guiFont
269+
font = self.font()
270270
font.setPointSizeF(scale*font.pointSizeF())
271271
font.setWeight(QFont.Weight.Bold if bold else QFont.Weight.Normal)
272272
if color:

0 commit comments

Comments
 (0)