Comments (3)
Yep, that's what I was looking for, thanks
Actually, on further investigation, the issue is simply that I'm setting an explicit background colour in the Settings panel widgets, but not an explicit foreground color. If I specify neither, the application can respond dynamically to Light and Dark mode on MacOS:
Note that 'Dark' mode works differently on Windows and Linux, but in all cases the text will now be legible.
from pygpsclient.
Unfortunately reliable automatic 'dark mode' detection across different O/S platforms is problematic (though not impossible) with tkinter. There are libraries available e.g. darkdetect, but AFAICS they're not yet fully mature.
The easiest way to address this (from an application standpoint) would be to add a user-selectable colormode option to the application itself, via the new json config file facility introduced in v1.3.22, e.g:
{
...
"colormode": "dark"
...
}
The font colours would then be amended accordingly.
Would that be an acceptable solution?
As an interim workaround, you could amend the following values in globals.py:
BGCOL = "gray24" # default widget background color
FGCOL = "white" # default widget foreground color
(As it happens I normally run in 'Dark' mode on Windows and Linux but reverted to 'Light' on my Mac as too many off-the-shelf applications didn't seem to play well with 'Dark' mode.)
from pygpsclient.
Yep, that's what I was looking for, thanks
from pygpsclient.
Related Issues (20)
- Pygpsclient crashes when "save configuration" on macos HOT 7
- PIL.Image has no attribute ANTIALIAS HOT 5
- Why the advanced configuratinos are hidden for socket server mode? HOT 3
- I'm getting a KeyError: 'serial_settings' from stream_handler.py when trying to use a socket as gnss source. Approx line 124 but I may have added some debug prints.
- KeyError: 'inactivity_timeout' when trying to use l-band spartn corrections:
- Support Ublox NTRIP Client (No MQTT) SPARTN format HOT 3
- Starting gui fails on Windows 10 HOT 1
- Error in _process_UBX03() function when handling satellite elevation and azimuth
- Incorrect PUBX03 elev/azim handling in Sky View HOT 1
- Saving L-band config into D9S HOT 4
- socket.timeout: timed out HOT 5
- KeyError on private RTCM3 messages HOT 3
- Unable to start the Tk on Mac m1 HOT 2
- ValueError if pygpsclient starts without default configuration file
- Ublox Config Dialog with TCP Socket HOT 5
- Raspberry Pi 32-bit HOT 10
- incomplete configuration saving and loading HOT 4
- MacOSX 11.7.9 no idea what's wrong HOT 19
- vdop not populated for NMEA messages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygpsclient.