From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 507B81FF0B4 for ; Fri, 27 Nov 2026 17:14:16 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 35FA721928; Fri, 27 Nov 2026 17:13:17 +0100 (CET) From: Dominik Csapak To: pdm-devel@lists.proxmox.com Subject: [PATCH yew-widget-toolkit 24/38] widget: charts: map: let the style sheet color the zoom buttons Date: Fri, 27 Nov 2026 17:12:21 +0100 Message-ID: <20261127161241.3713494-25-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261127161241.3713494-1-d.csapak@proxmox.com> References: <20261127161241.3713494-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.252 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: FOBNIV4WB6XV4B4KR7MJODPHJ47VALOO X-Message-ID-Hash: FOBNIV4WB6XV4B4KR7MJODPHJ47VALOO X-MailFrom: d.csapak@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: instead of using the primary color scheme for them. Three buttons in the primary color draw a lot of attention for what they do. Without it, the style sheet can show them as one unobtrusive panel on top of the map. Signed-off-by: Dominik Csapak --- src/widget/charts/map/mod.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/widget/charts/map/mod.rs b/src/widget/charts/map/mod.rs index 69dba92..cf236f3 100644 --- a/src/widget/charts/map/mod.rs +++ b/src/widget/charts/map/mod.rs @@ -13,13 +13,13 @@ pub use map_point::{ mod zoom_info; use zoom_info::ZoomInfo; +use crate::client_to_svg_coords; use crate::dom::align::{AlignOptions, align_to, align_to_xy}; use crate::prelude::*; use crate::touch::{GestureDetector, GestureDragEvent, GesturePhase, GesturePinchZoomEvent}; use crate::widget::canvas::{Canvas, Circle, Group}; use crate::widget::charts::map::zoom_info::ZoomAction; use crate::widget::{Button, Card, Container, Row, SizeObserver, Tooltip}; -use crate::{client_to_svg_coords, css}; use pwt_macros::{builder, widget}; /// x and y coordinates to represent a position @@ -705,12 +705,10 @@ impl yew::Component for MapComp { .with_optional_child(info) .with_child( Row::new() - .gap(1) .class("pwt-map-interaction-panel") .with_child( Tooltip::new( Button::new_icon("fa fa-arrows-alt") - .class(css::ColorScheme::Primary) .disabled(!is_zoomed) .on_activate(link.callback(|_| Msg::ButtonZoom(ZoomAction::Reset))), ) @@ -719,7 +717,6 @@ impl yew::Component for MapComp { .with_child( Tooltip::new( Button::new_icon("fa fa-minus") - .class(css::ColorScheme::Primary) .disabled(!is_zoomed) .on_activate(link.callback(|_| Msg::ButtonZoom(ZoomAction::Out))), ) @@ -728,7 +725,6 @@ impl yew::Component for MapComp { .with_child( Tooltip::new( Button::new_icon("fa fa-plus") - .class(css::ColorScheme::Primary) .disabled(fully_zoomed) .on_activate(link.callback(|_| Msg::ButtonZoom(ZoomAction::In))), ) -- 2.47.3