public inbox for [email protected]  
help / color / mirror / Atom feed
[pgAdmin][RM6954] Changing themes does nothing on Windows when system high contrast mode is enabled
2+ messages / 2 participants
[nested] [flat]

* [pgAdmin][RM6954] Changing themes does nothing on Windows when system high contrast mode is enabled
@ 2021-11-05 07:49 Aditya Toshniwal <[email protected]>
  2021-11-07 05:53 ` Re: [pgAdmin][RM6954] Changing themes does nothing on Windows when system high contrast mode is enabled Akshay Joshi <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: Aditya Toshniwal @ 2021-11-05 07:49 UTC (permalink / raw)
  To: pgadmin-hackers

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;
+  }
+}


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: [pgAdmin][RM6954] Changing themes does nothing on Windows when system high contrast mode is enabled
  2021-11-05 07:49 [pgAdmin][RM6954] Changing themes does nothing on Windows when system high contrast mode is enabled Aditya Toshniwal <[email protected]>
@ 2021-11-07 05:53 ` Akshay Joshi <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Akshay Joshi @ 2021-11-07 05:53 UTC (permalink / raw)
  To: Aditya Toshniwal <[email protected]>; +Cc: pgadmin-hackers

Thanks, the patch applied.

On Fri, Nov 5, 2021 at 1:19 PM Aditya Toshniwal <
[email protected]> wrote:

> 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"
>


-- 
*Thanks & Regards*
*Akshay Joshi*
*pgAdmin Hacker | Principal Software Architect*
*EDB Postgres <http://edbpostgres.com>*

*Mobile: +91 976-788-8246*


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2021-11-07 05:53 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-11-05 07:49 [pgAdmin][RM6954] Changing themes does nothing on Windows when system high contrast mode is enabled Aditya Toshniwal <[email protected]>
2021-11-07 05:53 ` Akshay Joshi <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox