all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
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	[thread overview]
Message-ID: <20260408104850.1592300-2-d.csapak@proxmox.com> (raw)
In-Reply-To: <20260408104850.1592300-1-d.csapak@proxmox.com>

currently only the legend color class to set the icon color via a css
variable.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
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





  reply	other threads:[~2026-04-08 10:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-08 10:48 [PATCH yew-widget-toolkit/yew-widget-toolkit-assets 0/3] implement pie chart widget Dominik Csapak
2026-04-08 10:48 ` Dominik Csapak [this message]
2026-04-08 10:48 ` [PATCH yew-widget-toolkit 1/2] macros: widget: impl WidgetStyleBuilder for svgs Dominik Csapak
2026-04-08 10:48 ` [PATCH yew-widget-toolkit 2/2] add pie chart widget Dominik Csapak
2026-04-09 11:39 ` applied: [PATCH yew-widget-toolkit/yew-widget-toolkit-assets 0/3] implement " Dietmar Maurer

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=20260408104850.1592300-2-d.csapak@proxmox.com \
    --to=d.csapak@proxmox.com \
    --cc=yew-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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal