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 67AB21FF13B for ; Wed, 08 Apr 2026 12:48:23 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 3300D7E09; Wed, 8 Apr 2026 12:48:58 +0200 (CEST) From: Dominik Csapak To: yew-devel@lists.proxmox.com Subject: [PATCH yew-widget-toolkit-assets 1/1] add helper class for pie chart Date: Wed, 8 Apr 2026 12:48:43 +0200 Message-ID: <20260408104850.1592300-2-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260408104850.1592300-1-d.csapak@proxmox.com> References: <20260408104850.1592300-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.050 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 Message-ID-Hash: TWH5Y5N7UWBWH5JT2XLJKAD3ILRJKWDN X-Message-ID-Hash: TWH5Y5N7UWBWH5JT2XLJKAD3ILRJKWDN 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: Yew framework devel list at Proxmox List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: currently only the legend color class to set the icon color via a css variable. Signed-off-by: Dominik Csapak --- new in v1 scss/_charts.scss | 10 ++++++++++ scss/_theme_post.scss | 1 + 2 files changed, 11 insertions(+) create mode 100644 scss/_charts.scss diff --git a/scss/_charts.scss b/scss/_charts.scss new file mode 100644 index 0000000..88ee946 --- /dev/null +++ b/scss/_charts.scss @@ -0,0 +1,10 @@ +/// ## Helper classes for the `pie chart` + + +/// Class `pwt-legend-color` +/// +/// This class uses the variable `--pwt-legend-color` to set +/// the correct text color. Used for the icon in the legend. +.pwt-legend-color { + color: var(--pwt-legend-color) +} diff --git a/scss/_theme_post.scss b/scss/_theme_post.scss index c3b8642..55f0be9 100644 --- a/scss/_theme_post.scss +++ b/scss/_theme_post.scss @@ -103,6 +103,7 @@ $pwt-font-monospace: monospace; @import "application_bar"; @import "button"; @import "card"; +@import "charts"; @import "content_spacer"; @import "datatable"; @import "date_selector"; -- 2.47.3