* [pbs-devel] [PATCH widget-toolkit 1/2] utils: move to using the auto theme per default
2023-03-14 14:01 [pbs-devel] [PATCH widget-toolkit 0/2] Proxmox Dark Theme Fix-ups Round 2 Stefan Sterz
@ 2023-03-14 14:01 ` Stefan Sterz
2023-03-14 14:01 ` [pbs-devel] [PATCH widget-toolkit 2/2] dark-theme: increase contrast on check-boxes Stefan Sterz
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Stefan Sterz @ 2023-03-14 14:01 UTC (permalink / raw)
To: pve-devel, pmg-devel, pbs-devel
make the new default theme the "auto" theme that uses media queries to
detect a users preferred theme.
Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
---
src/Utils.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Utils.js b/src/Utils.js
index 2ab1d0a..c9c00a9 100644
--- a/src/Utils.js
+++ b/src/Utils.js
@@ -110,13 +110,13 @@ utilities: {
},
theme_map: {
- auto: 'auto',
+ crisp: 'Light theme',
"proxmox-dark": 'Proxmox Dark',
},
render_theme: function(value) {
if (!value || value === '__default__') {
- return Proxmox.Utils.defaultText + ' (Light theme)';
+ return Proxmox.Utils.defaultText + ' (auto)';
}
let text = Proxmox.Utils.theme_map[value];
if (text) {
--
2.30.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* [pbs-devel] [PATCH widget-toolkit 2/2] dark-theme: increase contrast on check-boxes
2023-03-14 14:01 [pbs-devel] [PATCH widget-toolkit 0/2] Proxmox Dark Theme Fix-ups Round 2 Stefan Sterz
2023-03-14 14:01 ` [pbs-devel] [PATCH widget-toolkit 1/2] utils: move to using the auto theme per default Stefan Sterz
@ 2023-03-14 14:01 ` Stefan Sterz
2023-03-14 14:02 ` [pbs-devel] [PATCH proxmox-backup] proxy: switch to "auto" as the default theme Stefan Sterz
2023-03-14 14:15 ` [pbs-devel] applied: [pve-devel] [PATCH widget-toolkit 0/2] Proxmox Dark Theme Fix-ups Round 2 Thomas Lamprecht
3 siblings, 0 replies; 6+ messages in thread
From: Stefan Sterz @ 2023-03-14 14:01 UTC (permalink / raw)
To: pve-devel, pmg-devel, pbs-devel
by adding a bit of brightness to the icons they stand out a bit more,
especially when selected but not active (grey check-mark)
Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
---
src/proxmox-dark/scss/other/_icons.scss | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/proxmox-dark/scss/other/_icons.scss b/src/proxmox-dark/scss/other/_icons.scss
index f132dae..b4443ee 100644
--- a/src/proxmox-dark/scss/other/_icons.scss
+++ b/src/proxmox-dark/scss/other/_icons.scss
@@ -108,7 +108,7 @@
.x-form-radio-default,
.x-column-header-checkbox .x-column-header-checkbox::after,
.x-grid-checkcolumn::after {
- filter: invert($icon-brightness) hue-rotate(180deg);
+ filter: invert($icon-brightness) hue-rotate(180deg) brightness(125%);
}
.x-tree-icon-custom,
--
2.30.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* [pbs-devel] [PATCH proxmox-backup] proxy: switch to "auto" as the default theme
2023-03-14 14:01 [pbs-devel] [PATCH widget-toolkit 0/2] Proxmox Dark Theme Fix-ups Round 2 Stefan Sterz
2023-03-14 14:01 ` [pbs-devel] [PATCH widget-toolkit 1/2] utils: move to using the auto theme per default Stefan Sterz
2023-03-14 14:01 ` [pbs-devel] [PATCH widget-toolkit 2/2] dark-theme: increase contrast on check-boxes Stefan Sterz
@ 2023-03-14 14:02 ` Stefan Sterz
2023-03-14 16:57 ` [pbs-devel] applied: " Thomas Lamprecht
2023-03-14 14:15 ` [pbs-devel] applied: [pve-devel] [PATCH widget-toolkit 0/2] Proxmox Dark Theme Fix-ups Round 2 Thomas Lamprecht
3 siblings, 1 reply; 6+ messages in thread
From: Stefan Sterz @ 2023-03-14 14:02 UTC (permalink / raw)
To: pbs-devel
use the "auto" theme per default. it uses a media query to detect the
users preferred theme.
Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
---
src/bin/proxmox-backup-proxy.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/bin/proxmox-backup-proxy.rs b/src/bin/proxmox-backup-proxy.rs
index 85b6a123..d93840c5 100644
--- a/src/bin/proxmox-backup-proxy.rs
+++ b/src/bin/proxmox-backup-proxy.rs
@@ -103,9 +103,9 @@ fn get_theme(headers: &http::HeaderMap) -> String {
};
match cookie_from_header(headers, "PBSThemeCookie") {
- Some(theme) if theme == "auto" => theme,
- Some(theme) if theme != "__default__" && exists(&theme) => theme,
- _ => String::from(""),
+ Some(theme) if theme == "crisp" => String::from(""),
+ Some(theme) if exists(&theme) => theme,
+ _ => String::from("auto"),
}
}
--
2.30.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* [pbs-devel] applied: [pve-devel] [PATCH widget-toolkit 0/2] Proxmox Dark Theme Fix-ups Round 2
2023-03-14 14:01 [pbs-devel] [PATCH widget-toolkit 0/2] Proxmox Dark Theme Fix-ups Round 2 Stefan Sterz
` (2 preceding siblings ...)
2023-03-14 14:02 ` [pbs-devel] [PATCH proxmox-backup] proxy: switch to "auto" as the default theme Stefan Sterz
@ 2023-03-14 14:15 ` Thomas Lamprecht
3 siblings, 0 replies; 6+ messages in thread
From: Thomas Lamprecht @ 2023-03-14 14:15 UTC (permalink / raw)
To: Proxmox VE development discussion, Stefan Sterz, pmg-devel, pbs-devel
Am 14/03/2023 um 15:01 schrieb Stefan Sterz:
> this theme switches the default theme to the 'auto' theme for
> all three producs (pve, pmg, pbs) in addition to two minor fix-ups
>
> * for the widget toolkit a bit of brightness is added to the check-box
> icons
> * in the pmg-gui the main logo in the mobile quarantine is styled
> properly
>
> note that the patches for pbs and pmg are meant as fix-ups for the yet
> to be applied patches from the initial dark theme series. if this is
> too inconvenient ill re-submit these patches once they are applied. if
> they are applied, squashing these into the previous commits might make
> sense, though.
>
> Stefan Sterz (2):
> utils: move to using the auto theme per default
> dark-theme: increase contrast on check-boxes
>
> src/Utils.js | 4 ++--
> src/proxmox-dark/scss/other/_icons.scss | 2 +-
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
applied series, thanks!
^ permalink raw reply [flat|nested] 6+ messages in thread