adds dark mode support to the api viewer that is activated depending
on the users theme preference. similar to the main gui's "auto"
theme.

this requires a bumps of the widget toolkit so the loaded css file is
present

Signed-off-by: Stefan Sterz <s.st...@proxmox.com>
---
 api-viewer/index.html | 1 +
 1 file changed, 1 insertion(+)

diff --git a/api-viewer/index.html b/api-viewer/index.html
index 8528420..006e64b 100644
--- a/api-viewer/index.html
+++ b/api-viewer/index.html
@@ -6,6 +6,7 @@
     <title>Proxmox VE API Documentation</title>
 
     <link rel="stylesheet" type="text/css" 
href="extjs/theme-crisp/resources/theme-crisp-all.css">
+    <link rel="stylesheet" type="text/css" media="(prefers-color-scheme: 
dark)" href="/pwt/themes/theme-proxmox-dark.css" />
     <script type="text/javascript" src="extjs/ext-all.js"></script>
     <script type="text/javascript" src="apidoc.js"></script>
 </head>
-- 
2.30.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to