not1mm 25.3.27__py3-none-any.whl → 25.3.31__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- not1mm/__main__.py +36 -20
- not1mm/bandmap.py +13 -42
- not1mm/checkwindow.py +1 -1
- not1mm/data/main.ui +3 -1
- not1mm/lib/version.py +1 -1
- not1mm/logwindow.py +2 -0
- not1mm/ratewindow.py +1 -1
- not1mm/statistics.py +1 -1
- not1mm/vfo.py +1 -1
- {not1mm-25.3.27.dist-info → not1mm-25.3.31.dist-info}/METADATA +4 -2
- {not1mm-25.3.27.dist-info → not1mm-25.3.31.dist-info}/RECORD +15 -15
- {not1mm-25.3.27.dist-info → not1mm-25.3.31.dist-info}/WHEEL +0 -0
- {not1mm-25.3.27.dist-info → not1mm-25.3.31.dist-info}/entry_points.txt +0 -0
- {not1mm-25.3.27.dist-info → not1mm-25.3.31.dist-info}/licenses/LICENSE +0 -0
- {not1mm-25.3.27.dist-info → not1mm-25.3.31.dist-info}/top_level.txt +0 -0
not1mm/__main__.py
CHANGED
@@ -212,6 +212,11 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
212
212
|
uic.loadUi(fsutils.APP_DATA_PATH / "main.ui", self)
|
213
213
|
self.history_info.hide()
|
214
214
|
QApplication.instance().focusObjectChanged.connect(self.on_focus_changed)
|
215
|
+
QApplication.instance().styleHints().colorSchemeChanged.connect(
|
216
|
+
self.dark_watcher
|
217
|
+
)
|
218
|
+
self.dark_watcher(QApplication.instance().styleHints().colorScheme())
|
219
|
+
|
215
220
|
self.inputs_dict = {
|
216
221
|
self.callsign: "callsign",
|
217
222
|
self.sent: "sent",
|
@@ -235,7 +240,8 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
235
240
|
self.cw_entry.returnPressed.connect(self.toggle_cw_entry)
|
236
241
|
|
237
242
|
self.actionCW_Macros.triggered.connect(self.cw_macros_state_changed)
|
238
|
-
self.actionDark_Mode_2.
|
243
|
+
# self.actionDark_Mode_2.hide()
|
244
|
+
# self.actionDark_Mode_2.triggered.connect(self.dark_mode_state_changed)
|
239
245
|
self.actionCommand_Buttons_2.triggered.connect(
|
240
246
|
self.command_buttons_state_change
|
241
247
|
)
|
@@ -771,6 +777,16 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
771
777
|
)
|
772
778
|
self.fldigi_qso(datagram.decode())
|
773
779
|
|
780
|
+
def is_it_dark(self) -> bool:
|
781
|
+
"""Returns if the DE has a dark theme active."""
|
782
|
+
hints = QtGui.QGuiApplication.styleHints()
|
783
|
+
scheme = hints.colorScheme()
|
784
|
+
return scheme == Qt.ColorScheme.Dark
|
785
|
+
|
786
|
+
def dark_watcher(self, color_scheme):
|
787
|
+
"""..."""
|
788
|
+
self.setDarkMode(setdarkmode=color_scheme == Qt.ColorScheme.Dark)
|
789
|
+
|
774
790
|
def load_call_history(self) -> None:
|
775
791
|
"""Display filepicker and load chosen call history file."""
|
776
792
|
filename = self.filepicker("other")
|
@@ -1009,18 +1025,18 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
1009
1025
|
cmd = {}
|
1010
1026
|
cmd["cmd"] = "DARKMODE"
|
1011
1027
|
cmd["state"] = setdarkmode
|
1012
|
-
if self.log_window:
|
1013
|
-
|
1028
|
+
# if self.log_window:
|
1029
|
+
# self.log_window.msg_from_main(cmd)
|
1014
1030
|
if self.bandmap_window:
|
1015
1031
|
self.bandmap_window.msg_from_main(cmd)
|
1016
|
-
if self.check_window:
|
1017
|
-
|
1018
|
-
if self.vfo_window:
|
1019
|
-
|
1020
|
-
if self.rate_window:
|
1021
|
-
|
1022
|
-
if self.statistics_window:
|
1023
|
-
|
1032
|
+
# if self.check_window:
|
1033
|
+
# self.check_window.msg_from_main(cmd)
|
1034
|
+
# if self.vfo_window:
|
1035
|
+
# self.vfo_window.msg_from_main(cmd)
|
1036
|
+
# if self.rate_window:
|
1037
|
+
# self.rate_window.msg_from_main(cmd)
|
1038
|
+
# if self.statistics_window:
|
1039
|
+
# self.statistics_window.msg_from_main(cmd)
|
1024
1040
|
|
1025
1041
|
if setdarkmode:
|
1026
1042
|
darkPalette = QPalette()
|
@@ -3046,12 +3062,12 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
3046
3062
|
if self.lookup_service:
|
3047
3063
|
self.lookup_service.msg_from_main(cmd)
|
3048
3064
|
|
3049
|
-
if self.pref.get("darkmode"):
|
3050
|
-
|
3051
|
-
|
3052
|
-
else:
|
3053
|
-
|
3054
|
-
|
3065
|
+
# if self.pref.get("darkmode"):
|
3066
|
+
# self.actionDark_Mode_2.setChecked(True)
|
3067
|
+
# self.setDarkMode(True)
|
3068
|
+
# else:
|
3069
|
+
# self.setDarkMode(False)
|
3070
|
+
# self.actionDark_Mode_2.setChecked(False)
|
3055
3071
|
|
3056
3072
|
try:
|
3057
3073
|
if self.rtc_thread.isRunning():
|
@@ -3235,9 +3251,9 @@ class MainWindow(QtWidgets.QMainWindow):
|
|
3235
3251
|
|
3236
3252
|
def dark_mode_state_changed(self) -> None:
|
3237
3253
|
"""Called when the Dark Mode menu state is changed."""
|
3238
|
-
self.pref["darkmode"] = self.actionDark_Mode_2.isChecked()
|
3239
|
-
self.write_preference()
|
3240
|
-
self.setDarkMode(self.actionDark_Mode_2.isChecked())
|
3254
|
+
# self.pref["darkmode"] = self.actionDark_Mode_2.isChecked()
|
3255
|
+
# self.write_preference()
|
3256
|
+
# # self.setDarkMode(self.actionDark_Mode_2.isChecked())
|
3241
3257
|
|
3242
3258
|
def rtc_response(self, response):
|
3243
3259
|
print(f"{response=}")
|
not1mm/bandmap.py
CHANGED
@@ -21,7 +21,7 @@ from json import loads
|
|
21
21
|
from PyQt6 import QtCore, QtGui, QtWidgets, uic, QtNetwork
|
22
22
|
from PyQt6.QtGui import QColorConstants, QPalette, QColor
|
23
23
|
from PyQt6.QtWidgets import QDockWidget
|
24
|
-
from PyQt6.QtCore import pyqtSignal
|
24
|
+
from PyQt6.QtCore import Qt, pyqtSignal
|
25
25
|
|
26
26
|
import not1mm.fsutils as fsutils
|
27
27
|
|
@@ -369,7 +369,7 @@ class BandMapWindow(QDockWidget):
|
|
369
369
|
self.update_timer = QtCore.QTimer()
|
370
370
|
self.update_timer.timeout.connect(self.update_station_timer)
|
371
371
|
self.update_timer.start(UPDATE_INTERVAL)
|
372
|
-
self.setDarkMode(
|
372
|
+
self.setDarkMode()
|
373
373
|
self.update()
|
374
374
|
self.request_workedlist()
|
375
375
|
self.request_contest()
|
@@ -486,51 +486,22 @@ class BandMapWindow(QDockWidget):
|
|
486
486
|
self.callsignField.setText(packet.get("operator", "").upper())
|
487
487
|
return
|
488
488
|
if packet.get("cmd", "") == "DARKMODE":
|
489
|
-
self.setDarkMode(
|
489
|
+
self.setDarkMode()
|
490
490
|
|
491
|
-
def
|
491
|
+
def is_it_dark(self) -> bool:
|
492
|
+
"""Returns if the DE has a dark theme active."""
|
493
|
+
hints = QtGui.QGuiApplication.styleHints()
|
494
|
+
scheme = hints.colorScheme()
|
495
|
+
return scheme == Qt.ColorScheme.Dark
|
496
|
+
|
497
|
+
def setDarkMode(self):
|
492
498
|
"""Set dark mode"""
|
493
|
-
if setdarkmode:
|
494
|
-
darkPalette = QPalette()
|
495
|
-
darkColor = QColor(56, 56, 56)
|
496
|
-
self.text_color = QColorConstants.White
|
497
|
-
disabledColor = QColor(127, 127, 127)
|
498
|
-
darkPalette.setColor(QPalette.ColorRole.Window, darkColor)
|
499
|
-
darkPalette.setColor(QPalette.ColorRole.WindowText, QColorConstants.White)
|
500
|
-
darkPalette.setColor(QPalette.ColorRole.Base, QColor(45, 45, 45))
|
501
|
-
darkPalette.setColor(QPalette.ColorRole.AlternateBase, darkColor)
|
502
|
-
darkPalette.setColor(QPalette.ColorRole.Text, QColorConstants.White)
|
503
|
-
darkPalette.setColor(QPalette.ColorRole.Button, darkColor)
|
504
|
-
darkPalette.setColor(QPalette.ColorRole.ButtonText, QColorConstants.White)
|
505
|
-
darkPalette.setColor(QPalette.ColorRole.BrightText, QColorConstants.Red)
|
506
|
-
darkPalette.setColor(QPalette.ColorRole.Link, QColor(42, 130, 218))
|
507
|
-
darkPalette.setColor(QPalette.ColorRole.Highlight, QColor(42, 130, 218))
|
508
|
-
darkPalette.setColor(
|
509
|
-
QPalette.ColorRole.HighlightedText, QColorConstants.Black
|
510
|
-
)
|
511
|
-
darkPalette.setColor(
|
512
|
-
QPalette.ColorGroup.Disabled,
|
513
|
-
QPalette.ColorRole.ButtonText,
|
514
|
-
disabledColor,
|
515
|
-
)
|
516
|
-
darkPalette.setColor(
|
517
|
-
QPalette.ColorGroup.Disabled,
|
518
|
-
QPalette.ColorRole.HighlightedText,
|
519
|
-
disabledColor,
|
520
|
-
)
|
521
|
-
darkPalette.setColor(
|
522
|
-
QPalette.ColorGroup.Disabled,
|
523
|
-
QPalette.ColorRole.Text,
|
524
|
-
disabledColor,
|
525
|
-
)
|
526
499
|
|
527
|
-
|
528
|
-
|
500
|
+
setdarkmode = self.is_it_dark()
|
501
|
+
if setdarkmode is True:
|
502
|
+
self.text_color = QColorConstants.White
|
529
503
|
self.update()
|
530
504
|
else:
|
531
|
-
palette = self.style().standardPalette()
|
532
|
-
self.setPalette(palette)
|
533
|
-
self.callsignField.setPalette(palette)
|
534
505
|
self.text_color = QColorConstants.Black
|
535
506
|
self.update()
|
536
507
|
|
not1mm/checkwindow.py
CHANGED
not1mm/data/main.ui
CHANGED
@@ -1504,7 +1504,6 @@
|
|
1504
1504
|
<string>View</string>
|
1505
1505
|
</property>
|
1506
1506
|
<addaction name="actionCW_Macros"/>
|
1507
|
-
<addaction name="actionDark_Mode_2"/>
|
1508
1507
|
<addaction name="actionCommand_Buttons_2"/>
|
1509
1508
|
</widget>
|
1510
1509
|
<widget class="QMenu" name="menuWindow">
|
@@ -2031,6 +2030,9 @@
|
|
2031
2030
|
<property name="checkable">
|
2032
2031
|
<bool>true</bool>
|
2033
2032
|
</property>
|
2033
|
+
<property name="enabled">
|
2034
|
+
<bool>true</bool>
|
2035
|
+
</property>
|
2034
2036
|
<property name="text">
|
2035
2037
|
<string>Dark Mode</string>
|
2036
2038
|
</property>
|
not1mm/lib/version.py
CHANGED
not1mm/logwindow.py
CHANGED
@@ -194,6 +194,7 @@ class LogWindow(QDockWidget):
|
|
194
194
|
self.generalLog.setColumnHidden(self.get_column(column), False)
|
195
195
|
self.focusedLog.setColumnHidden(self.get_column(column), False)
|
196
196
|
if msg.get("cmd", "") == "DARKMODE":
|
197
|
+
print(f".................{msg.get("state", False)=}")
|
197
198
|
self.set_dark_mode(msg.get("state", False))
|
198
199
|
|
199
200
|
def resize_headers_to_match(self) -> None:
|
@@ -203,6 +204,7 @@ class LogWindow(QDockWidget):
|
|
203
204
|
|
204
205
|
def set_dark_mode(self, dark: bool) -> None:
|
205
206
|
"""Forces a darkmode palette."""
|
207
|
+
return
|
206
208
|
|
207
209
|
if dark:
|
208
210
|
darkPalette = QPalette()
|
not1mm/ratewindow.py
CHANGED
not1mm/statistics.py
CHANGED
not1mm/vfo.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: not1mm
|
3
|
-
Version: 25.3.
|
3
|
+
Version: 25.3.31
|
4
4
|
Summary: NOT1MM Logger
|
5
5
|
Author-email: Michael Bridak <michael.bridak@gmail.com>
|
6
6
|
License: GPL-3.0-or-later
|
@@ -247,7 +247,9 @@ generated, 'cause I'm lazy, list of those who've submitted PR's.
|
|
247
247
|
|
248
248
|
## Recent Changes
|
249
249
|
|
250
|
-
- [25-3-
|
250
|
+
- [25-3-31] Maybe try and do something useful with the detection of the systems dark mode.
|
251
|
+
- [25-3-27-1] Detect system dark mode.
|
252
|
+
- [25-3-27] Add more DI and PH mode to stats window.
|
251
253
|
- [25-3-26] Record 0 points on dupes for each contest, excluding RandomGram.
|
252
254
|
- [25-3-25-1] Improved process messaging.
|
253
255
|
- [25-3-25] Use safer dict key access in the stats window.
|
@@ -1,16 +1,16 @@
|
|
1
1
|
not1mm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
not1mm/__main__.py,sha256=
|
3
|
-
not1mm/bandmap.py,sha256
|
4
|
-
not1mm/checkwindow.py,sha256=
|
2
|
+
not1mm/__main__.py,sha256=3UxI_-ipouZWJAanQP0_I-HP17q52hNIuGvsc4-x3i8,152402
|
3
|
+
not1mm/bandmap.py,sha256=-zu5slsuAm2GmeW8g3yvURzsuQxemwIQfw1HEq8xKHM,29920
|
4
|
+
not1mm/checkwindow.py,sha256=uayM1QYrLzKDPFrOz3TUB6j-LdJjK44Q7ZQLa74IVdI,9684
|
5
5
|
not1mm/fsutils.py,sha256=ukHKxKTeNKxKwqRaJjtzRShL4X5Xl0jRBbADyy3Ifp8,1701
|
6
|
-
not1mm/logwindow.py,sha256=
|
6
|
+
not1mm/logwindow.py,sha256=TKpV-EZsYrW_KrEmiw92ajIrx_ec_9mgGPqDRffwaTA,44781
|
7
7
|
not1mm/lookupservice.py,sha256=GkY_qHZfrW6XHf8upIoaG4hCFqm0fg6Ganu9ConGrIc,2628
|
8
8
|
not1mm/radio.py,sha256=_b-tSFuDLoBKnABxrsafGQu2p33U-KOubY7-qgLV2yg,5408
|
9
|
-
not1mm/ratewindow.py,sha256=
|
9
|
+
not1mm/ratewindow.py,sha256=ssfejzNfRwWhZ18ttEzAwCx2fUIDk49Cx-7_zebe9A0,9905
|
10
10
|
not1mm/rtc_service.py,sha256=axAwnCBuTr-QL0YwXtWvg9tjwhcFsiiEZFgFjOofX6k,2816
|
11
|
-
not1mm/statistics.py,sha256=
|
11
|
+
not1mm/statistics.py,sha256=DJfBnx3yGO1yf5YUX0Wcun5rfr9IswOE1C4GnNeYbQ0,9814
|
12
12
|
not1mm/test.py,sha256=RN71m2S9MPIOJMaoCi0wZhwEhpEZunvtosZxaKahRB4,101
|
13
|
-
not1mm/vfo.py,sha256=
|
13
|
+
not1mm/vfo.py,sha256=n2_mO0kzky_C8-mZLXpr5UAxdwttrF5bWtzmudNoGV4,11150
|
14
14
|
not1mm/voice_keying.py,sha256=HZImqC5NgnyW2nknNYQ3b7I8-6S_hxpq5G4RcIRXn_k,3005
|
15
15
|
not1mm/data/JetBrainsMono-ExtraLight.ttf,sha256=g5Hn7BPounWMGDj1a8zZcyKMz03HSqW__pUluRR7Evg,274144
|
16
16
|
not1mm/data/MASTER.SCP,sha256=FWKs4Xw3w7FNUt2npA6VzsLME7NAbHRugxaL6TnsvzU,364234
|
@@ -33,7 +33,7 @@ not1mm/data/k6gte.not1mm-32.png,sha256=XdTsCa3xqwTfn26Ga7RwO_Vlbg_77RKkSc8bMxVcC
|
|
33
33
|
not1mm/data/k6gte.not1mm-64.png,sha256=6ku45Gq1g5ezh04F07osoKRtanb3e4kbx5XdIEh3N90,2925
|
34
34
|
not1mm/data/logwindow.ui,sha256=f7vULj96tHIQuR1nJMyvPHHcmVgzkhv9D1isyojsnFU,1458
|
35
35
|
not1mm/data/logwindowx.ui,sha256=CwpI-h7cI1yqyldH9quKftsdHL5lTyL9ABOcf80nfqc,1632
|
36
|
-
not1mm/data/main.ui,sha256
|
36
|
+
not1mm/data/main.ui,sha256=7H38twKBpL8ZX4rrPCg4XQH1fRIiaVFE7t_yWxygS9Y,63824
|
37
37
|
not1mm/data/new_contest.ui,sha256=m41EGeg1yPSUZAkF8jA2z1EKytZD9hZYiQDh1sjE2ac,24602
|
38
38
|
not1mm/data/not1mm.html,sha256=c9-mfjMwDt4f5pySUruz2gREW33CQ2_rCddM2z5CZQo,23273
|
39
39
|
not1mm/data/opon.ui,sha256=QDicqAk2lORG2UWsHa6jHlsGn6uzrrI2R4HSAocpPes,2258
|
@@ -118,7 +118,7 @@ not1mm/lib/plugin_common.py,sha256=D1OBjyLmX7zuSPqgTCmHwXzAKA12J_zTQItvyIem-4Y,1
|
|
118
118
|
not1mm/lib/select_contest.py,sha256=WsptLuwkouIHeocJL3oZ6-eUfEnhpwdc-x7eMZ_TIVM,359
|
119
119
|
not1mm/lib/settings.py,sha256=mXffn8Xaj5KATPQinNBR0V5DbHWQPsRfh24_axWGYuk,15254
|
120
120
|
not1mm/lib/super_check_partial.py,sha256=hwT2NRwobu0PLDyw6ltmbmcAtGBD02CKGFbgGWjXMqA,2334
|
121
|
-
not1mm/lib/version.py,sha256=
|
121
|
+
not1mm/lib/version.py,sha256=42VFDOSQWldA1Dv8dOuHJASVqcpK6uxXQZvXQDebbLc,48
|
122
122
|
not1mm/lib/versiontest.py,sha256=8vDNptuBBunn-1IGkjNaquehqBYUJyjrPSF8Igmd4_Y,1286
|
123
123
|
not1mm/plugins/10_10_fall_cw.py,sha256=oJh3JKqjOpnWElSlZpiQ631UnaOd8qra5s9bl_QoInk,14783
|
124
124
|
not1mm/plugins/10_10_spring_cw.py,sha256=p7dSDtbFK0e6Xouw2V6swYn3VFVgHKyx4IfRWyBjMZY,14786
|
@@ -173,9 +173,9 @@ not1mm/plugins/ref_ssb.py,sha256=cUFUtbe7-5rwZZHEzpPnaIAnwrwayqBvtgctxQDF5Gw,215
|
|
173
173
|
not1mm/plugins/stew_perry_topband.py,sha256=3U-Dr28haBTqTaZWLiC1qHQBmLsLENDL-ihyddPpJbg,15403
|
174
174
|
not1mm/plugins/weekly_rtty.py,sha256=C8Xs3Q5UgSYx-mFFar8BVARWtmqlyrbeC98Ubzb4UN8,20128
|
175
175
|
not1mm/plugins/winter_field_day.py,sha256=hmAMgkdqIXtnCNyUp8J9Bb8liN8wj10wps6ROuG-Bok,15284
|
176
|
-
not1mm-25.3.
|
177
|
-
not1mm-25.3.
|
178
|
-
not1mm-25.3.
|
179
|
-
not1mm-25.3.
|
180
|
-
not1mm-25.3.
|
181
|
-
not1mm-25.3.
|
176
|
+
not1mm-25.3.31.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
177
|
+
not1mm-25.3.31.dist-info/METADATA,sha256=QwBdo6SovoCtcn83wZpPdvAvHCkpsu9qVqVtmD12aqI,37653
|
178
|
+
not1mm-25.3.31.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
179
|
+
not1mm-25.3.31.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
|
180
|
+
not1mm-25.3.31.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
|
181
|
+
not1mm-25.3.31.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|