Skip to content

Commit 2514751

Browse files
authored
Add focus widget hinting (#1940)
2 parents cb3a24b + 802069b commit 2514751

30 files changed

+305
-105
lines changed

.github/workflows/test_linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
python-version: ["3.9", "3.10", "3.11", "3.12"]
18+
fail-fast: false
1819
runs-on: ubuntu-latest
1920
steps:
2021
- name: Python Setup

docs/source/more_customise.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ A GUI theme ``.conf`` file consists of the following settings:
132132
133133
[GUI]
134134
helptext = 0, 0, 0
135+
fadedtext = 128, 128, 128
135136
errortext = 255, 0, 0
136137
statusnone = 120, 120, 120
137138
statussaved = 2, 133, 37
@@ -149,7 +150,7 @@ colour values are RGB numbers on the format ``r, g, b`` where each is an integer
149150
not defined, it is computed as a colour between the ``window`` and ``windowtext`` colour.
150151

151152
.. versionadded:: 2.5
152-
The ``errortext`` theme colour entry was added.
153+
The ``fadedtext`` and ``errortext`` theme colour entries were added.
153154

154155

155156
Custom Syntax Theme

novelwriter/assets/themes/cyberpunk_night.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ linkvisited = 50, 0, 80
2525

2626
[GUI]
2727
helptext = 97, 97, 97
28+
fadedtext = 97, 97, 97
2829
errortext = 255, 77, 77
2930
statusnone = 50, 50, 50
3031
statussaved = 77, 255, 77

novelwriter/assets/themes/default_dark.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ linkvisited = 102, 153, 204
2626

2727
[GUI]
2828
helptext = 164, 164, 164
29+
fadedtext = 148, 148, 148
2930
errortext = 255, 164, 164
3031
statusnone = 150, 152, 150
3132
statussaved = 39, 135, 78

novelwriter/assets/themes/default_light.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ linkvisited = 66, 113, 174
2626

2727
[GUI]
2828
helptext = 92, 92, 92
29+
fadedtext = 108, 108, 108
2930
errortext = 255, 92, 92
3031
statusnone = 120, 120, 120
3132
statussaved = 200, 15, 39

novelwriter/assets/themes/dracula.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ linkvisited = 139, 233, 253
4141

4242
[GUI]
4343
helptext = 204, 172, 249
44+
fadedtext = 98, 114, 164
4445
errortext = 255, 85, 85
4546
statusnone = 98, 114, 164
4647
statussaved = 80, 250, 123

novelwriter/assets/themes/solarized_dark.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ linkvisited = 38, 139, 210
2525

2626
[GUI]
2727
helptext = 166, 161, 149
28+
fadedtext = 166, 161, 149
2829
errortext = 255, 161, 149
2930
statusnone = 88, 110, 117
3031
statussaved = 42, 161, 152

novelwriter/assets/themes/solarized_light.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ linkvisited = 38, 139, 210
2525

2626
[GUI]
2727
helptext = 78, 91, 95
28+
fadedtext = 78, 91, 95
2829
errortext = 255, 91, 95
2930
statusnone = 88, 110, 117
3031
statussaved = 42, 161, 152

novelwriter/dialogs/about.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __init__(self, parent: QWidget) -> None:
7575

7676
# Credits
7777
self.lblCredits = NColourLabel(
78-
self.tr("Credits"), scale=1.6, parent=self, bold=True
78+
self.tr("Credits"), self, scale=1.6, bold=True
7979
)
8080

8181
self.txtCredits = QTextBrowser(self)

novelwriter/dialogs/docmerge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__(self, parent: QWidget, sHandle: str, itemList: list[str]) -> None:
5858
self.headLabel.setFont(SHARED.theme.guiFontB)
5959
self.helpLabel = NColourLabel(
6060
self.tr("Drag and drop items to change the order, or uncheck to exclude."),
61-
SHARED.theme.helpText, parent=self, wrap=True
61+
self, color=SHARED.theme.helpText, wrap=True
6262
)
6363

6464
iPx = SHARED.theme.baseIconHeight

0 commit comments

Comments
 (0)