Added dark mode support for the configuration dialog on Windows/macOS runtime. Fixes #4292
Detects dark mode at server start and styles the runtime accordingly. Patch modified by: Neel Patel Branch ------ master Details ------- https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=41be5479afd3b1e0849c20cece2657b96db70c47 Author: Dave Page <dp...@pgadmin.org> Modified Files -------------- docs/en_US/release_notes_4_21.rst | 1 + runtime/ConfigWindow.ui | 22 +- runtime/breeze.qrc | 89 ++ runtime/dark.qss | 1648 ++++++++++++++++++++ runtime/dark/branch_closed-on.svg | 3 + runtime/dark/branch_closed.svg | 3 + runtime/dark/branch_open-on.svg | 3 + runtime/dark/branch_open.svg | 3 + runtime/dark/checkbox_checked.svg | 5 + runtime/dark/checkbox_checked_disabled.svg | 5 + runtime/dark/checkbox_indeterminate.svg | 7 + runtime/dark/checkbox_indeterminate_disabled.svg | 7 + runtime/dark/checkbox_unchecked.svg | 4 + runtime/dark/checkbox_unchecked_disabled.svg | 4 + runtime/dark/close-hover.svg | 3 + runtime/dark/close-pressed.svg | 3 + runtime/dark/close.svg | 3 + runtime/dark/down_arrow-hover.svg | 3 + runtime/dark/down_arrow.svg | 3 + runtime/dark/down_arrow_disabled.svg | 3 + runtime/dark/hmovetoolbar.svg | 4 + runtime/dark/hsepartoolbar.svg | 3 + runtime/dark/left_arrow.svg | 3 + runtime/dark/left_arrow_disabled.svg | 3 + runtime/dark/radio_checked.svg | 5 + runtime/dark/radio_checked_disabled.svg | 5 + runtime/dark/radio_unchecked.svg | 4 + runtime/dark/radio_unchecked_disabled.svg | 4 + runtime/dark/right_arrow.svg | 3 + runtime/dark/right_arrow_disabled.svg | 3 + runtime/dark/sizegrip.svg | 3 + runtime/dark/spinup_disabled.svg | 3 + runtime/dark/stylesheet-branch-end-closed.svg | 4 + runtime/dark/stylesheet-branch-end-open.svg | 4 + runtime/dark/stylesheet-branch-end.svg | 4 + runtime/dark/stylesheet-branch-more.svg | 4 + runtime/dark/stylesheet-vline.svg | 3 + runtime/dark/transparent.svg | 1 + runtime/dark/undock-hover.svg | 5 + runtime/dark/undock.svg | 3 + runtime/dark/up_arrow-hover.svg | 3 + runtime/dark/up_arrow.svg | 3 + runtime/dark/up_arrow_disabled.svg | 3 + runtime/dark/vmovetoolbar.svg | 8 + runtime/dark/vsepartoolbars.svg | 7 + runtime/light.qss | 1654 +++++++++++++++++++++ runtime/light/branch_closed-on.svg | 3 + runtime/light/branch_closed.svg | 3 + runtime/light/branch_open-on.svg | 3 + runtime/light/branch_open.svg | 3 + runtime/light/checkbox_checked-hover.svg | 5 + runtime/light/checkbox_checked.svg | 5 + runtime/light/checkbox_checked_disabled.svg | 5 + runtime/light/checkbox_indeterminate-hover.svg | 7 + runtime/light/checkbox_indeterminate.svg | 7 + runtime/light/checkbox_indeterminate_disabled.svg | 7 + runtime/light/checkbox_unchecked-hover.svg | 4 + runtime/light/checkbox_unchecked_disabled.svg | 4 + runtime/light/close-hover.svg | 3 + runtime/light/close-pressed.svg | 3 + runtime/light/close.svg | 3 + runtime/light/down_arrow-hover.svg | 3 + runtime/light/down_arrow.svg | 3 + runtime/light/down_arrow_disabled.svg | 3 + runtime/light/hmovetoolbar.svg | 5 + runtime/light/hsepartoolbar.svg | 3 + runtime/light/left_arrow.svg | 3 + runtime/light/left_arrow_disabled.svg | 3 + runtime/light/radio_checked-hover.svg | 5 + runtime/light/radio_checked.svg | 5 + runtime/light/radio_checked_disabled.svg | 5 + runtime/light/radio_unchecked-hover.svg | 4 + runtime/light/radio_unchecked_disabled.svg | 4 + runtime/light/right_arrow.svg | 3 + runtime/light/right_arrow_disabled.svg | 3 + runtime/light/sizegrip.svg | 3 + runtime/light/spinup_disabled.svg | 3 + runtime/light/stylesheet-branch-end-closed.svg | 4 + runtime/light/stylesheet-branch-end-open.svg | 4 + runtime/light/stylesheet-branch-end.svg | 4 + runtime/light/stylesheet-branch-more.svg | 4 + runtime/light/stylesheet-vline.svg | 3 + runtime/light/transparent.svg | 1 + runtime/light/undock-hover.svg | 5 + runtime/light/undock.svg | 3 + runtime/light/up_arrow-hover.svg | 3 + runtime/light/up_arrow.svg | 3 + runtime/light/up_arrow_disabled.svg | 3 + runtime/light/vmovetoolbar.svg | 8 + runtime/light/vsepartoolbars.svg | 7 + runtime/macos.h | 17 + runtime/macos.mm | 22 + runtime/pgAdmin4.cpp | 40 + runtime/pgAdmin4.pro | 9 +- 94 files changed, 3830 insertions(+), 4 deletions(-)