Files
TUI-WM/panels/topbar.toml
Bjorn Blomberg c9a4a8fc21 Built-in settings dialog opened from a panel gear button
- New spawn_settings action + '≡ Inställningar' button in the default
  panel (≡ instead of ⚙ which has ambiguous character width): opens a
  singleton settings window
- Rows: theme (cycles built-in + themes/*.toml), panel (cycles
  panels/*.toml), shadow and scrollbar toggles — keyboard (arrows/
  Enter/Esc) and mouse (click selects, click again activates)
- Shows where config.toml, themes/ and panels/ live
- Changes apply immediately and persist to config.toml via toml_edit;
  the hot-reload watcher picks up the file writes for panels
- README and --help updated with switcher/snap/copy-mode/theme docs
- Integration suite: 30/30 (gear click, dialog opens, shadow toggle
  persisted to config.toml)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15 19:48:04 +02:00

35 lines
846 B
TOML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Knappar i panelen
[[item]]
label = "Terminal"
action = { type = "spawn_terminal" }
[[item]]
label = "mouse-test"
action = { type = "run_program", command = "testapps/mouse-test/target/release/mouse-test" }
# Inbyggda inställningar (tema/panel/skugga/scrollbar).
# ≡ används i stället för ⚙ eftersom kugghjuls-emojin har tvetydig
# teckenbredd och förskjuter panelraden i vissa terminaler.
[[item]]
label = "≡ Inställningar"
action = { type = "spawn_settings" }
[[item]]
label = "Exit"
action = { type = "exit" }
# Status-widgets
# Klocka körs varje sekund, 10 tecken bred, dockad mot höger
[[status]]
command = "date '+%H:%M:%S'"
interval = 1
width = 10
align = "right"
# Datum uppdateras varje minut, 12 tecken bred, dockad mot höger
[[status]]
command = "date '+%Y-%m-%d'"
interval = 60
width = 12
align = "right"