Hi,
I dont run browser persistance so having the defaults run as i want them is important to me, I got sick of manually toggling dark mode every time so i did this:
4. Then insert this:
It works and allows you to also select light mode if needed...
Note: im not a developer all i care is that it works, is there probably more elegant better ways, i assume so, Im posting this here because i embarrassingly wasted half a day bashing around trying to figure this out so if i can save some one else the trouble cool.
I dont run browser persistance so having the defaults run as i want them is important to me, I got sick of manually toggling dark mode every time so i did this:
- Open console
- sudo cp /usr/share/pve-manager/index.html.tpl /usr/share/pve-manager/index.html.tpl.bkup
- sudo nano /usr/share/pve-manager/index.html.tpl
- Remove every thing after:
<link rel="stylesheet" type="text/css" href="/pve2/css/ext6-pve.css?ver=[% version %]" />
<link rel="stylesheet" type="text/css" href="/pwt/css/ext6-pmx.css?ver=[% wtversion %]" />
But before this:
[% IF langfile %]
<script type='text/javascript' src='/pve2/locale/pve-lang-[% lang %].js?ver=[% version %]'></script>
4. Then insert this:
[%- IF theme != 'crisp' %]
[%- IF theme == 'auto' %]
<link rel="stylesheet" type="text/css" href="/pwt/themes/theme-proxmox-dark.css?ver=[% wtversion %]" />
[%- ELSE %]
<link rel="stylesheet" type="text/css" href="/pwt/themes/theme-[% theme %].css?ver=[% wtversion %]" />
[%- END -%]
[%- END -%]
It works and allows you to also select light mode if needed...
Note: im not a developer all i care is that it works, is there probably more elegant better ways, i assume so, Im posting this here because i embarrassingly wasted half a day bashing around trying to figure this out so if i can save some one else the trouble cool.