From: Stefan Sterz <s.sterz@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [pmg-devel] [PATCH pmg-gui 2/2] index template: make it easier to use the auto theme per default
Date: Tue, 14 Mar 2023 15:02:02 +0100 [thread overview]
Message-ID: <20230314140203.1107068-7-s.sterz@proxmox.com> (raw)
In-Reply-To: <20230314140203.1107068-1-s.sterz@proxmox.com>
adapt the main template so the proxy can use the "auto" theme per
default more easily.
Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
---
pmg-index.html.tt | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/pmg-index.html.tt b/pmg-index.html.tt
index 12c18d3..9ffd3bb 100644
--- a/pmg-index.html.tt
+++ b/pmg-index.html.tt
@@ -13,13 +13,13 @@
<link rel="stylesheet" type="text/css" href="/fontawesome/css/font-awesome.css" />
<link rel="stylesheet" type="text/css" href="/pve2/css/ext6-pmg.css?ver=[% version %]" />
<link rel="stylesheet" type="text/css" href="/pwt/css/ext6-pmx.css?ver=[% wtversion %]" />
- [%- IF theme %]
- [%- IF theme == 'auto' %]
- <link rel="stylesheet" type="text/css" media="(prefers-color-scheme: dark)" href="/pwt/themes/theme-proxmox-dark.css?ver=[% wtversion %]" />
- [%- ELSE %]
+ [%- IF theme != 'crisp' %]
+ [%- IF theme != 'auto' %]
<link rel="stylesheet" type="text/css" href="/pwt/themes/theme-[% theme %].css?ver=[% wtversion %]" />
+ [%- ELSE %]
+ <link rel="stylesheet" type="text/css" media="(prefers-color-scheme: dark)" href="/pwt/themes/theme-proxmox-dark.css?ver=[% wtversion %]" />
[%- END -%]
- [%- END -%]
+ [%- END -%]
[% IF langfile %]
<script type='text/javascript' src='/pve2/locale/pmg-lang-[% lang %].js'></script>
[% ELSE %]
--
2.30.2
next prev parent reply other threads:[~2023-03-14 14:02 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-14 14:01 [pve-devel] [PATCH widget-toolkit 0/2] Proxmox Dark Theme Fix-ups Round 2 Stefan Sterz
2023-03-14 14:01 ` [pmg-devel] " Stefan Sterz
2023-03-14 14:01 ` [pbs-devel] " Stefan Sterz
2023-03-14 14:01 ` [pve-devel] [PATCH widget-toolkit 1/2] utils: move to using the auto theme per default Stefan Sterz
2023-03-14 14:01 ` [pmg-devel] " Stefan Sterz
2023-03-14 14:01 ` [pbs-devel] " Stefan Sterz
2023-03-14 14:01 ` [pve-devel] [PATCH widget-toolkit 2/2] dark-theme: increase contrast on check-boxes Stefan Sterz
2023-03-14 14:01 ` [pmg-devel] " Stefan Sterz
2023-03-14 14:01 ` [pbs-devel] " Stefan Sterz
2023-03-14 14:01 ` [pve-devel] [PATCH manager] pveproxy/template: switch to using the "auto" theme per default Stefan Sterz
2023-03-14 14:15 ` [pve-devel] applied: " Thomas Lamprecht
2023-03-14 14:02 ` [pbs-devel] [PATCH proxmox-backup] proxy: switch to "auto" as the default theme Stefan Sterz
2023-03-14 16:57 ` [pbs-devel] applied: " Thomas Lamprecht
2023-03-14 14:02 ` [pmg-devel] [PATCH pmg-gui 1/2] mobile quarantine: properly style main logo Stefan Sterz
2023-03-14 14:02 ` Stefan Sterz [this message]
2023-03-14 14:02 ` [pmg-devel] [PATCH pmg-api] proxy: make the "auto" theme the default Stefan Sterz
2023-03-14 14:15 ` [pve-devel] applied: [PATCH widget-toolkit 0/2] Proxmox Dark Theme Fix-ups Round 2 Thomas Lamprecht
2023-03-14 14:15 ` [pmg-devel] applied: [pve-devel] " Thomas Lamprecht
2023-03-14 14:15 ` [pbs-devel] " Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230314140203.1107068-7-s.sterz@proxmox.com \
--to=s.sterz@proxmox.com \
--cc=pmg-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.