Skip to content

Commit

Permalink
Use the same header label style as on other dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbo committed Feb 11, 2024
1 parent e185f87 commit edfb4e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions novelwriter/dialogs/wordlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@
from PyQt5.QtCore import Qt, pyqtSignal, pyqtSlot
from PyQt5.QtWidgets import (
QAbstractItemView, QDialog, QDialogButtonBox, QFileDialog, QHBoxLayout,
QLabel, QLineEdit, QListWidget, QPushButton, QVBoxLayout, qApp
QLineEdit, QListWidget, QPushButton, QVBoxLayout, qApp
)

from novelwriter import CONFIG, SHARED
from novelwriter.core.spellcheck import UserDictionary
from novelwriter.extensions.configlayout import NColourLabel

if TYPE_CHECKING: # pragma: no cover
from novelwriter.guimain import GuiMain
Expand Down Expand Up @@ -67,7 +68,10 @@ def __init__(self, mainGui: GuiMain) -> None:
)

# Header
self.headLabel = QLabel("<b>%s</b>" % self.tr("Project Word List"))
self.headLabel = NColourLabel(
"Project Word List", SHARED.theme.helpText, parent=self,
scale=NColourLabel.HEADER_SCALE
)

self.importButton = QPushButton(SHARED.theme.getIcon("import"), "", self)
self.importButton.setToolTip(self.tr("Import words from text file"))
Expand Down
2 changes: 1 addition & 1 deletion tests/test_dialogs/test_dlg_wordlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QDialog, QAction, QFileDialog
from tests.mocked import causeOSError

from tools import buildTestProject
from mocked import causeOSError

from novelwriter import SHARED
from novelwriter.core.spellcheck import UserDictionary
Expand Down

0 comments on commit edfb4e6

Please sign in to comment.