Use the same header label style as on other dialogs

This commit is contained in:
Veronica Berglyd Olsen
2024-02-11 19:15:18 +01:00
parent e185f87875
commit edfb4e60c6
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -32,11 +32,12 @@ from PyQt5.QtGui import QCloseEvent
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
@@ -67,7 +68,10 @@ class GuiWordList(QDialog):
)
# 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"))
+1 -1
View File
@@ -24,9 +24,9 @@ import pytest
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