File: 0006-qtgui-include-nsf-QSS-theme.patch

package info (click to toggle)
gnuradio 3.10.12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 41,196 kB
  • sloc: cpp: 191,540; python: 91,856; ansic: 2,292; xml: 999; fortran: 927; sh: 477; makefile: 50
file content (289 lines) | stat: -rw-r--r-- 8,047 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
From 44afa4c973da19b8513e8a9e82f7d323286e7f5f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcus=20M=C3=BCller?= <mmueller@gnuradio.org>
Date: Thu, 6 Feb 2025 18:56:31 +0100
Subject: [PATCH 06/41] qtgui: include "nsf" QSS theme
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Glen Langstom contributed this theme; I asked him whether it'd be OK to
include it:

> Hi Marcus,
>
> Thanks again for your help and all your efforts with Gnuradio.
>
> I’m perfectly fine with anyone’s use of that file.
>
> Please add whatever license you think is appropriate.
>
> Best regards
>
> Glen

So, I included the file with the appropriate GPLv3 OR MIT-0 license, so
that anyone might use it.

Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
---
 gr-qtgui/CMakeLists.txt |   7 +-
 gr-qtgui/themes/nsf.qss | 229 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 235 insertions(+), 1 deletion(-)
 create mode 100644 gr-qtgui/themes/nsf.qss

diff --git a/gr-qtgui/CMakeLists.txt b/gr-qtgui/CMakeLists.txt
index 0fc8b5e456..b533d4178c 100644
--- a/gr-qtgui/CMakeLists.txt
+++ b/gr-qtgui/CMakeLists.txt
@@ -86,7 +86,12 @@ if(ENABLE_GR_QTGUI)
     ########################################################################
     # Install the themes (QSS) files
     ########################################################################
-    install(FILES themes/plain.qss themes/dark.qss themes/alt.qss themes/projector.qss
+    install(FILES
+            themes/alt.qss
+            themes/dark.qss
+            themes/nsf.qss
+            themes/plain.qss
+            themes/projector.qss
             DESTINATION ${GR_THEMES_DIR})
 
 endif(ENABLE_GR_QTGUI)
diff --git a/gr-qtgui/themes/nsf.qss b/gr-qtgui/themes/nsf.qss
new file mode 100644
index 0000000000..b6e47a1e32
--- /dev/null
+++ b/gr-qtgui/themes/nsf.qss
@@ -0,0 +1,229 @@
+/* SPDX-License-Identifier: GPL-3.0-or-later OR MIT-0
+ * Copyright 2025 Glen Langston <glen.i.langston@gmail.com> 
+ */
+QWidget
+{
+    color: white;
+    background-color: black;
+    font-size: 24px;
+}
+
+QwtPlot
+{
+    padding: 10px;
+    font-size: 18px;
+}
+
+DisplayPlot {
+    qproperty-zoomer_color: green;
+/*    qproperty-marker_alpha1: 150;*/
+/*    qproperty-marker_alpha2: 150;*/
+/*    qproperty-marker_alpha3: 150;*/
+    qproperty-axes_label_font_size: 18;
+}
+
+TimeDomainDisplayPlot {
+    qproperty-tag_text_color: blue;
+    qproperty-tag_background_color: grey;
+    qproperty-tag_background_style: Dense4Pattern;
+    qproperty-line_color1: #FFD700;
+    qproperty-line_color2: magenta;
+    qproperty-line_color3: #F44336;
+    qproperty-line_color4: #00FF00;
+    qproperty-line_color5: #0000FF;
+    qproperty-line_color6: #F44336;
+    qproperty-line_style1: SolidLine;
+    qproperty-line_style2: DashLine;
+    qproperty-line_style3: DotLine;
+    qproperty-line_style4: SolidLine;
+    qproperty-line_style5: DashLine;
+    qproperty-line_style6: DotLine;
+    qproperty-marker_alpha1: 225;
+    qproperty-marker_alpha2: 225;
+    qproperty-marker_alpha3: 225;
+    qproperty-marker_alpha4: 225;
+    qproperty-marker_alpha5: 225;
+    qproperty-marker_alpha6: 225;
+    qproperty-line_width1: 3;
+    qproperty-line_width2: 3;
+    qproperty-line_width3: 3;
+    qproperty-line_width4: 3;
+    qproperty-line_width5: 3;
+    qproperty-line_width6: 3;
+}
+
+WaterfallDisplayPlot {
+    qproperty-intensity_color_map_type1: 5;
+    qproperty-low_intensity_color: black;
+    qproperty-high_intensity_color: green;
+    qproperty-color_map_title_font_size: 18;
+}
+
+TimeRasterDisplayPlot {
+    qproperty-intensity_color_map_type1: 6;
+    qproperty-color_map_title_font_size: 180;
+}
+
+HistogramDisplayPlot {
+    qproperty-line_color1: #FFD700;
+    qproperty-line_style1: SolidLine;
+    qproperty-line_color2: #00FF55;
+    qproperty-line_style2: SolidLine;
+    qproperty-marker_alpha1: 250;
+    qproperty-marker_alpha2: 250;
+}
+
+
+FrequencyDisplayPlot {
+    qproperty-line_color1: #FFD700;
+    qproperty-line_color2: magenta;
+    qproperty-line_color3: #F44336;
+    qproperty-line_color4: cyan;
+    qproperty-line_color5: red;
+    qproperty-line_color6: #F44336;
+    qproperty-line_style1: SolidLine;
+    qproperty-line_style2: DashLine;
+    qproperty-line_style3: DotLine;
+    qproperty-line_style4: SolidLine;
+    qproperty-line_style5: DashLine;
+    qproperty-line_style6: DotLine;
+    qproperty-marker_alpha1: 225;
+    qproperty-marker_alpha2: 225;
+    qproperty-marker_alpha3: 225;
+    qproperty-marker_alpha4: 225;
+    qproperty-marker_alpha5: 225;
+    qproperty-marker_alpha6: 225;
+    qproperty-line_width1: 3;
+    qproperty-line_width2: 3;
+    qproperty-line_width3: 3;
+    qproperty-line_width4: 3;
+    qproperty-line_width5: 3;
+    qproperty-line_width6: 3;
+    qproperty-max_fft_color: palegreen;
+    qproperty-min_fft_color: darkblue;
+    qproperty-marker_lower_intensity_color: white;
+    qproperty-marker_upper_intensity_color: red;
+    qproperty-marker_lower_intensity_visible: false;
+    qproperty-marker_upper_intensity_visible: false;
+    qproperty-marker_noise_floor_amplitude_color: red;
+    qproperty-marker_noise_floor_amplitude_visible: false;
+}
+
+VectorDisplayPlot {
+    qproperty-line_color1: #FFD700;
+    qproperty-line_color2: #22FF22;
+    qproperty-line_color3: #F44336;
+    qproperty-line_color4: #1F51FF;
+    qproperty-line_color5: #B55353;
+    qproperty-line_color6: cyan;
+    qproperty-line_style1: SolidLine;
+    qproperty-line_style2: SolidLine;
+    qproperty-line_style3: SolidLine;
+    qproperty-line_style4: SolidLine;
+    qproperty-line_style5: SolidLine;
+    qproperty-line_style6: SolidLine;
+/*    qproperty-line_style3: DotLine;
+    qproperty-line_style4: SolidLine;
+    qproperty-line_style5: DashLine;
+    qproperty-line_style6: DotLine;*/
+    qproperty-marker_alpha1: 250;
+    qproperty-marker_alpha2: 250;
+    qproperty-marker_alpha3: 250;
+    qproperty-marker_alpha4: 250;
+    qproperty-marker_alpha5: 250;
+    qproperty-marker_alpha6: 250;
+    qproperty-line_width1: 3;
+    qproperty-line_width2: 5;
+    qproperty-line_width3: 5;
+    qproperty-line_width4: 5;
+    qproperty-line_width5: 5;
+    qproperty-line_width6: 5;
+    qproperty-max_vec_color: palegreen;
+    qproperty-min_vec_color: blue;
+    qproperty-marker_lower_intensity_color: white;
+    qproperty-marker_upper_intensity_color: red;
+    qproperty-marker_lower_intensity_visible: false;
+    qproperty-marker_upper_intensity_visible: false;
+    qproperty-marker_ref_level_color: red;
+    qproperty-marker_ref_level_visible: false;
+}
+
+ConstellationDisplayPlot {
+    qproperty-line_color1: #00FF00;
+    qproperty-marker_alpha1: 150;
+}
+
+QwtPlotCanvas
+{
+    border: 1px solid White;
+    border-radius: 10px;
+}
+
+QwtScaleWidget
+{
+    font-size: 18px;
+}
+
+QwtLegend
+{
+    padding: 3px;
+    margin: 3px;
+    font-size: 18px;
+}
+
+QwtLegendItem
+{
+    padding: 2px;
+    margin: 2px;
+    font-size: 18px;
+}
+
+QLineEdit,
+QPlainTextEdit,
+QComboBox,
+QMenu {
+    selection-color: black;
+    selection-background-color: lightgrey;
+    background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 black, stop: 1 rgb(128, 128, 128));
+    border: 1px solid gray;
+    padding: 2px;
+    border-radius: 3px;
+}
+
+QPushButton,
+QToolButton {
+    selection-color: black;
+    selection-background-color: white;
+    background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 black, stop: 1 rgb(128, 128, 128));
+    border: 1px solid gray;
+    padding: 2px;
+    border-radius: 3px;
+}
+
+QTabWidget::pane {
+    border: 1px solid white;
+}
+
+QTabBar {
+    margin: 20px;
+    padding: 20px;
+}
+
+QTabBar::tab {
+    background-color: rgb(100, 100, 100);
+    border: 3px solid white;
+    padding: 5px;
+}
+
+QTabBar::tab:first {
+    border-top-left-radius: 4px;
+}
+
+QTabBar::tab:last {
+    border-top-right-radius: 4px;
+}
+
+QTabBar::tab:selected {
+    background-color: rgb(200, 200, 200);
+    color: black;
+}
-- 
2.47.3