From ace9f73af69553cae5a75e047e119238c0ea9d60 Mon Sep 17 00:00:00 2001 From: SirBlobby Date: Wed, 19 Aug 2026 14:34:46 -0400 Subject: [PATCH] Fix theme swatches and calendar nav, add collapsible card sections Claude-Session: https://claude.ai/code/session_014ADhvRXuiTvrXSbConxUey --- ags/style.css | 27 ++++++++++-- ags/widget/ClaudeUsage.tsx | 85 ++++++++++++++++++++++++++++-------- ags/widget/QuickSettings.tsx | 6 +-- ags/widget/ThemePicker.tsx | 11 +++-- 4 files changed, 102 insertions(+), 27 deletions(-) diff --git a/ags/style.css b/ags/style.css index b4a1474..46ce750 100644 --- a/ags/style.css +++ b/ags/style.css @@ -497,13 +497,34 @@ tooltip.background label { background-color: @accent; } +.widget-section-toggle { + border-top: 1px solid alpha(@foreground, 0.12); + border-left: none; + border-right: none; + border-bottom: none; + border-radius: 0; + background-color: transparent; + padding: 10px 0 2px 0; + margin-top: 4px; +} + +.widget-section-toggle:hover .widget-section-title, +.widget-section-toggle:hover .widget-section-caret { + opacity: 1; + color: @accent; +} + .widget-section-title { font-size: 10px; font-weight: bold; opacity: 0.45; - border-top: 1px solid alpha(@foreground, 0.12); - padding-top: 10px; - margin-top: 4px; +} + +.widget-section-caret { + font-size: 12px; + font-weight: bold; + opacity: 0.45; + min-width: 14px; } .agent-mark { diff --git a/ags/widget/ClaudeUsage.tsx b/ags/widget/ClaudeUsage.tsx index d046919..493fc32 100644 --- a/ags/widget/ClaudeUsage.tsx +++ b/ags/widget/ClaudeUsage.tsx @@ -1,6 +1,6 @@ import { Gtk } from "ags/gtk3" import { createPoll } from "ags/time" -import { For } from "ags" +import { For, createState } from "ags" import { shell } from "../lib/utils" type Limit = { @@ -198,8 +198,33 @@ const usage = createPoll( (stdout) => parseUsage(stdout), ) -function SectionTitle({ title }: { title: string }) { - return