public inbox for [email protected]
help / color / mirror / Atom feedFrom: Aditya Toshniwal <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin][RM6954] Changing themes does nothing on Windows when system high contrast mode is enabled
Date: Fri, 5 Nov 2021 13:19:02 +0530
Message-ID: <CAM9w-_k+o6LE=fi6LUFwtqw5yX0dCZB_PozOttoQm_K_cyAD8w@mail.gmail.com> (raw)
Hi Hackers,
Attached patch will disable the force-adjust-color of the system theme on
pgAdmin.
Please review.
--
Thanks,
Aditya Toshniwal
pgAdmin Hacker | Software Architect | *edbpostgres.com*
<http://edbpostgres.com;
"Don't Complain about Heat, Plant a TREE"
Attachments:
[application/octet-stream] RM6954.patch (2.1K, 3-RM6954.patch)
download | inline diff:
diff --git a/runtime/src/html/configure.html b/runtime/src/html/configure.html
index 5c5ef84ee..82add2399 100644
--- a/runtime/src/html/configure.html
+++ b/runtime/src/html/configure.html
@@ -11,6 +11,11 @@
font-size: 14px;
background-color: #ebeef3;
}
+ @media screen and (forced-colors: active) {
+ body {
+ forced-color-adjust: none !important;
+ }
+ }
</style>
</head>
<body>
diff --git a/runtime/src/html/pgadmin.html b/runtime/src/html/pgadmin.html
index 91672e807..a52b36dea 100644
--- a/runtime/src/html/pgadmin.html
+++ b/runtime/src/html/pgadmin.html
@@ -27,6 +27,11 @@
margin-right: auto;
margin-bottom: 10px;
}
+ @media screen and (forced-colors: active) {
+ body {
+ forced-color-adjust: none !important;
+ }
+ }
</style>
<!-- Disable/block all password saving in nw.js -->
diff --git a/runtime/src/html/server_error.html b/runtime/src/html/server_error.html
index 85bc0c048..b9ba75f74 100644
--- a/runtime/src/html/server_error.html
+++ b/runtime/src/html/server_error.html
@@ -11,6 +11,11 @@
font-size: 14px;
background-color: #ebeef3;
}
+ @media screen and (forced-colors: active) {
+ body {
+ forced-color-adjust: none !important;
+ }
+ }
</style>
</head>
<body>
diff --git a/runtime/src/html/view_log.html b/runtime/src/html/view_log.html
index 64740b08c..39367ed7d 100644
--- a/runtime/src/html/view_log.html
+++ b/runtime/src/html/view_log.html
@@ -11,6 +11,11 @@
font-size: 14px;
background-color: #ebeef3;
}
+ @media screen and (forced-colors: active) {
+ body {
+ forced-color-adjust: none !important;
+ }
+ }
</style>
</head>
<body>
diff --git a/web/pgadmin/static/css/pgadmin.css b/web/pgadmin/static/css/pgadmin.css
index cca69229d..416613fa6 100644
--- a/web/pgadmin/static/css/pgadmin.css
+++ b/web/pgadmin/static/css/pgadmin.css
@@ -46,3 +46,9 @@
line-height: 1;
-webkit-font-smoothing: antialiased;
}
+
+@media screen and (forced-colors: active) {
+ body {
+ forced-color-adjust: none !important;
+ }
+}
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [pgAdmin][RM6954] Changing themes does nothing on Windows when system high contrast mode is enabled
In-Reply-To: <CAM9w-_k+o6LE=fi6LUFwtqw5yX0dCZB_PozOttoQm_K_cyAD8w@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox