Skip to content

Commit

Permalink
Revert font setting in custom class (#1941)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbo committed Jun 20, 2024
2 parents 2514751 + 1e6377a commit f662eae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions novelwriter/extensions/configlayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
QVBoxLayout, QWidget
)

from novelwriter import CONFIG, SHARED
from novelwriter import CONFIG

DEFAULT_SCALE = 0.9

Expand Down Expand Up @@ -266,7 +266,7 @@ def __init__(
self._color = color or default
self._faded = faded or default

font = SHARED.theme.guiFont
font = self.font()
font.setPointSizeF(scale*font.pointSizeF())
font.setWeight(QFont.Weight.Bold if bold else QFont.Weight.Normal)
if color:
Expand Down

0 comments on commit f662eae

Please sign in to comment.