Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions Example/index.html.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,19 @@
Ext.onReady(function() { Ext.create('PVE.StdWorkspace');});
</script>

<script>
document.addEventListener('DOMContentLoaded', () => {
// Look for the Proxmox dark-theme stylesheet
const darkLink = document.querySelector(
'link[href*="theme-proxmox-dark.css"]'
);
if (darkLink) {
document.body.classList.add('proxmox-theme-dark');
}
});
</script>
<script>
document.addEventListener('DOMContentLoaded', () => {
// Look for the Proxmox dark-theme stylesheet
const darkLink = document.querySelector(
'link[href*="theme-proxmox-dark.css"]'
);
if (darkLink) {
document.body.classList.add('proxmox-theme-dark');
}
});
</script>

<link rel="stylesheet" href="/pve2/images/solarized.css">
<link rel="stylesheet" href="/pve2/images/solarized.css">

</head>
<body>
Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Darkmode:
By default this is:
```

/usr/share/pve-manager/images/solarized.css
/usr/share/pve-manager/css/solarized.css

```

Expand All @@ -47,19 +47,19 @@ Edit (or better: override) Proxmox’s `index.html.tpl`—usually at:
and add *before* the existing `</head>` the following snippet:

```html
<script>
document.addEventListener('DOMContentLoaded', () => {
// Detect if Proxmox’s dark stylesheet is loaded
const darkLink = document.querySelector(
'link[href*="theme-proxmox-dark.css"]'
);
if (darkLink) {
document.body.classList.add('proxmox-theme-dark');
}
});
</script>

<link rel="stylesheet" href="/pve2/images/solarized.css">
<script>
document.addEventListener('DOMContentLoaded', () => {
// Detect if Proxmox’s dark stylesheet is loaded
const darkLink = document.querySelector(
'link[href*="theme-proxmox-dark.css"]'
);
if (darkLink) {
document.body.classList.add('proxmox-theme-dark');
}
});
</script>

<link rel="stylesheet" href="/pve2/css/solarized.css">
````
(An example index.html.tpl ships in this repo, see the `Example` folder)

Expand Down