diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-21 10:07:37 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-21 10:07:42 +0200 |
| commit | 28b7d44e2d29d14ce2b9b30adecdf1bff3a71bf6 (patch) | |
| tree | 5f339562dc04f207c59c70151d7379d594e40dd8 /sb_builder/dashboard.py | |
| parent | 6b0f67655b40fef221f9c84cfb6c0bcedf34e3bb (diff) | |
| download | sb-builder-28b7d44e2d29d14ce2b9b30adecdf1bff3a71bf6.tar.gz sb-builder-28b7d44e2d29d14ce2b9b30adecdf1bff3a71bf6.zip | |
Repository: stats as Dashboard tiles
Packages, Size, Unpublished (opens the unpublished filter), Last publish,
in place of the one-line summary. CARD_STYLE moves to dashboard.py so
both tabs share it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'sb_builder/dashboard.py')
| -rw-r--r-- | sb_builder/dashboard.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sb_builder/dashboard.py b/sb_builder/dashboard.py index 9b04183..3280168 100644 --- a/sb_builder/dashboard.py +++ b/sb_builder/dashboard.py @@ -61,6 +61,10 @@ def muted(label): return label +CARD_STYLE = ("QFrame#card { background: palette(base);" + " border: 1px solid palette(mid); border-radius: 10px; }") + + class Card(QFrame): """Rounded panel with a muted title; content goes into self.body.""" @@ -254,8 +258,7 @@ class Dashboard(QWidget): def __init__(self, parent=None): super().__init__(parent) - self.setStyleSheet("QFrame#card { background: palette(base);" - " border: 1px solid palette(mid); border-radius: 10px; }") + self.setStyleSheet(CARD_STYLE) self.tiles = {name: Tile(name) for name in ("Packages", "Built", "Last pull", "slackpkg")} self.vm = Card("VM") |
