From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | pgadmin-hackers <pgadmin-hackers(at)lists(dot)postgresql(dot)org> |
Cc: | Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com> |
Subject: | RM4292 - Dark mode support for Windows/macOS |
Date: | 2020-04-08 15:38:10 |
Message-ID: | CA+OCxoyiLYcN0N00nFPT9YCOFo8HT47rcoidccq2N5fDJFuqtQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
The attached patch detects if dark mode is enabled on Windows (10+)/macOS
(10.14+) at server start, and styles the runtime accordingly. It doesn't
dynamically switch if the user changes their preferences.
Linux builds continue to use the standard styling from Qt.
NOTE: I've tested this on macOS, but my Windows build system is playing up
at the moment. Akshay, can you have someone on your team test it please? I
believe the code should work; it's just a case of reading a reg key and
then doing the same thing as on macOS to set the theme accordingly.
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Attachment | Content-Type | Size |
---|---|---|
Runtime_dark_mode_for_Windows_Mac.patch | application/octet-stream | 132.0 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Libor M. | 2020-04-08 15:41:22 | pgAdmin 4 - next gettext usage fixes |
Previous Message | Ashesh Vashi | 2020-04-08 11:22:12 | pgAdmin 4 commit: Fixed expected output status code, as 410 should be t |