From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id C15291FF13A for ; Wed, 27 May 2026 09:08:10 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 1F49110FBC; Wed, 27 May 2026 09:08:09 +0200 (CEST) From: Lukas Wagner To: pdm-devel@lists.proxmox.com Subject: [PATCH datacenter-manager] ui: guest view: improve contrast for placeholder text/icon Date: Wed, 27 May 2026 09:07:33 +0200 Message-ID: <20260527070733.38398-1-l.wagner@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1779865628981 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.053 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [guests.rs] Message-ID-Hash: H7BQ3I2O7L63BR2F3AR3H6U54D6JDCIP X-Message-ID-Hash: H7BQ3I2O7L63BR2F3AR3H6U54D6JDCIP X-MailFrom: l.wagner@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The icon and status text is shown if there is e.g. no guest matching the current filter. The "NeutralAlt" color does not have a good enough contrast to be clearly legible (especially in dark mode), so use default text color instead. Signed-off-by: Lukas Wagner --- ui/src/guests.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ui/src/guests.rs b/ui/src/guests.rs index c912867e..85faf71a 100644 --- a/ui/src/guests.rs +++ b/ui/src/guests.rs @@ -24,7 +24,7 @@ use proxmox_yew_comp::{ LoadableComponentScope, LoadableComponentScopeExt, LoadableComponentState, }; -use pwt::css::{AlignItems, ColorScheme, FlexFit, FontColor, FontStyle, JustifyContent}; +use pwt::css::{AlignItems, ColorScheme, FlexFit, FontStyle, JustifyContent}; use pwt::prelude::*; use pwt::props::{ ContainerBuilder, CssPaddingBuilder, ExtractPrimaryKey, StorageLocation, WidgetBuilder, @@ -614,17 +614,13 @@ fn empty_state(icon: &str, title: String, hint: String) -> Html { .class(AlignItems::Center) .gap(2) .padding(4) - .with_child(Fa::new(icon).large_3x().class(FontColor::NeutralAlt)) + .with_child(Fa::new(icon).large_3x()) .with_child( Container::from_tag("span") .class(FontStyle::TitleMedium) .with_child(title), ) - .with_child( - Container::from_tag("span") - .class(FontColor::NeutralAlt) - .with_child(hint), - ) + .with_child(Container::from_tag("span").with_child(hint)) .into() } -- 2.47.3