Use the same header label style as on other dialogs
This commit is contained in:
@@ -32,11 +32,12 @@ from PyQt5.QtGui import QCloseEvent
|
|||||||
from PyQt5.QtCore import Qt, pyqtSignal, pyqtSlot
|
from PyQt5.QtCore import Qt, pyqtSignal, pyqtSlot
|
||||||
from PyQt5.QtWidgets import (
|
from PyQt5.QtWidgets import (
|
||||||
QAbstractItemView, QDialog, QDialogButtonBox, QFileDialog, QHBoxLayout,
|
QAbstractItemView, QDialog, QDialogButtonBox, QFileDialog, QHBoxLayout,
|
||||||
QLabel, QLineEdit, QListWidget, QPushButton, QVBoxLayout, qApp
|
QLineEdit, QListWidget, QPushButton, QVBoxLayout, qApp
|
||||||
)
|
)
|
||||||
|
|
||||||
from novelwriter import CONFIG, SHARED
|
from novelwriter import CONFIG, SHARED
|
||||||
from novelwriter.core.spellcheck import UserDictionary
|
from novelwriter.core.spellcheck import UserDictionary
|
||||||
|
from novelwriter.extensions.configlayout import NColourLabel
|
||||||
|
|
||||||
if TYPE_CHECKING: # pragma: no cover
|
if TYPE_CHECKING: # pragma: no cover
|
||||||
from novelwriter.guimain import GuiMain
|
from novelwriter.guimain import GuiMain
|
||||||
@@ -67,7 +68,10 @@ class GuiWordList(QDialog):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Header
|
# 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 = QPushButton(SHARED.theme.getIcon("import"), "", self)
|
||||||
self.importButton.setToolTip(self.tr("Import words from text file"))
|
self.importButton.setToolTip(self.tr("Import words from text file"))
|
||||||
|
|||||||
@@ -24,9 +24,9 @@ import pytest
|
|||||||
|
|
||||||
from PyQt5.QtCore import Qt
|
from PyQt5.QtCore import Qt
|
||||||
from PyQt5.QtWidgets import QDialog, QAction, QFileDialog
|
from PyQt5.QtWidgets import QDialog, QAction, QFileDialog
|
||||||
from tests.mocked import causeOSError
|
|
||||||
|
|
||||||
from tools import buildTestProject
|
from tools import buildTestProject
|
||||||
|
from mocked import causeOSError
|
||||||
|
|
||||||
from novelwriter import SHARED
|
from novelwriter import SHARED
|
||||||
from novelwriter.core.spellcheck import UserDictionary
|
from novelwriter.core.spellcheck import UserDictionary
|
||||||
|
|||||||
Reference in New Issue
Block a user