diff --git a/Sources/StableBar/App/HelpQuestion.swift b/Sources/StableBar/App/HelpQuestion.swift index 440ad2e0..3e297beb 100644 --- a/Sources/StableBar/App/HelpQuestion.swift +++ b/Sources/StableBar/App/HelpQuestion.swift @@ -84,13 +84,13 @@ struct HelpQuestion: Identifiable { ## Where did my other apps' menu bar icons go? - The **Menu bar items** widget, a grid symbol, lists them. Rest the pointer on it, or click it, to see every item in the macOS menu bar as a row of icons, then click one to open its menu. It needs Accessibility access. If your bar doesn't have it, add **Menu bar items** with **Add widget** in **Settings → Bar**. + The **Menu bar items** widget, a grid symbol, lists them. Rest the pointer on it, or click it, to see every item in the macOS menu bar as a row of icons, then click one to open its menu. It needs Accessibility access. If your bar doesn't have it, add **Menu bar items** with **Add widget** in **Settings → Widgets**. - To keep an item you use often on the bar itself, right-click its icon in the row and choose **Show on Bar**; **Hide** takes an item out of the row. In **Settings → Bar**, the widget's **Content** tab arranges them all, and **As in the menu bar** there makes an item on the bar show what it shows in the menu bar, such as your next meeting, instead of its app's icon. See [Menu bar items](widgets.md#menu-bar-items). + To keep an item you use often on the bar itself, right-click its icon in the row and choose **Show on Bar**; **Hide** takes an item out of the row. In **Settings → Widgets**, the widget's **Content** tab arranges them all, and **As in the menu bar** there makes an item on the bar show what it shows in the menu bar, such as your next meeting, instead of its app's icon. See [Menu bar items](widgets.md#menu-bar-items). ## How do I show my workspaces on the bar? - Add **Workspaces** with **Add widget** in **Settings → Bar**. When you add it, it keeps the source your configuration names while that one is installed; otherwise it takes the first of AeroSpace, yabai, OmniWM, Rift and KiwiDesk that is installed and running, or your macOS Spaces when none is. The bar keeps that source and doesn't switch on its own, even when the window manager quits; to pick another, use **Settings → General → Workspaces**. + Add **Workspaces** with **Add widget** in **Settings → Widgets**. When you add it, it keeps the source your configuration names while that one is installed; otherwise it takes the first of AeroSpace, yabai, OmniWM, Rift and KiwiDesk that is installed and running, or your macOS Spaces when none is. The bar keeps that source and doesn't switch on its own, even when the window manager quits; to pick another, use **Settings → General → Workspaces**. Some sources need one step on their side: @@ -111,9 +111,9 @@ struct HelpQuestion: Identifiable { ## Can my laptop and my external monitor show different widgets? - Yes. StableBar draws a bar on every display, and you choose where each widget shows: select it in **Settings → Bar** and use **Shows on**, beside its name, to pick **All screens**, the laptop, landscape monitors, vertical monitors or **Hidden everywhere**. With more than one kind of screen connected, moving a widget moves it only on the kind of screen selected in **Settings → Bar**. + Yes. StableBar draws a bar on every display, and you choose where each widget shows: select it in **Settings → Widgets** and use **Shows on**, beside its name, to pick **All screens**, the laptop, landscape monitors, vertical monitors or **Hidden everywhere**. With more than one kind of screen connected, moving a widget moves it only on the kind of screen selected in **Settings → Widgets**. - For a whole different bar when you dock, give that screen setup its own bar: in **Settings → Bar**, open the menu beside the screen thumbnails and choose **Give it its own bar**. StableBar then switches bars when you connect or disconnect a screen. + For a whole different bar when you dock, give that screen setup its own bar: in **Settings → Widgets**, open the menu beside the screen thumbnails and choose **Give it its own bar**. StableBar then switches bars when you connect or disconnect a screen. **Settings → Appearance** can also give each kind of screen its own bar height: choose the screen in **Editing**. See [Screen setups](layout.md#screen-setups). @@ -141,7 +141,7 @@ struct HelpQuestion: Identifiable { Keep your scripts in `~/.config/stablebar/widgets/` and make them executable. A script can print plain text, or one JSON object such as `{"text":"Ready","icon":"checkmark.circle"}` to add an SF Symbol, a color or a tooltip. - **Add widget** in **Settings → Bar** also offers **Script**; change its command with **More → Edit as JSON…**. See [Create a widget](create-a-widget.md). + **Add widget** in **Settings → Widgets** also offers **Script**; change its command with **More → Edit as JSON…**. See [Create a widget](create-a-widget.md). ## What can a package from the Store do on my Mac? diff --git a/Sources/StableBar/Settings/BarInspector.swift b/Sources/StableBar/Settings/BarInspector.swift index d3f97087..85c862cf 100644 --- a/Sources/StableBar/Settings/BarInspector.swift +++ b/Sources/StableBar/Settings/BarInspector.swift @@ -65,7 +65,7 @@ struct BarInspector: View { : "Group of \(groupMembers(group).map { names[$0.id] ?? $0.id }.formatted(.list(type: .and)))") } } else { - header(Image(systemName: "menubar.rectangle").font(.system(size: 18)), title: "Bar") { Text("The strip itself") } + header(Image(systemName: "display.2").font(.system(size: 18)), title: "Screens") { Text("Shared or per-screen bar") } } } .padding(.horizontal, 20) diff --git a/Sources/StableBar/Settings/CustomizationWindow.swift b/Sources/StableBar/Settings/CustomizationWindow.swift index 768c4868..513a300c 100644 --- a/Sources/StableBar/Settings/CustomizationWindow.swift +++ b/Sources/StableBar/Settings/CustomizationWindow.swift @@ -91,7 +91,7 @@ final class CustomizationWindow: NSObject, NSWindowDelegate { } enum CustomizationSection: String, CaseIterable, Identifiable { - case general = "General", widgets = "Bar", appearance = "Appearance", packages = "Store", profiles = "Profiles", diagnostics = "Status", help = "Help" + case general = "General", widgets = "Widgets", appearance = "Appearance", packages = "Store", profiles = "Profiles", diagnostics = "Status", help = "Help" var id: Self { self } diff --git a/Sources/StableBar/Settings/SettingsSearch.swift b/Sources/StableBar/Settings/SettingsSearch.swift index 896737aa..8b11cd7b 100644 --- a/Sources/StableBar/Settings/SettingsSearch.swift +++ b/Sources/StableBar/Settings/SettingsSearch.swift @@ -29,13 +29,13 @@ enum SettingsSearchResult: String, CaseIterable, Identifiable { case .barLook: ("Bar background and border", .appearance, "Appearance › Bar", "look color fill gradient edges line corners") case .barPlacement: ("Bar position, below the menu bar, offset and full-screen apps", .appearance, "Appearance › Bar", "placement position top bottom edge display fullscreen full screen spaces") - case .screenSetups: ("Own bar for these screens", .widgets, "Bar › Screens", "screen setup monitor laptop vertical shared external") + case .screenSetups: ("Own bar for these screens", .widgets, "Widgets › Screens", "screen setup monitor laptop vertical shared external") case .everyWidget: ("Look of every widget", .appearance, "Appearance › Widgets", "defaults font size color padding corners shadow px pt") case .everyGroup: ("Look of every group", .appearance, "Appearance › Groups", "groups defaults background border corners padding spacing px pt") - case .widgetContent: ("Widget content", .widgets, "Bar › Widget › Content", "text icon clock date format package settings location units") - case .widgetStyle: ("Widget style", .widgets, "Bar › Widget › Style", "color gradient font size padding corners border px pt") - case .widgetBehavior: ("Widget clicks, screens and position", .widgets, "Bar › Widget › Behavior", "click popup hover screens display position tooltip hide") - case .addWidget: ("Add a widget", .widgets, "Bar › Add widget", "new widget clock battery calendar store package") + case .widgetContent: ("Widget content", .widgets, "Widgets › Widget › Content", "bar text icon clock date format package settings location units") + case .widgetStyle: ("Widget style", .widgets, "Widgets › Widget › Style", "bar color gradient font size padding corners border px pt") + case .widgetBehavior: ("Widget clicks, screens and position", .widgets, "Widgets › Widget › Behavior", "bar click popup hover screens display position tooltip hide") + case .addWidget: ("Add a widget", .widgets, "Widgets › Add widget", "bar new widget clock battery calendar store package") case .theme: ("Theme", .appearance, "Appearance", "light dark automatic appearance wallpaper browse look save copy duplicate") case .colors: ("Theme colors", .appearance, "Appearance › Theme colors", "tokens accent text surface palette contrast readable background") case .glass: ("Liquid Glass", .appearance, "Appearance › Bar", "transparency see-through blur glass tint") diff --git a/Sources/StableBar/Settings/WidgetsView.swift b/Sources/StableBar/Settings/WidgetsView.swift index 2008827a..0773790d 100644 --- a/Sources/StableBar/Settings/WidgetsView.swift +++ b/Sources/StableBar/Settings/WidgetsView.swift @@ -109,7 +109,7 @@ struct WidgetsView: View { ScrollView { VStack(alignment: .leading, spacing: 0) { ListRow(selected: editor.barItem == .bar) { _ in - WidgetRowLabel(symbol: "menubar.rectangle", name: "Bar", subtitle: "Its screens and setups", selected: editor.barItem == .bar) + WidgetRowLabel(symbol: "display.2", name: "Screens", subtitle: "Shared or per-screen bar", selected: editor.barItem == .bar) } .onTapGesture { select(.bar) } .accessibilityAddTraits(.isButton) diff --git a/Sources/StableBar/Setup/SetupTour.swift b/Sources/StableBar/Setup/SetupTour.swift index fafac8e9..9d757de3 100644 --- a/Sources/StableBar/Setup/SetupTour.swift +++ b/Sources/StableBar/Setup/SetupTour.swift @@ -1017,7 +1017,7 @@ struct SetupTourView: View { .padding(.bottom, 16) VStack(spacing: 10) { if session.preferences.widgetSets.contains(.meetings) && session.preferences.deferMeetings { - Label("Meetings stays off. Turn it on in Settings → Bar when you're ready to allow Calendar access.", systemImage: "calendar") + Label("Meetings stays off. Turn it on in Settings → Widgets when you're ready to allow Calendar access.", systemImage: "calendar") .font(.system(size: 12.5)).foregroundStyle(glass.ink.opacity(0.62)) .fixedSize(horizontal: false, vertical: true) } diff --git a/docs/configuration.md b/docs/configuration.md index 7e43dedf..6669be49 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -142,7 +142,7 @@ In **Settings → Profiles**, add a named profile, turn it on or off, and choose **What it changes** lists the profile’s values. Remove a change saved in your main file with its × button to restore inheritance. **Edit as JSON…** opens the configuration with an explicit **Apply** action; removing an inherited property there writes a null override. Included files stay unchanged. Removing a condition clears it, including an inherited condition. -**Edit the bar for this profile** opens Bar with a banner naming the profile being edited. The same banner stays visible in Appearance. **Editing** at the top of Bar and of Appearance does the same: choose a profile under **Profile** to edit it, or **No profile** to stop. Both leave out theme edits, which you edit in Appearance. Changes in Bar and Appearance, including Reset, save only in that profile and use the normal Undo/Redo history. The profile is previewed while editing, even if disabled, without saving a pin or changing its enabled state. **Done**, leaving Bar and Appearance, choosing another screen setup, or closing Settings restores the previous matching or pin. Widget order, theme selection and package settings apply to the whole bar; finish profile editing before changing them. **Preview now** pins the profile until **Stop previewing** resumes automatic matching; disabled profiles stay off outside editing. +**Edit the bar for this profile** opens Widgets with a banner naming the profile being edited. The same banner stays visible in Appearance. **Editing** at the top of Widgets and of Appearance does the same: choose a profile under **Profile** to edit it, or **No profile** to stop. Both leave out theme edits, which you edit in Appearance. Changes in Widgets and Appearance, including Reset, save only in that profile and use the normal Undo/Redo history. The profile is previewed while editing, even if disabled, without saving a pin or changing its enabled state. **Done**, leaving Widgets and Appearance, choosing another screen setup, or closing Settings restores the previous matching or pin. Widget order, theme selection and package settings apply to the whole bar; finish profile editing before changing them. **Preview now** pins the profile until **Stop previewing** resumes automatic matching; disabled profiles stay off outside editing. Setup, the editor and the command line save changes into the main file's ordinary keys and never edit imported files. A widget defined in the main file, including inside one of its profiles, is changed, removed or reordered where it is defined. A widget from an include or package gets an entry in the main file's `widgetOverrides`; removing it sets `enabled` to `false`. Bar and default-style changes merge into `bar` and `defaults`. Untouched parts of the file keep their formatting and key order. An active profile still applies on top of these changes. diff --git a/docs/create-a-widget.md b/docs/create-a-widget.md index f5755b78..ba498ce1 100644 --- a/docs/create-a-widget.md +++ b/docs/create-a-widget.md @@ -126,7 +126,7 @@ dist/StableBar.app/Contents/MacOS/StableBar --config "$scratch/config.json" A widget without `layout` draws a default layout made of the same blocks: a `row` of its icon (`symbol`) and text (`field`), at least a line of text tall even when it shows only the icon. Its digits all have the same width, so a number that changes, such as a CPU percentage, doesn't resize the widget. Battery draws a [`battery`](popups.md) block, like the battery in the macOS menu bar: its fill follows the charge and turns red at 10 % or less on battery power, a bolt shows it charging, and a plug shows the Mac on its adapter without charging. An orange badge appears when macOS recommends servicing the battery, the condition System Settings shows under Battery Health. Its percentage is in its tooltip, with the time left or until full and “Service recommended” when it applies. A Mac without a battery shows a plug and AC. Sound shows only its speaker icon, whose waves show the volume: none at zero, then one, two or three. The icon keeps the width of three waves, so the widget doesn't change size between levels. After the volume changes, the new volume fades in beside it for a moment, its digits rolling while it keeps changing, then fades out. Muting hides it at once. Hovering it shows a volume slider, with the volume, that changes the volume as you drag: in a tooltip under the widget, or beside the icon with [Open hover controls inline](#controls-on-hover). Inline, on the right of the bar the slider opens to the icon's left, so the icon stays under the pointer; elsewhere it opens to the right. A Sound widget with a `layout` of its own, including a **Display** choice other than its default, has no slider. The bar animates the Sound widget's width as the volume and the inline slider come and go, unless Reduce Motion is on. Other script and provider widgets whose output has a `value` show a 40 × 16 `graph` before them, and active-app widgets show the app's icon instead of a `symbol`. Workspaces and spacers keep their own views. A `layout` replaces the default layout, so block options work on built-in widgets too, for example an app name that scrolls when it doesn't fit: `"layout": { "type": "field", "field": "text", "scrollSpeed": 30, "style": { "maxWidth": 120 } }`. -For battery, sound, system and disk, **Settings → Bar → Content → Display** offers icon and value, icon only, value only, meter and value, label, value and meter, ring and value, or graph and value. Battery starts with icon only, its default, and its icon is its battery in every choice but ring and value, whose ring holds the battery's symbol; sound starts with icon, value on change, its default, and system with graph and value. Disk starts with icon and value, and has no graph, since it keeps no history. For system, **Shows** chooses **CPU**, its default, **Memory**, **CPU and memory** or **Memory and CPU**; each gets its own symbol and value, drawn as Display says, and memory's graph draws `series.memory`. This also works with named battery/audio/system/disk providers and package widgets. Choices use the existing `layout` configuration and support Undo; a hand-written layout stays marked **Custom layout** until you choose another display. +For battery, sound, system and disk, **Settings → Widgets → Content → Display** offers icon and value, icon only, value only, meter and value, label, value and meter, ring and value, or graph and value. Battery starts with icon only, its default, and its icon is its battery in every choice but ring and value, whose ring holds the battery's symbol; sound starts with icon, value on change, its default, and system with graph and value. Disk starts with icon and value, and has no graph, since it keeps no history. For system, **Shows** chooses **CPU**, its default, **Memory**, **CPU and memory** or **Memory and CPU**; each gets its own symbol and value, drawn as Display says, and memory's graph draws `series.memory`. This also works with named battery/audio/system/disk providers and package widgets. Choices use the existing `layout` configuration and support Undo; a hand-written layout stays marked **Custom layout** until you choose another display. **Label, value and meter** puts a short label and a right-aligned percentage on one line, above a progress line. The label uses the `key` role and the line the `meter` role, so a theme styles both, and the column widens when a theme's font needs more room for 100%. System keeps CPU and memory in the selected order, each in its own column. This is a widget layout choice, so it stays selected when you change themes. diff --git a/docs/getting-started.md b/docs/getting-started.md index 5c01a26a..afdd9e09 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -18,7 +18,7 @@ Your bar sits in the middle of the screen, over the top of the softened wallpape Below the macOS menu bar, which already shows the Apple menu, the app's menus, the date and time, its menu bar items and Control Center, presets leave those out, Quick toggles included, and Minimal adds Workspaces, as numbers only, also when your bar already has Workspaces. On a Mac without a battery, such as a Mac mini, presets leave Battery out. The date and the time are two clocks, with the `secondary` and `time` roles so a theme can style each; they follow your Mac's date order and hour cycle. A preset chooses only widgets; the theme stays yours to choose. -On the starter bar, unchanged, a preset's bar takes its place: the starter's clock gives way to the preset's date and time, and a starter widget the preset doesn't have, such as Sound in Minimal, goes. On a bar you have changed, the preset's widgets replace yours too: a widget the preset doesn't have leaves your bar, and one from a package, such as a Store widget, or from an included file is turned off instead, so **Settings → Bar** can turn it on again. A widget of yours with the ID of one of the preset's stays as it is, in the preset's order; a turned-off one is turned on with its settings kept, and a Store widget moves to where the preset has it. A different widget with the same ID is kept, and a clock of yours with the ID `date` or `clock` keeps the preset's date and time out, so the date doesn't show twice. Active profile overrides still apply. Your bar isn't saved until **Done**, and before the last card **Skip setup** puts it back as it was. Choosing another preset, or clicking the chosen one again, changes only its widgets, Store widgets included: your theme, **Later** for Meetings and **Open at login** stay. +On the starter bar, unchanged, a preset's bar takes its place: the starter's clock gives way to the preset's date and time, and a starter widget the preset doesn't have, such as Sound in Minimal, goes. On a bar you have changed, the preset's widgets replace yours too: a widget the preset doesn't have leaves your bar, and one from a package, such as a Store widget, or from an included file is turned off instead, so **Settings → Widgets** can turn it on again. A widget of yours with the ID of one of the preset's stays as it is, in the preset's order; a turned-off one is turned on with its settings kept, and a Store widget moves to where the preset has it. A different widget with the same ID is kept, and a clock of yours with the ID `date` or `clock` keeps the preset's date and time out, so the date doesn't show twice. Active profile overrides still apply. Your bar isn't saved until **Done**, and before the last card **Skip setup** puts it back as it was. Choosing another preset, or clicking the chosen one again, changes only its widgets, Store widgets included: your theme, **Later** for Meetings and **Open at login** stay. Under the presets, **Theme** has a tile for each of the [included themes](themes.md) in their order, starting with Clear, which a new bar has, then your installed ones. Each tile shows the top-right corner of your screen with your preset's bar in that theme, its pills included. Click a tile to put its theme on your bar; **Current** marks the theme you had, which is selected when setup opens. Seven tiles show at a time; with more themes, the row scrolls sideways. The bar's appearance and its clock follow macOS, and setup has no controls for them: **Settings → Appearance** sets light or dark, and a clock's own settings its format. @@ -36,7 +36,7 @@ A new configuration starts with the Apple menu, the frontmost app's menus, Sound **Open menus from the bar** (Accessibility, or **Device Control and Data Access** from macOS 27): **Allow…** opens **System Settings → Privacy & Security → Accessibility** with a panel at the bottom of its window. Drag the StableBar tile from the panel into the list and confirm with Touch ID or your password; if StableBar is already in the list, turn its switch on instead. The panel closes once access is allowed, when you quit System Settings, or with its close button. The app menus, the Apple menu, Menu bar items, Workspaces on macOS Spaces and window clearance depend on this access, so **Finish setup** waits until macOS allows it; setup checks every second, comes back to the front once access is allowed, and **Allow…** opens the pane again. Until access is allowed, a warning icon takes the app's menus' place, and clicking the Apple logo asks for access. While setup is open, your bar, on the stage and in its place, shows the app that was in front when setup opened instead, with sample menus such as File, Edit and View. Setup never asks for Screen Recording: a [menu bar item shown as in the menu bar](widgets.md#menu-bar-items) asks for it when you choose **As in the menu bar**, and **Settings → General → Access** lists it while your bar has one. Nor does it ask for Location: a [`wifi` provider](providers.md) asks for it the first time it updates, to show the network's name, and **Settings → General → Access** lists it while your bar has one. [Quick toggles](widgets.md#quick-toggles) reads Wi-Fi and Bluetooth only while its panel is open, so macOS asks the first time you open it. -**See your next meeting** (Calendars), while your bar has Meetings or another calendar widget: **Allow…** asks macOS; once it has asked, **Open Settings…** opens **Privacy & Security → Calendars**. If macOS doesn't allow it, the row says that **Finish setup** waits for it. **Later** saves Meetings turned off, so you can finish without Calendars, and **Undo** takes that back; turn Meetings on later in **Settings → Bar**. Existing calendar widgets stay unchanged. Picking a preset with Meetings doesn't open the Calendars dialog: while setup is open, Meetings shows a sample meeting instead of reading your calendar. +**See your next meeting** (Calendars), while your bar has Meetings or another calendar widget: **Allow…** asks macOS; once it has asked, **Open Settings…** opens **Privacy & Security → Calendars**. If macOS doesn't allow it, the row says that **Finish setup** waits for it. **Later** saves Meetings turned off, so you can finish without Calendars, and **Undo** takes that back; turn Meetings on later in **Settings → Widgets**. Existing calendar widgets stay unchanged. Picking a preset with Meetings doesn't open the Calendars dialog: while setup is open, Meetings shows a sample meeting instead of reading your calendar. **Switch desktops from the bar**, optional, when Workspaces uses macOS Spaces. **Open Keyboard Shortcuts…** opens **Keyboard Shortcuts** in System Settings: choose **Mission Control** and turn on **Switch to Desktop N** for each desktop you need. The row turns green when all are on; its tooltip says how many desktops can't be switched from the bar yet and names desktops beyond macOS's shortcut range. It never holds up setup: you can turn the shortcuts on later in **Settings → General → Access**, and it checks again when you return to StableBar. @@ -60,7 +60,7 @@ Outside Applications, the card shows StableBar beside the Applications folder in Until **Done**, your choices are temporary changes, like command-line changes without `--persist`: the bar shows them, but the file is unchanged. Setup saves your choices and keeps your scripts and imported files; your widgets stay unless you pick a preset, whose widgets replace them. Before the last card, **Skip setup** (Esc) puts your bar back as it was; once you have changed something, it first asks **Skip setup?**, where **Keep Setting Up** (Return or Esc) takes you back. On the last card, the corner button is **Done** and Esc saves too, unless saving failed there: it then turns back into **Skip setup**. Permission requests act immediately through macOS. Setup opens by itself at launch until you finish or skip it. After that, **Getting Started…** in the menu-bar icon's menu and **Run setup again** in Settings → Help open it. While a skipped setup was never finished, **Settings → General → Access** also shows **Finish setting up**. -Widgets are the items on your bar. Packages provide extra widgets or themes. After setup, **Edit Bar in Place** turns the bar itself into the editor; **Settings → Bar** changes content and behavior, and **Settings → Appearance** the look. The menu-bar icon also links to this user guide. +Widgets are the items on your bar. Packages provide extra widgets or themes. After setup, **Edit Bar in Place** turns the bar itself into the editor; **Settings → Widgets** changes content and behavior, and **Settings → Appearance** the look. The menu-bar icon also links to this user guide. ## Download a release @@ -98,7 +98,7 @@ The bar shows only when neither **Hide Bar** nor the configuration hides it, so ## Share your bar -Choose **Share My Bar…** in the bar's right-click menu or the menu-bar icon's menu, or the button above the bar's preview in **Settings → Bar**, to share your bar. The right-click menu uses that screen's bar; the menu-bar icon uses the screen under the pointer, and Settings the screen it shows. As with Settings, StableBar appears in the Dock while the panel is open, and clicking its Dock icon brings the panel back when Settings isn't open. The panel has no title bar and floats above other windows: drag its background to move it, and close it with **×** at the top right, Esc or ⌘W. A larger panel shows a larger preview, over a blur of the image. It makes an image of your bar for social media: the bar as it is now, with its real data and the time, at its place over your desktop wallpaper. With [Liquid Glass](themes.md#liquid-glass) on, the bar's glass shows a blur of the wallpaper behind it, with a light edge, as on screen. It needs no screen-recording permission. +Choose **Share My Bar…** in the bar's right-click menu or the menu-bar icon's menu, or the button above the bar's preview in **Settings → Widgets**, to share your bar. The right-click menu uses that screen's bar; the menu-bar icon uses the screen under the pointer, and Settings the screen it shows. As with Settings, StableBar appears in the Dock while the panel is open, and clicking its Dock icon brings the panel back when Settings isn't open. The panel has no title bar and floats above other windows: drag its background to move it, and close it with **×** at the top right, Esc or ⌘W. A larger panel shows a larger preview, over a blur of the image. It makes an image of your bar for social media: the bar as it is now, with its real data and the time, at its place over your desktop wallpaper. With [Liquid Glass](themes.md#liquid-glass) on, the bar's glass shows a blur of the wallpaper behind it, with a light edge, as on screen. It needs no screen-recording permission. Pick a screen in the menu at the top left: diff --git a/docs/layout.md b/docs/layout.md index bc8fbcee..1a3ef454 100644 --- a/docs/layout.md +++ b/docs/layout.md @@ -20,13 +20,13 @@ Each widget accepts `display`: `"all"` (default), `"active"`, `"main"`, `"builtI A screen setup is a combination of connected screens: the laptop only, a monitor only, the laptop with a monitor, the laptop with a monitor and a vertical monitor, and so on. A vertical monitor is a screen taller than it is wide. Each setup can have its own bar, with its own widgets on each screen, size, theme and placement. StableBar switches bars when you connect or disconnect a screen. -Setups start with the shared bar, your main configuration. In **Settings → Bar**, the **Editing** menu names the setup you are editing, and whether it uses the shared bar or its own; its **Screen setups** list them, such as **Laptop + monitor (connected) · shared bar**. Choose **Give it its own bar** there, or in the inspector when **Bar** is selected. StableBar copies the shared bar into a file beside it, such as `setup-laptop+monitor.json`, and from then on everything you change while those screens are connected changes that bar only, except in **Appearance**. Appearance changes go to the shared bar and every setup's own bar, so they still show after you connect or disconnect a screen. To change the look of one bar only, choose **This setup only**, or **Shared bar only** while editing the shared bar, under **Screen setups** in Appearance's **Editing** menu. One **Undo** reverses a change in every bar. While you edit a profile, Appearance changes stay in the bar you're editing. **Copy bar from** starts the own bar from the shared bar or another setup's own bar instead. **Use the shared bar again…** moves its own bar to the Trash after confirmation. +Setups start with the shared bar, your main configuration. In **Settings → Widgets**, the **Editing** menu names the setup you are editing, and whether it uses the shared bar or its own; its **Screen setups** list them, such as **Laptop + monitor (connected) · shared bar**. Choose **Give it its own bar** there, or in the inspector when **Screens** is selected. StableBar copies the shared bar into a file beside it, such as `setup-laptop+monitor.json`, and from then on everything you change while those screens are connected changes that bar only, except in **Appearance**. Appearance changes go to the shared bar and every setup's own bar, so they still show after you connect or disconnect a screen. To change the look of one bar only, choose **This setup only**, or **Shared bar only** while editing the shared bar, under **Screen setups** in Appearance's **Editing** menu. One **Undo** reverses a change in every bar. While you edit a profile, Appearance changes stay in the bar you're editing. **Copy bar from** starts the own bar from the shared bar or another setup's own bar instead. **Use the shared bar again…** moves its own bar to the Trash after confirmation. The menu lists the connected setup, each connected kind of screen on its own, such as **Laptop only**, and every setup with its own bar, each marked **own bar** or **shared bar**. Choosing a setup that isn’t connected previews it: the bar on your screens shows that setup's bar and Settings edits it, so you can change the laptop alone while docked. Choosing the connected setup again, closing Settings, or connecting or disconnecting a screen returns to the connected setup. Each file is a normal configuration file: includes, packages and `$CONFIG_DIR` work as in the main file, and command-line changes go to the bar on the screens. Switching bars discards temporary command-line changes and clears Undo. Uninstalling a package version that another setup's bar uses is refused until you remove it from that bar. -Within a setup, select a screen-kind thumbnail in **Bar**, then use a widget’s eye control to show or hide it on that kind of screen. A widget's **Shows on** menu also offers the laptop, landscape monitors and vertical monitors, plus display rules. Screens of the same kind remain grouped and show the same widgets; the thumbnails do not select individual monitors of that kind. Specific display IDs remain editable as JSON. While editing the bar in place, a widget's context menu offers the same choices under **Shows On**. +Within a setup, select a screen-kind thumbnail in **Widgets**, then use a widget’s eye control to show or hide it on that kind of screen. A widget's **Shows on** menu also offers the laptop, landscape monitors and vertical monitors, plus display rules. Screens of the same kind remain grouped and show the same widgets; the thumbnails do not select individual monitors of that kind. Specific display IDs remain editable as JSON. While editing the bar in place, a widget's context menu offers the same choices under **Shows On**. -Each kind of screen can also have its own layout, bar size and look. While another kind of screen is connected, moving a widget in **Bar** or on the bar itself moves it only on the selected kind of screen. In **Appearance**, choose the kind of screen in **Editing**, connected or not, to give it its own theme, appearance, colors, widget, popup and bar styles, the bar's size, offset and margin, Liquid Glass, presentation roles, workspace look and AeroSpace mode names. StableBar saves these under `screens`: +Each kind of screen can also have its own layout, bar size and look. While another kind of screen is connected, moving a widget in **Widgets** or on the bar itself moves it only on the selected kind of screen. In **Appearance**, choose the kind of screen in **Editing**, connected or not, to give it its own theme, appearance, colors, widget, popup and bar styles, the bar's size, offset and margin, Liquid Glass, presentation roles, workspace look and AeroSpace mode names. StableBar saves these under `screens`: ```json "screens": { @@ -77,7 +77,7 @@ Use `"overflow": "never"` for essential widgets. If these alone exceed the avail } ``` -A named group has one shared background, padding, border and spacing. Members must use the same `position`; their first appearance places the group. To make one without editing the file, right-click a widget in [**Settings → Bar**](settings.md) or while editing the bar in place and choose **Group With** the widget beside it. In Settings, the new group opens so you can choose its look; on the bar, choose **Edit Group…** for that. A group overflows as one unit, takes its highest member priority, and stays visible if any member sets `overflow` to `never`. +A named group has one shared background, padding, border and spacing. Members must use the same `position`; their first appearance places the group. To make one without editing the file, right-click a widget in [**Settings → Widgets**](settings.md) or while editing the bar in place and choose **Group With** the widget beside it. In Settings, the new group opens so you can choose its look; on the bar, choose **Edit Group…** for that. A group overflows as one unit, takes its highest member priority, and stays visible if any member sets `overflow` to `never`. Every group starts from `groupDefaults`, then its own `style`, property by property. A theme drawn as pills sets its pill look there once, and the groups you make follow it too. Set it in **Settings → Appearance → Groups**. **Group With** gives a new group its faint backdrop only while `groupDefaults` has no background; otherwise the group takes the shared look. A `null` in a group's style inherits the shared value, as a widget's does from `defaults`; for no background on one group, give it a transparent color such as `#00000000`. diff --git a/docs/popups.md b/docs/popups.md index cb04ae3c..69ba5d25 100644 --- a/docs/popups.md +++ b/docs/popups.md @@ -9,7 +9,7 @@ Add `popup` to any widget. For a popup shared by multiple widgets, define it onc Widgets with `menu` entries already open a shared popup without additional configuration. To customize that popup, add `popup` with your preferred style and `"layout": { "type": "menu" }`. You can also place a `menu` block alongside other blocks in a custom layout. Entries retain their titles, details and click commands, and refresh while the popup is open. -Set `popup.openOnHover` to `true` to open after the [hover delay](widgets.md#tooltips), 0.4 seconds by default. The popup stays open while the pointer is over the widget or popup, with a short grace period to cross the gap. An invisible triangle from the widget to the popup protects diagonal movement toward it, so crossing a neighbouring widget does not replace it while you move into it. Moving away or stopping outside closes it after the grace period. Clicking the widget or inside the popup keeps it open until dismissed; buttons and controls still follow `dismissOnAction` and `dismissOnControl`. Hovering another widget does not replace a popup kept open by a click. Click-only behavior remains the default. **Settings → Bar → Behavior → Open its popup on hover** changes an inline popup; for a shared popup, set `openOnHover` in its entry under `popups`. +Set `popup.openOnHover` to `true` to open after the [hover delay](widgets.md#tooltips), 0.4 seconds by default. The popup stays open while the pointer is over the widget or popup, with a short grace period to cross the gap. An invisible triangle from the widget to the popup protects diagonal movement toward it, so crossing a neighbouring widget does not replace it while you move into it. Moving away or stopping outside closes it after the grace period. Clicking the widget or inside the popup keeps it open until dismissed; buttons and controls still follow `dismissOnAction` and `dismissOnControl`. Hovering another widget does not replace a popup kept open by a click. Click-only behavior remains the default. **Settings → Widgets → Behavior → Open its popup on hover** changes an inline popup; for a shared popup, set `openOnHover` in its entry under `popups`. Set `popup.pinnable` to `true` to show a pin button in the popup's top trailing corner; leave room for it there, and for the close button that joins it while the popup is pinned. Dragging the popup by its background pins it where you drop it. Drag the popup's edges or corners to resize it, pinned or not; under its widget, its top stays put. It then keeps that size instead of fitting its content, fields and lists with `maxHeight` take the height you give it, and it opens at that size again until StableBar quits. A pinned popup stays on screen through clicks elsewhere, app switches and other popups, keeps updating, and moves when you drag its background. Its buttons and controls don't close it. Pin the widget's popup again later and it glides back to where you left it. Unpin it to send it back under its widget, where it keeps its size and closes like any open popup. Its close button, clicking the widget, Escape or ⌘W closes a pinned popup, and the next time it opens it glides back to its spot, pinned, until you unpin it. It keeps the layout it opened with until you close it. @@ -41,7 +41,7 @@ Set `popup.pinnable` to `true` to show a pin button in the popup's top trailing `style` and `layout` are required. Use `"style": {}` to inherit the widget's theme. Without `height`, a popup fits its content when it opens; set `height` for a fixed size. Popup colors, typography, borders, corners and shadow inherit widget styles, then `popupDefaults`, then `defaults`. Popup width defaults to 360 points independently of the bar widget width; set it with `popup.style.width`. Padding and spacing are the popup's own: `paddingHorizontal`, `paddingVertical` and `spacing` come from the popup's `style`, then `popupDefaults`, never from `defaults` or the widget's `style`, which pad the bar widget. When neither sets them, a popup has 16 points of padding, the blocks of a `column` that is its whole layout sit 12 points apart, and what any other `row`, `column` or `list` holds sits 6 points apart. A `spacing` set in the popup's `style` or in `popupDefaults` applies at every level, and a block's own `style.spacing` spaces what that block holds. Set them in `popupDefaults` to change every popup at once, including the padding of the Essentials details and script menus. `spacing` doesn't change the Essentials details, which lay out their own sections, or the rows of script and app menus; app menus also keep their tighter menu padding. Height is capped to the space below the bar; long content scrolls. -A widget's `popupBackground` overrides the popup's background without changing its bar tile or tooltip. Set it in **Settings → Bar → Style → Popup background** or in JSON. It also works for shared and built-in popups; see [Backgrounds](widgets.md#backgrounds). +A widget's `popupBackground` overrides the popup's background without changing its bar tile or tooltip. Set it in **Settings → Widgets → Style → Popup background** or in JSON. It also works for shared and built-in popups; see [Backgrounds](widgets.md#backgrounds). Layout blocks: diff --git a/docs/questions.md b/docs/questions.md index 84f84726..bcccc2c8 100644 --- a/docs/questions.md +++ b/docs/questions.md @@ -50,13 +50,13 @@ Scripts that control other apps ask for their own Automation access when they ru ## Where did my other apps' menu bar icons go? -The **Menu bar items** widget, a grid symbol, lists them. Rest the pointer on it, or click it, to see every item in the macOS menu bar as a row of icons, then click one to open its menu. It needs Accessibility access. If your bar doesn't have it, add **Menu bar items** with **Add widget** in **Settings → Bar**. +The **Menu bar items** widget, a grid symbol, lists them. Rest the pointer on it, or click it, to see every item in the macOS menu bar as a row of icons, then click one to open its menu. It needs Accessibility access. If your bar doesn't have it, add **Menu bar items** with **Add widget** in **Settings → Widgets**. -To keep an item you use often on the bar itself, right-click its icon in the row and choose **Show on Bar**; **Hide** takes an item out of the row. In **Settings → Bar**, the widget's **Content** tab arranges them all, and **As in the menu bar** there makes an item on the bar show what it shows in the menu bar, such as your next meeting, instead of its app's icon. See [Menu bar items](widgets.md#menu-bar-items). +To keep an item you use often on the bar itself, right-click its icon in the row and choose **Show on Bar**; **Hide** takes an item out of the row. In **Settings → Widgets**, the widget's **Content** tab arranges them all, and **As in the menu bar** there makes an item on the bar show what it shows in the menu bar, such as your next meeting, instead of its app's icon. See [Menu bar items](widgets.md#menu-bar-items). ## How do I show my workspaces on the bar? -Add **Workspaces** with **Add widget** in **Settings → Bar**. When you add it, it keeps the source your configuration names while that one is installed; otherwise it takes the first of AeroSpace, yabai, OmniWM, Rift and KiwiDesk that is installed and running, or your macOS Spaces when none is. The bar keeps that source and doesn't switch on its own, even when the window manager quits; to pick another, use **Settings → General → Workspaces**. +Add **Workspaces** with **Add widget** in **Settings → Widgets**. When you add it, it keeps the source your configuration names while that one is installed; otherwise it takes the first of AeroSpace, yabai, OmniWM, Rift and KiwiDesk that is installed and running, or your macOS Spaces when none is. The bar keeps that source and doesn't switch on its own, even when the window manager quits; to pick another, use **Settings → General → Workspaces**. Some sources need one step on their side: @@ -77,9 +77,9 @@ To try themes on the bar itself, choose **Try Themes…** from the bar's right-c ## Can my laptop and my external monitor show different widgets? -Yes. StableBar draws a bar on every display, and you choose where each widget shows: select it in **Settings → Bar** and use **Shows on**, beside its name, to pick **All screens**, the laptop, landscape monitors, vertical monitors or **Hidden everywhere**. With more than one kind of screen connected, moving a widget moves it only on the kind of screen selected in **Settings → Bar**. +Yes. StableBar draws a bar on every display, and you choose where each widget shows: select it in **Settings → Widgets** and use **Shows on**, beside its name, to pick **All screens**, the laptop, landscape monitors, vertical monitors or **Hidden everywhere**. With more than one kind of screen connected, moving a widget moves it only on the kind of screen selected in **Settings → Widgets**. -For a whole different bar when you dock, give that screen setup its own bar: in **Settings → Bar**, open the menu beside the screen thumbnails and choose **Give it its own bar**. StableBar then switches bars when you connect or disconnect a screen. +For a whole different bar when you dock, give that screen setup its own bar: in **Settings → Widgets**, open the menu beside the screen thumbnails and choose **Give it its own bar**. StableBar then switches bars when you connect or disconnect a screen. **Settings → Appearance** can also give each kind of screen its own bar height: choose the screen in **Editing**. See [Screen setups](layout.md#screen-setups). @@ -107,7 +107,7 @@ Add a `script` widget to `widgets` in your configuration file. StableBar runs it Keep your scripts in `~/.config/stablebar/widgets/` and make them executable. A script can print plain text, or one JSON object such as `{"text":"Ready","icon":"checkmark.circle"}` to add an SF Symbol, a color or a tooltip. -**Add widget** in **Settings → Bar** also offers **Script**; change its command with **More → Edit as JSON…**. See [Create a widget](create-a-widget.md). +**Add widget** in **Settings → Widgets** also offers **Script**; change its command with **More → Edit as JSON…**. See [Create a widget](create-a-widget.md). ## What can a package from the Store do on my Mac? diff --git a/docs/settings.md b/docs/settings.md index 3f0875eb..d4fa3598 100644 --- a/docs/settings.md +++ b/docs/settings.md @@ -5,11 +5,11 @@ The Theme section of StableBar Settings, with the theme gallery -Open **Settings…** from the menu-bar icon or by right-clicking the bar, click a [StableBar widget](widgets.md#menu-bar-items), reopen the running app, or run `StableBar --customize`. Its tabs are **General**, **Bar**, **Appearance**, **Store**, **Profiles**, **Status** and **Help**, with General selected on first opening. When a tiling window manager makes Settings narrower than about 620 points, the tabs show only their icons, and below about 500 points the search field narrows too. Click **Search settings** or press **⌘F** to find controls by their purpose, including login, permissions, clock format, displays and widget appearance, and jump to the matching section. +Open **Settings…** from the menu-bar icon or by right-clicking the bar, click a [StableBar widget](widgets.md#menu-bar-items), reopen the running app, or run `StableBar --customize`. Its tabs are **General**, **Widgets**, **Appearance**, **Store**, **Profiles**, **Status** and **Help**, with General selected on first opening. When a tiling window manager makes Settings narrower than about 620 points, the tabs show only their icons, and below about 500 points the search field narrows too. Click **Search settings** or press **⌘F** to find controls by their purpose, including login, permissions, clock format, displays and widget appearance, and jump to the matching section. While Settings is open, StableBar appears in the Dock and the ⌘Tab app switcher so you can return after switching apps. Closing Settings, with its close button or ⌘W, removes its Dock icon unless [Share My Bar](getting-started.md#share-your-bar) is still open; the bar keeps running. -Right-click a widget and choose **Edit Widget…** to open its settings directly. Opening or selecting a widget starts on **Content**, and reopening Settings returns the widget inspector to Content. Searches for Style or Behavior still open that tab. Widgets with a custom `actions.rightClick` command keep running it; use **Settings → Bar** or **Edit Bar in Place** to edit those widgets. +Right-click a widget and choose **Edit Widget…** to open its settings directly. Opening or selecting a widget starts on **Content**, and reopening Settings returns the widget inspector to Content. Searches for Style or Behavior still open that tab. Widgets with a custom `actions.rightClick` command keep running it; use **Settings → Widgets** or **Edit Bar in Place** to edit those widgets. **General** contains **Startup → Open at login**, **Native menu bar** auto-hide, reveal delay and **Always hide**, **Windows and notifications** clearance controls, **Hover** delay and inline controls, **Animation**, **Workspaces** connection settings and **Access** permission actions. **Animation** picks the bar's [motion](create-a-widget.md#animation), how popups open and whether an open popup or tooltip moves into the next one with **Morph between popups**. **Configuration file** opens, reveals or reloads the file and [syncs it with iCloud](configuration.md#sync-across-macs); **Command line** installs the [`stablebar` command](command-line.md#install-the-command); **Updates** contains version and update settings; **Uninstall** turns off the menu bar auto-hide that StableBar turned on, then [removes StableBar](getting-started.md#uninstall). Login and permission actions affect macOS immediately; configuration changes use the same saved-change history as the other editor sections. @@ -17,7 +17,7 @@ Outside Applications, **Open at login** offers **Move to Applications**; **Comma **Appearance** holds every color, font and size, and the bar's position. **Editing**, at its top, chooses what the page changes: every screen or one kind of screen, connected or not, every [screen setup](layout.md#screen-setups) with its own bar or only this one (**This setup only** or **Shared bar only**), and the bar or one of your profiles. A tinted line says when it edits less than everything, with a button back. **Automatic**, **Wallpaper**, **Light** and **Dark** control the bar’s appearance: **Automatic** follows your Mac, and **Wallpaper** shows the bar on each display light or dark like its menu bar (see [Follow the wallpaper](themes.md#follow-the-wallpaper)). The sidebar starts with the selected theme, which opens the gallery, then **Customize**: **Theme colors**, **Bar**, **Widgets**, **Groups**, **Popups** and **Advanced**, each with its count of the theme's edits. The gallery lists the **Included** themes, **Yours** and the **Store**'s, on cards of one size that show each theme's bar and its system popup. Select an installed theme or choose **Get** for a Store theme. Each installed theme has one card, for the version in use or else its newest; **Versions** on its Store page switches to another. Right-click one of yours for **Show in Finder** or **Delete…**. [Theme links](themes.md) and bar links open a banner card above the gallery, where you can try them before installing. What you change in Customize, except the bar's position and the AeroSpace mode names, is an [edit of the selected theme](themes.md): each section's heading counts the edits, with **Show Changes**, **Save as Theme…** and **Revert to …**, and **Show Changes** also lists the look values that apply to every theme, with **Keep with … Only**. **Theme colors** edits light and dark token values, so widgets, popups and packages that use those tokens follow, and its **Text follows its background** turns a widget's text light or dark where the theme's reads poorly on what's behind it (see [Text that follows its background](themes.md#text-that-follows-its-background)). **Bar** has the edge the bar sits on, **Below the menu bar**, the offset and [**Show on full-screen apps**](getting-started.md#full-screen-apps), the same with every theme; then its background, border color, width and edges and corner radius; [Liquid Glass](themes.md#liquid-glass), which the bar's background tints; its height, side inset, space between widgets and margin, where **Separate sides and top and bottom** sets the margin's sides apart from its top and bottom; and the color, width and height of the [dividers](layout.md#displays-and-notch-placement) between widgets. Setup puts the bar on the top edge in the menu bar's place, or below the menu bar when macOS doesn't allow Automation, so **Bar** is where you choose another placement. **Widgets** sets the text color, background, hover background, border color, shadow color, accent and accent text color, whether app icons show in color or [tinted](styling.md#widget-styles), font, weight and text size, the padding at the sides and at the top and bottom, the corner radius and the border width; widgets with their own values keep them. Under it, **Workspaces** edits the workspace look. **Groups** sets the text color of their widgets, the background, border color and width, shadow color, corner radius, flare, padding and space between widgets every group starts from (a group with a flare draws no border); groups with their own values keep them. **Popups** sets their text color, background, border and shadow colors, font, weight, text size, corner radius, padding, spacing and gap below the bar. Each group of settings shows **Reset** while the selected theme has edits in it; Reset removes them, and values that apply to every theme stay. With a screen chosen in **Editing**, Customize, the theme and the appearance apply to that screen only, and **Use the theme of every screen** removes its own theme. **Advanced** opens editors for **Presentation roles** and **AeroSpace mode names**. -**Bar** holds what's on the bar and where. **Editing**, at its top, chooses the kind of screen whose bar shows, the [screen setup](layout.md#screen-setups) whose bar you edit, with **Give it its own bar** or **Use the shared bar again…**, and the profile. Below are screen-kind thumbnails and a preview; click a widget in the preview to select it. The list contains **Bar**, widgets grouped by position, and **Not on this screen**. **Bar** says whether these screens have their own bar, and opens Appearance, where the bar's look and position are. A [group](layout.md#adaptive-layout-and-groups) is a row of its own, with its widgets indented under it; its arrow hides or shows them, and hiding them while one is selected selects the group. Selecting a hidden widget, such as in the preview, shows them again. Each widget's line names the screens it shows on, such as **All screens**, **Laptop only** or **Hidden everywhere**. Selecting a group outlines it in the preview and shows its **Style**, the rows of **Groups** for that group alone, with the values it takes from **Groups** in Appearance, then its widgets, each with **Leave Group**, and **Ungroup**, which takes them all out. +**Widgets** holds what's on the bar and where. **Editing**, at its top, chooses the kind of screen whose bar shows, the [screen setup](layout.md#screen-setups) whose bar you edit, with **Give it its own bar** or **Use the shared bar again…**, and the profile. Below are screen-kind thumbnails and a preview; click a widget in the preview to select it. The list contains **Screens**, widgets grouped by position, and **Not on this screen**. **Screens** says whether these screens have their own bar, and opens Appearance, where the bar's look and position are. A [group](layout.md#adaptive-layout-and-groups) is a row of its own, with its widgets indented under it; its arrow hides or shows them, and hiding them while one is selected selects the group. Selecting a hidden widget, such as in the preview, shows them again. Each widget's line names the screens it shows on, such as **All screens**, **Laptop only** or **Hidden everywhere**. Selecting a group outlines it in the preview and shows its **Style**, the rows of **Groups** for that group alone, with the values it takes from **Groups** in Appearance, then its widgets, each with **Leave Group**, and **Ungroup**, which takes them all out. Drag widgets in the bar preview or the list, within or between position groups, to move them; widgets that share a group move together, with one Undo step. The preview, the screen thumbnails and the theme cards show your wallpaper when it's one of Apple's or in your Pictures folder, outside a Photos library. StableBar doesn't read other pictures, since macOS could ask for access to them, and shows its own wallpaper instead. Position targets appear along the preview while dragging, including empty positions. The context menu offers **Move up**, **Move down**, **Move to**, **Shows on** and **Remove from bar**; ⌥⌘↑ and ⌥⌘↓ move the selected widget. A widget beside a group in the same position offers **Add to Group**, and one beside another widget offers **Group With** that widget, which starts a group and selects it so you can style it. The group takes the look of **Groups** in Appearance, or a faint background when that sets none. A widget in a group offers **Edit Group** and **Leave Group**; a group's own context menu offers **Ungroup**. A widget that a group's `members` take in, such as one in a theme's pill, can't leave it this way: change the group's `members` instead. Neither can one that a profile in an included file puts in the group, which also keeps **Ungroup** off; change that profile. On a screen with [its own theme](layout.md#screen-setups), a group that only that theme has can't be selected and offers no **Edit Group**, **Add to Group**, **Leave Group** or **Ungroup**. Empty positions remain drop targets, including both sides of the notch when a display or widget uses them. Eye controls show or hide widgets on the selected screen kind. @@ -25,7 +25,7 @@ Drag widgets in the bar preview or the list, within or between position groups, **Remove** below the list, **Remove from bar** in the context menu and the widget's **More** menu delete a widget defined in your configuration. For a widget from a package, they take the package off this bar, like **Remove from bar…** in **Packages**, so all of its widgets go and **Add widget** offers it again. A widget from an included file can't be removed in Settings: remove it from that file, or choose **Hidden everywhere**. **Undo** brings a removed widget back. -Choose **Edit Bar in Place** in **Settings → Bar**, or in the bar's right-click or menu-bar icon menu, to arrange widgets on every display. While setup is open, the right-click and menu-bar icon menus leave it out and **Settings → Bar** shows it dimmed, since setup saves its choices only when you finish; setup's last card offers it then. Widgets keep their look, size and order, and the bar keeps its height; the one under the pointer is shaded, and the pointer becomes a hand that grabs it while you drag. Each position becomes a softly outlined zone with a **+** at its inner end, including empty positions; the zones open when editing starts, and hovering a zone shows its name. Widgets hidden by their output or screen choice appear as named placeholders with a crossed-out eye; empty widgets show their names too. Other names appear in tooltips. Turned-off widgets aren't shown; turn one on again in **Settings → Bar**, or add a Store package again with **+**. Widgets that don't fit and normally wait behind **…** come onto the bar while you edit. A side of the bar too crowded for its widgets scrolls instead: swipe, use the scroll wheel, or click the arrow at a faded edge, which stays clear of the notch. At first it shows the end where its widgets stay when they don't all fit. Drag a widget within or between positions, like icons in the Dock: the other widgets slide aside to open a highlighted gap where it would land, and the zone under the pointer is highlighted and named in a tooltip below the bar. Hold a widget near a crowded side's edge to scroll it. The widget settles into the gap when you drop it. Grouped widgets move together. With Reduce Motion on, widgets move without sliding. **+** opens an **Add here** popover below it, or above it on a bar at the bottom, with search and a two-column choice of widgets. Adding puts the widget exactly where that **+** sits. With more than one kind of screen connected, the popover has an **Add to** checkbox for each; the widget shows on the checked ones, all by default. Packages with commands, permissions, hosts, required tools or secret settings are reviewed in the popover first. The **−** badge on a widget’s top-left corner removes it from the bar; a widget from a package takes its package off the bar, and a widget from an include is turned off. Click a widget to open its settings here. Its usual clicks, popups and mouse actions pause while editing, and it doesn't react to hovering. The update tile isn't shown while editing the bar. The widget's context menu also offers **Move Left**, **Move Right**, **Move To** and **Shows On**, with the same screen choices as in Settings, and the same **Add to Group**, **Group With** and **Leave Group** commands as there. A group started here stays on the bar; **Edit Group…** opens it in Settings to choose its look. With VoiceOver, use the widget's **Move left** and **Move right** accessibility actions. Changes save automatically. **Undo** and **Done** sit in a small panel below the bar, or above a bar at the bottom. Use **Undo**, or ⌘Z and ⇧⌘Z while the bar has focus, to undo and redo through the same history as Settings. **Esc** closes an open Add here popover first. **Done**, **Esc** while the bar has focus, **Finish Editing Bar** or an explicit or external configuration reload restores the normal bar. Automatic profile changes keep editing open. Temporary command-line changes stay separate and unsaved. +Choose **Edit Bar in Place** in **Settings → Widgets**, or in the bar's right-click or menu-bar icon menu, to arrange widgets on every display. While setup is open, the right-click and menu-bar icon menus leave it out and **Settings → Widgets** shows it dimmed, since setup saves its choices only when you finish; setup's last card offers it then. Widgets keep their look, size and order, and the bar keeps its height; the one under the pointer is shaded, and the pointer becomes a hand that grabs it while you drag. Each position becomes a softly outlined zone with a **+** at its inner end, including empty positions; the zones open when editing starts, and hovering a zone shows its name. Widgets hidden by their output or screen choice appear as named placeholders with a crossed-out eye; empty widgets show their names too. Other names appear in tooltips. Turned-off widgets aren't shown; turn one on again in **Settings → Widgets**, or add a Store package again with **+**. Widgets that don't fit and normally wait behind **…** come onto the bar while you edit. A side of the bar too crowded for its widgets scrolls instead: swipe, use the scroll wheel, or click the arrow at a faded edge, which stays clear of the notch. At first it shows the end where its widgets stay when they don't all fit. Drag a widget within or between positions, like icons in the Dock: the other widgets slide aside to open a highlighted gap where it would land, and the zone under the pointer is highlighted and named in a tooltip below the bar. Hold a widget near a crowded side's edge to scroll it. The widget settles into the gap when you drop it. Grouped widgets move together. With Reduce Motion on, widgets move without sliding. **+** opens an **Add here** popover below it, or above it on a bar at the bottom, with search and a two-column choice of widgets. Adding puts the widget exactly where that **+** sits. With more than one kind of screen connected, the popover has an **Add to** checkbox for each; the widget shows on the checked ones, all by default. Packages with commands, permissions, hosts, required tools or secret settings are reviewed in the popover first. The **−** badge on a widget’s top-left corner removes it from the bar; a widget from a package takes its package off the bar, and a widget from an include is turned off. Click a widget to open its settings here. Its usual clicks, popups and mouse actions pause while editing, and it doesn't react to hovering. The update tile isn't shown while editing the bar. The widget's context menu also offers **Move Left**, **Move Right**, **Move To** and **Shows On**, with the same screen choices as in Settings, and the same **Add to Group**, **Group With** and **Leave Group** commands as there. A group started here stays on the bar; **Edit Group…** opens it in Settings to choose its look. With VoiceOver, use the widget's **Move left** and **Move right** accessibility actions. Changes save automatically. **Undo** and **Done** sit in a small panel below the bar, or above a bar at the bottom. Use **Undo**, or ⌘Z and ⇧⌘Z while the bar has focus, to undo and redo through the same history as Settings. **Esc** closes an open Add here popover first. **Done**, **Esc** while the bar has focus, **Finish Editing Bar** or an explicit or external configuration reload restores the normal bar. Automatic profile changes keep editing open. Temporary command-line changes stay separate and unsaved. Widgets use your chosen IDs as names. Widgets added in Settings use their package name, short text or type, with numbers to tell matching names apart. A selected widget has **Content**, **Style** and **Behavior** inspector tabs. Content contains text, symbols, clock format, the [Display](create-a-widget.md#composing-widgets) of battery, sound and System monitor widgets, what a System monitor shows, and ordinary package settings; **Open package** opens shared settings and credentials in the Store. Style starts with the widget's state: **Follows Clear** while it has no style of its own, **Own style on Clear · 3 changes** when some of its style is an edit of the selected theme, counting the values it keeps under every theme too, or **Own style · 2 values** when its own style applies under every theme. **Reset style** removes all of it, so the widget takes its style from the theme again, and from its package when the package sets one. Below that, Style edits colors, app icons, font, text size, padding, corner radius, border, workspace presentation and the space between the icons Menu bar items shows on the bar. **Widget background**, **Popup background** and **Tooltip background** control [each surface separately](widgets.md#backgrounds); making the widget transparent leaves its popup and tooltip backgrounds alone. Behavior contains click actions, tooltip, popup-on-hover and position. **Shows on**, beside the widget's name, chooses its screens: **All screens**, **Only on** the selected screen, each kind of screen, **Other rules** for the active or main screen, external screens and screens with or without a notch, or **Hidden everywhere**, which turns the widget off and keeps its settings. Hidden widgets offer **Show here**; widgets with a problem offer **Troubleshoot…**. @@ -33,9 +33,9 @@ Choose an app or web page to open on click. Workspaces offers **Show each window A revert arrow beside a changed value restores its inherited value; hover over it for an explanation. **Show where values come from**, or holding ⌥, reveals source links and information buttons. Click one, or choose **Show value sources** from the revert arrow’s context menu, to see contributing sources with the winning value first. The source popover warns when a higher-priority source overrides your saved value, offers **Open profile** when that source is a profile, and **Reset** when a saved value can be removed. Reset restores inheritance; writing `null` clears that level and is a different operation. Opening a menu or selecting its current value leaves it unchanged. -Configuration changes in Bar, Appearance, Profiles and General apply immediately and save to your main file, or to the current [screen setup](layout.md#screen-setups)'s own bar when it has one. Appearance changes go to every bar unless **Editing** is set to **This setup only** or **Shared bar only**; with a kind of screen chosen there, they save in that screen's `screens` entry, and while you edit a profile, in that profile. Ordinary settings for active packages use the same automatic save and Undo history; package drafts and credential edits have their own explicit actions. Number and text fields, sliders and color pickers update the bar once you pause, and typing or dragging saves when you pause, except **Hide apps** and **Hide workspaces**, which apply on Return or when you leave the field; closing Settings or quitting StableBar saves pending configuration changes. **Undo** (⌘Z) discards a pending change or reverses the last saved change, and **Redo** (⇧⌘Z) restores changes, with one step per burst. If the file changes outside Settings, affected history is cleared so Undo cannot overwrite those changes. An invalid change is rejected and its error is shown. If a pending change cannot be saved, it is discarded with an explanation so you can keep using Settings or quit. +Configuration changes in Widgets, Appearance, Profiles and General apply immediately and save to your main file, or to the current [screen setup](layout.md#screen-setups)'s own bar when it has one. Appearance changes go to every bar unless **Editing** is set to **This setup only** or **Shared bar only**; with a kind of screen chosen there, they save in that screen's `screens` entry, and while you edit a profile, in that profile. Ordinary settings for active packages use the same automatic save and Undo history; package drafts and credential edits have their own explicit actions. Number and text fields, sliders and color pickers update the bar once you pause, and typing or dragging saves when you pause, except **Hide apps** and **Hide workspaces**, which apply on Return or when you leave the field; closing Settings or quitting StableBar saves pending configuration changes. **Undo** (⌘Z) discards a pending change or reverses the last saved change, and **Redo** (⇧⌘Z) restores changes, with one step per burst. If the file changes outside Settings, affected history is cleared so Undo cannot overwrite those changes. An invalid change is rejected and its error is shown. If a pending change cannot be saved, it is discarded with an explanation so you can keep using Settings or quit. -**Profiles** lists [profiles](configuration.md#theme-tokens-and-automatic-profiles) in three groups, each in configuration order and shown only when it has profiles. **Yours** holds the profiles of your main file. **Theme edits** holds your main file's profiles whose only condition is a theme, where Settings keeps your edits to that theme's look: each row shows how many changes it holds, and **Edit in Appearance** opens Appearance to edit them. **From packages and themes** holds the profiles that a package, a theme or an included file defines, each naming where it comes from, such as “From OpenVPN Connect”. For your profiles and those from packages and themes, Profiles edits their conditions and enabled state, and lists **What it changes**. **+ Condition** groups the conditions under Appearance, Power, Screens, Network, Calls, Apps and Theme, including a connected monitor by name, the current Wi-Fi network, the camera or microphone in use, and **The theme is…**, which lists the included themes and those you installed. Each condition is a row with a menu for its value and says whether it is true now; a profile that is turned on but inactive names its conditions that aren't true yet, if any. **Edit the bar for this profile** uses Bar and Appearance with a shared banner and temporary preview; **Done** returns to Profiles and ends that editing preview. **Preview now** separately pins a profile until **Stop previewing** resumes automatic matching. **Edit as JSON…** applies configuration edits explicitly. **Delete profile…** removes a profile saved in your main file, or **Remove your changes…** for one that a theme, package or included file also defines. Profile reordering is not available in Settings. +**Profiles** lists [profiles](configuration.md#theme-tokens-and-automatic-profiles) in three groups, each in configuration order and shown only when it has profiles. **Yours** holds the profiles of your main file. **Theme edits** holds your main file's profiles whose only condition is a theme, where Settings keeps your edits to that theme's look: each row shows how many changes it holds, and **Edit in Appearance** opens Appearance to edit them. **From packages and themes** holds the profiles that a package, a theme or an included file defines, each naming where it comes from, such as “From OpenVPN Connect”. For your profiles and those from packages and themes, Profiles edits their conditions and enabled state, and lists **What it changes**. **+ Condition** groups the conditions under Appearance, Power, Screens, Network, Calls, Apps and Theme, including a connected monitor by name, the current Wi-Fi network, the camera or microphone in use, and **The theme is…**, which lists the included themes and those you installed. Each condition is a row with a menu for its value and says whether it is true now; a profile that is turned on but inactive names its conditions that aren't true yet, if any. **Edit the bar for this profile** uses Widgets and Appearance with a shared banner and temporary preview; **Done** returns to Profiles and ends that editing preview. **Preview now** separately pins a profile until **Stop previewing** resumes automatic matching. **Edit as JSON…** applies configuration edits explicitly. **Delete profile…** removes a profile saved in your main file, or **Remove your changes…** for one that a theme, package or included file also defines. Profile reordering is not available in Settings. **Store** lists the widgets and themes included with StableBar, the [Store](packages.md#store)'s and your installed packages, one row each, by category. It reviews local folders and Store packages, lists their included widgets and requirements, and provides **Add to bar**, ordinary settings, credential saves, version selection and removal. Installing files, adding widgets, turning off a package and uninstalling a version are separate states. Themes are primarily browsed in Appearance; selecting an installed theme in the Store still offers **Use theme**. **Sources…**, next to **Open a folder…**, lists the StableBar Store and your [private sources](packages.md#private-sources). Add one with **Add source…**, or choose **Edit** to change a source's name, URL or token, or to remove it. diff --git a/docs/styling.md b/docs/styling.md index dc58f1de..145ff862 100644 --- a/docs/styling.md +++ b/docs/styling.md @@ -137,7 +137,7 @@ Active states apply after the base layers in the order documented above. An expl **Migration:** opt in by adding roles to the time clock, a separate date clock, and popup blocks you want themed. Remove explicit fonts/colors when you want the role to control them. An explicit widget font still reaches its popup; a `time` role font does not. Keep music-popup rows/columns in the widget definition so every theme can style that same structure. Existing `widgetStyles` overrides, including a legacy self-targeted override, remain supported below the widget's own output style. -In **Settings → Bar**, a widget’s **More** menu sets its presentation role, and **Style → Workspaces** edits workspace indicators. **Appearance → Widgets → Workspaces** edits the workspace look, and **Appearance → Advanced** shared role styles and AeroSpace mode names; theme cards show sample widgets and the workspace indicator. **Profiles** can override these maps through its JSON editor or by editing the profile in Bar and Appearance. The shared CLI uses `roles`, `workspaceDefaults` and `modeAliases` batch actions; `set` assigns a widget's role or layout/block roles. **Status**/`--query` report the role, resolved style, ordered layers and source/token origins. +In **Settings → Widgets**, a widget’s **More** menu sets its presentation role, and **Style → Workspaces** edits workspace indicators. **Appearance → Widgets → Workspaces** edits the workspace look, and **Appearance → Advanced** shared role styles and AeroSpace mode names; theme cards show sample widgets and the workspace indicator. **Profiles** can override these maps through its JSON editor or by editing the profile in Widgets and Appearance. The shared CLI uses `roles`, `workspaceDefaults` and `modeAliases` batch actions; `set` assigns a widget's role or layout/block roles. **Status**/`--query` report the role, resolved style, ordered layers and source/token origins. ## Data states diff --git a/docs/widgets.md b/docs/widgets.md index 5f592af4..28896bd4 100644 --- a/docs/widgets.md +++ b/docs/widgets.md @@ -28,7 +28,7 @@ Window dragging is enabled only for the AeroSpace, yabai, Rift and KiwiDesk work **Clock & date**, **Battery**, **System monitor**, **Network**, **Calendar**, **Disk** and **Sound** include detail popups when added from **Settings → Store** or **Add widget**. The first five replace the Date, Battery status, System monitor, Network speed and Calendar agenda Store choices. Previously installed Store copies become built-in automatically and keep their saved settings and overrides; local folders and private sources can still offer packages with those IDs. -Select a widget in **Settings → Bar → Content** to change what it shows. **Behavior → Details popup** turns its built-in popup on or off. Existing native widgets can opt in with `"details": true`. The five former Store packages gain Essentials details automatically when the app updates, while preserving saved settings and overrides. In a file saved before 0.19.0, Sound widgets that don't set `details` turn theirs on too. A custom `popup`, `popupName`, menu, `onClick` or `open` keeps its action instead of the built-in details. +Select a widget in **Settings → Widgets → Content** to change what it shows. **Behavior → Details popup** turns its built-in popup on or off. Existing native widgets can opt in with `"details": true`. The five former Store packages gain Essentials details automatically when the app updates, while preserving saved settings and overrides. In a file saved before 0.19.0, Sound widgets that don't set `details` turn theirs on too. A custom `popup`, `popupName`, menu, `onClick` or `open` keeps its action instead of the built-in details. - **Clock & date:** choose a time, date or combined format, or enter a custom DateFormatter pattern. **Display** shows the format as **One text**, or **Date and time apart**: the date in the theme's `secondary` role and the time in its `time` role, from the clock's `date` and `time` fields. Choose **Follow this Mac** or a time zone. The popup shows the current time and date and a month calendar with previous/next month and Today controls. **Open Calendar** opens the Calendar app; the month view needs no Calendar permission. The week starts on the day in your macOS regional settings. A new configuration's clock puts the date in your Mac's order and follows its 12- or 24-hour time, such as `EEE MMM d h:mm a` in the US and `EEE d MMM HH:mm` in the UK; setup's 24-hour and 12-hour choices keep that date order. Clicking it opens this popup; the clock that starter configurations before 0.19.0 had opened Calendar instead, and opens the popup after the update. - **Battery:** keeps the native battery glyph and its percentage/charging tooltip. The existing display choices can show a percentage, meter or graph. Its details show charge, power source, a time estimate when available, battery health and Battery settings. A Mac without a battery, such as a Mac mini or an iMac, only shows a plug and AC, so setup's presets add Battery only on a Mac with one. @@ -76,7 +76,7 @@ A click on the Quick toggles widget opens a panel in the theme's colors, in card The panel reads each setting when it opens and every second while it's open, so changes made elsewhere show. Dark Mode and Hide Dock go through System Events, and Empty Trash through Finder, which macOS asks you to allow once. A tile the Mac can't use hides, such as True Tone on a Mac without it, and so does the built-in display's brightness slider while the lid is closed. Night Shift and its warmth, True Tone, the built-in display's brightness and DDC/CI use private macOS calls, so what needs them also hides on a macOS without them. Bluetooth's button uses one too: without it, Bluetooth still lists its devices, but only macOS turns it on or off. -`tiles` chooses the tiles and their order, each once. The panel puts each tile in its card, and the cards in the order of their first tile. **Settings → Bar → Content** lists the tiles shown, by card in the panel's order, then the others under **Not shown**: add or remove a tile with its button, and drag a shown tile to move it within its card, or use VoiceOver's **Move up** and **Move down**. A tile you add goes last in its card. +`tiles` chooses the tiles and their order, each once. The panel puts each tile in its card, and the cards in the order of their first tile. **Settings → Widgets → Content** lists the tiles shown, by card in the panel's order, then the others under **Not shown**: add or remove a tile with its button, and drag a shown tile to move it within its card, or use VoiceOver's **Move up** and **Move down**. A tile you add goes last in its card. | Card | Tiles | | --- | --- | @@ -94,7 +94,7 @@ Without `tiles`, it shows `wifi`, `bluetooth`, `keepAwake`, `brightness`, `darkM ## App menus -An `appMenu` widget shows the menus the macOS menu bar shows, usually the frontmost app's, such as File, Edit and View, with the app's own menu in bold. Set `displayMode` to `icon` to show the menu-owning app's macOS icon in place of its name, or choose **Icon** under **Settings → Bar → App menus**. The default `name` preserves existing configurations. In **Settings → Bar**, select App menus and turn on **Expand on hover** to show only the selected app title (its name or icon) until the pointer enters the widget. Expanding the menus takes the free room beside them and slides only the widgets in that room; nothing hides or moves out of the way. When the menus don't fit there, hovering the selected app title opens them as a row under the bar instead: click a title to open its menu, then move across the titles. The menus stay expanded while one is open, and while the pointer is just off them, so a pointer that drifts off the bar on its way to a title doesn't fold them; they fold a moment after it moves further away. Leave the setting off to show every title that fits; the rest go behind **»**, as described below. +An `appMenu` widget shows the menus the macOS menu bar shows, usually the frontmost app's, such as File, Edit and View, with the app's own menu in bold. Set `displayMode` to `icon` to show the menu-owning app's macOS icon in place of its name, or choose **Icon** under **Settings → Widgets → App menus**. The default `name` preserves existing configurations. In **Settings → Widgets**, select App menus and turn on **Expand on hover** to show only the selected app title (its name or icon) until the pointer enters the widget. Expanding the menus takes the free room beside them and slides only the widgets in that room; nothing hides or moves out of the way. When the menus don't fit there, hovering the selected app title opens them as a row under the bar instead: click a title to open its menu, then move across the titles. The menus stay expanded while one is open, and while the pointer is just off them, so a pointer that drifts off the bar on its way to a title doesn't fold them; they fold a moment after it moves further away. Leave the setting off to show every title that fits; the rest go behind **»**, as described below. App menus with nothing to show, such as while setup is open before Accessibility access is allowed, leave the bar, so a theme's group doesn't draw an empty pill around them. @@ -102,7 +102,7 @@ When all the titles don't fit, such as beside the notch on a MacBook, App menus Click a title to open its menu in a popup below the bar, drawn in your theme's popup style. While a menu is open, move the pointer onto another title to switch to its menu, as in the macOS menu bar; with **Morph between popups** on, the open menu changes into the next one. Rest the pointer on an item with a submenu, or click it, to open the submenu beside it. -The Apple logo is a separate `appleMenu` widget, and the starter bar has one. Add **Apple menu** to show it, or leave it out to keep only the app's menus. Its click opens the Apple menu by default. In **Settings → Bar**, select it and choose **When clicked** under **Behavior**: **Open the Apple menu**, **Open System Settings** or **Lock the Mac**, or set `click` to `menu`, `systemSettings` or `lockScreen`. To draw another SF Symbol in place of the logo, type its name in **Symbol** under **Icon**, or set `icon`; a `layout` you give the widget draws instead. Only the Apple menu needs Accessibility access; without it, the logo or your symbol stays on the bar and clicking it asks for access. A command, link, popup or menu you give the widget yourself takes the click instead. +The Apple logo is a separate `appleMenu` widget, and the starter bar has one. Add **Apple menu** to show it, or leave it out to keep only the app's menus. Its click opens the Apple menu by default. In **Settings → Widgets**, select it and choose **When clicked** under **Behavior**: **Open the Apple menu**, **Open System Settings** or **Lock the Mac**, or set `click` to `menu`, `systemSettings` or `lockScreen`. To draw another SF Symbol in place of the logo, type its name in **Symbol** under **Icon**, or set `icon`; a `layout` you give the widget draws instead. Only the Apple menu needs Accessibility access; without it, the logo or your symbol stays on the bar and clicking it asks for access. A command, link, popup or menu you give the widget yourself takes the click instead. Both menu widgets use the configured hover background and keep their normal text color when hovered. @@ -213,15 +213,15 @@ macOS has no public API that lists Spaces or their windows, so this source uses A `workspaces` widget (also accepted as `aerospace`) accepts `workspace` with: - `indicator`: `background` (default), `underline`, `cells` or `none`. `cells` draws a shape behind every cell from the style of its state: its `background`, `borderColor` and `borderWidth`, and `cornerRadius`, at the size of the cell without the widget's vertical padding. A state without a background or border draws none. -- `indicatorStyle`: underline `height`, `width`, `background`, `cornerRadius`, `offsetX`, `offsetY` and `placement`. `"cell"` (default) preserves the cell-relative underline; `"belowBar"` puts its top at the visible bar background's bottom plus `offsetY`, independently of the cell height; on a bar at the bottom of the display it sits on the bar's top side instead, `offsetY` above it. Negative `offsetY` moves the underline upward, or, for a `belowBar` underline on a bar at the bottom, downward toward the bar; the **Bar → Style → Workspaces** and **Theme → Workspaces** controls in Settings accept negative offsets too. Its `states.focused` and `states.visible` style the underline under the focused workspace and under a workspace shown on a display without focus; mode states apply after those. +- `indicatorStyle`: underline `height`, `width`, `background`, `cornerRadius`, `offsetX`, `offsetY` and `placement`. `"cell"` (default) preserves the cell-relative underline; `"belowBar"` puts its top at the visible bar background's bottom plus `offsetY`, independently of the cell height; on a bar at the bottom of the display it sits on the bar's top side instead, `offsetY` above it. Negative `offsetY` moves the underline upward, or, for a `belowBar` underline on a bar at the bottom, downward toward the bar; the **Widgets → Style → Workspaces** and **Theme → Workspaces** controls in Settings accept negative offsets too. Its `states.focused` and `states.visible` style the underline under the focused workspace and under a workspace shown on a display without focus; mode states apply after those. - `style`: cell typography, foreground, width, height, horizontal/side padding and spacing. Its `states` style each cell by workspace state: `focused` (the focused workspace), else `visible` (shown on a display without focus), else `empty` (no windows), so a cell has at most one. `focusedStyle`, `visibleStyle` and `emptyStyle` are shorthand for those states. The background indicator uses the state's background or border color. `show` sets what a cell shows: its label and app icons (`both`, the default), only its `label` or its `apps`, or `none`; `showApps: false` still hides the apps. `hover` changes the label and app glyphs; the indicators follow the workspace state. `defaults.states` don't apply to cells. - `showEmpty` and `showApps`: control empty workspaces and app icons. - `hideApps`: app bundle IDs or app names the widget leaves out, matched like `appGlyphs` keys, so `Adobe Photoshop*` hides every Photoshop version. Hidden apps leave the per-app and `windows` views, and a workspace whose only apps are hidden counts as empty, so `showEmpty: false` hides it unless it's visible on a display. For example, `"workspace": { "hideApps": ["com.1password.1password", "Raycast"] }`. -- `hideWorkspaces`: workspace names the widget leaves out, unless that workspace is focused, such as `["S", "scratch"]`. In **Settings → Bar**, select the workspace widget and list both in **Hide apps** and **Hide workspaces**, separated by commas. +- `hideWorkspaces`: workspace names the widget leaves out, unless that workspace is focused, such as `["S", "scratch"]`. In **Settings → Widgets**, select the workspace widget and list both in **Hide apps** and **Hide workspaces**, separated by commas. - `windows`: when `true`, shows one item per window instead of one per app. Each item keeps its app icon or `appGlyphs` glyph. Clicking it focuses that window; clicking the workspace number or cell padding switches workspace. An item can outlive its window: AeroSpace, for one, doesn't announce a window leaving every workspace. When OmniWM can't find the window of an app that is running, clicking its item opens that app instead, as described in [OmniWM workspaces](#omniwm-workspaces). Otherwise, when clicking an item, or dropping it on another workspace, fails with AeroSpace, yabai, OmniWM, Rift or KiwiDesk, the widget reads the workspaces again and drops the item without an error if its window is gone. The error shows while the window is still listed, or when the workspaces can't be read. `showApps: false` hides these items too. -- `focusedWindowStyle`: the icon of the focused window, or in per-app mode of the app it belongs to. Off unless set: `{}` turns it on with the default look, a background reaching 3 pt past the icon on each side and 2 pt above and below, in the cell's text color at low opacity and with the cell's corner radius. With `magnification`, it hugs the icon while the pointer is over the widget. In **Settings → Bar**, select the workspace widget and turn on **Mark the focused window**. AeroSpace, OmniWM, Rift, KiwiDesk and yabai report which window has focus; with yabai, register `window_focused` so the highlight follows focus. `background`, `cornerRadius`, `borderColor` and `borderWidth` change it, `paddingHorizontal` and `paddingVertical` set how far it reaches past the icon, `foreground`, `fontSize`, `appIcons` and the icon `width` and `height` apply to its icon or glyph over `appStyle`, and its `states` follow the cell: `focused`, `visible`, `empty`, mode and `hover`. `workspaceDefaults` accepts it too, so a theme can set it. For example, `"workspace": { "windows": true, "focusedWindowStyle": { "background": "#ffffff33", "cornerRadius": 6 } }`. +- `focusedWindowStyle`: the icon of the focused window, or in per-app mode of the app it belongs to. Off unless set: `{}` turns it on with the default look, a background reaching 3 pt past the icon on each side and 2 pt above and below, in the cell's text color at low opacity and with the cell's corner radius. With `magnification`, it hugs the icon while the pointer is over the widget. In **Settings → Widgets**, select the workspace widget and turn on **Mark the focused window**. AeroSpace, OmniWM, Rift, KiwiDesk and yabai report which window has focus; with yabai, register `window_focused` so the highlight follows focus. `background`, `cornerRadius`, `borderColor` and `borderWidth` change it, `paddingHorizontal` and `paddingVertical` set how far it reaches past the icon, `foreground`, `fontSize`, `appIcons` and the icon `width` and `height` apply to its icon or glyph over `appStyle`, and its `states` follow the cell: `focused`, `visible`, `empty`, mode and `hover`. `workspaceDefaults` accepts it too, so a theme can set it. For example, `"workspace": { "windows": true, "focusedWindowStyle": { "background": "#ffffff33", "cornerRadius": 6 } }`. - `titleLength`: maximum characters of each window title when `windows` is enabled. Omit it or use `0` for icons only. For example, `"workspace": { "windows": true, "titleLength": 24 }`. The full title is available on hover. Titles refresh with workspace and window events; yabai users can also register `window_title_changed`. -- `magnification`: magnifies the widget like the Dock, with icons zooming up to this size under the pointer, such as `1.5` for 150%. Icons push their neighbours apart, and the app under the pointer shows its name in a tooltip below the bar. Only the widget's drawing stretches, so the other widgets stay put. Omit it to turn magnification off. In **Settings → Bar**, select the workspace widget and turn on **Magnify on hover**, then set its size with **Magnification**. +- `magnification`: magnifies the widget like the Dock, with icons zooming up to this size under the pointer, such as `1.5` for 150%. Icons push their neighbours apart, and the app under the pointer shows its name in a tooltip below the bar. Only the widget's drawing stretches, so the other widgets stay put. Omit it to turn magnification off. In **Settings → Widgets**, select the workspace widget and turn on **Magnify on hover**, then set its size with **Magnification**. - `badges`: `"dot"` or `"count"` marks each app icon whose app has a badge on its Dock icon, such as unread messages. `dot` shows a red dot, and `count` the badge's number or text, as `99+` above 99. StableBar reads the badges from the Dock every five seconds, which needs Accessibility access; an app shows a badge here when its Dock icon has one, whether the Dock is hidden or not. The same badge shows on each of an app's icons, and it stays until the app clears it. Off by default. - `appStyle`: font and foreground for app glyphs, width and height in screen points for native app icons (14 × 14 by default), and [`appIcons`](styling.md#widget-styles) for native app icons, over the widget's own. Tinted icons take its `foreground`, else the cell's text color. `focusedAppStyle` and `visibleAppStyle` are shorthand for its `states.focused` and `states.visible`. - `appGlyphs`: app bundle ID or app name to text glyph. Set `appStyle.fontName` to an installed icon font to use its ligatures. A key ending in `*` matches app names that start with the rest of the key, such as `Adobe Photoshop*` for `Adobe Photoshop 2026`. Exact bundle IDs and names win over these keys, and among them the longest key wins. Use `"*"` alone for the fallback glyph; otherwise unmapped apps retain native icons. @@ -229,7 +229,7 @@ A `workspaces` widget (also accepted as `aerospace`) accepts `workspace` with: Cells fit their labels and app icons by default, with the same widget padding as other widgets. Vertical widget padding extends the selection background so it fills the widget's height. Set `workspace.style.height` for a fixed cell content height before that padding. -Adjust only the workspace widget's padding in **Settings → Bar → Style → Padding and corners**, or set its `style.paddingVertical`, for example `"style": { "paddingVertical": 4 }`. `style.paddingTop` and `style.paddingBottom` override it individually. +Adjust only the workspace widget's padding in **Settings → Widgets → Style → Padding and corners**, or set its `style.paddingVertical`, for example `"style": { "paddingVertical": 4 }`. `style.paddingTop` and `style.paddingBottom` override it individually. For a pill among dots, set `indicator` to `cells`, give the cells a dot's look and the focused state a pill's. A cell that shows nothing is as wide as its padding, so give the dots `paddingHorizontal` rather than a `width`, which a state can't unset: @@ -279,15 +279,15 @@ Your own `tokens.appGlyphs` merges into the module's map, so `{ "tokens": { "app A `controlCenter` widget opens macOS Control Center. A `stableBar` widget shows StableBar's own menu bar icon on the bar, so Settings is one click away while the macOS menu bar is hidden: clicking it opens Settings, and right-clicking it shows the bar's menu. A command, link, popup or menu you give it takes the click instead. A `menuBarItems` widget shows a grid symbol; rest the pointer on it, for the [hover delay](#tooltips), to see every item in the macOS menu bar as a row of icons, in menu bar order. Each icon is its app's icon, or a symbol like the menu bar's for macOS's own items, such as Wi-Fi, Bluetooth, Focus, Battery, the input menu, Clock, Control Center, Search and Time Machine. An item from a helper without an icon shows the icon of the app it belongs to, and one from a system agent without an icon shows a menu bar symbol. Rest the pointer on an icon to see its name. The row stays open while the pointer is over the widget or the row, and while moving diagonally toward the row through the [popup's safe triangle](popups.md). Moving away or stopping outside closes it after a short grace period. Clicking the widget keeps the row open until you click elsewhere or click the widget again. -To list the items only on click, set `"openOnHover": false` or turn off **Open on hover** in the widget's **Settings → Bar → Behavior** inspector. Then click the widget to open the row and click it again to close it. +To list the items only on click, set `"openOnHover": false` or turn off **Open on hover** in the widget's **Settings → Widgets → Behavior** inspector. Then click the widget to open the row and click it again to close it. Clicking an icon whose app has an ordinary menu opens that menu below it, in your theme's popup style. While a menu is open, move the pointer to another icon to switch to its menu. Items that draw their own panel, such as Control Center, Battery or Clock, open their panel as macOS does. So do items whose menu has rows StableBar can't draw, such as CodexBar's provider buttons and usage cards: they open the app's own menu. To open them, StableBar briefly brings out the hidden menu bar and keeps it invisible until the item closes. Both widgets need Accessibility access; resting the pointer on Menu bar items doesn't ask for it, a click does. StableBar's own menu bar icon isn't listed. ### Items on the bar -Items you use all day can sit on the bar beside the grid symbol, as they do in the macOS menu bar, and items you never use can leave the row. Select Menu bar items in **Settings → Bar** and open **Content**. **Menu bar items** shows the items in three strips: **On the bar**, in their order, with the grid symbol among them; **In the row**, in menu bar order; and **Hidden**. Drag an icon to another strip, or within **On the bar** to change its place; a line shows where it will go. Right-click an icon to move it left or right, onto the bar, back to the row or into **Hidden**. Select an icon to see its name and app, choose **Bar**, **Row** or **Hidden** for it, and, for an item on the bar, enter an SF Symbol to draw in place of its icon. An item whose app isn't running stays in its strip, dimmed, so you can still move it. +Items you use all day can sit on the bar beside the grid symbol, as they do in the macOS menu bar, and items you never use can leave the row. Select Menu bar items in **Settings → Widgets** and open **Content**. **Menu bar items** shows the items in three strips: **On the bar**, in their order, with the grid symbol among them; **In the row**, in menu bar order; and **Hidden**. Drag an icon to another strip, or within **On the bar** to change its place; a line shows where it will go. Right-click an icon to move it left or right, onto the bar, back to the row or into **Hidden**. Select an icon to see its name and app, choose **Bar**, **Row** or **Hidden** for it, and, for an item on the bar, enter an SF Symbol to draw in place of its icon. An item whose app isn't running stays in its strip, dimmed, so you can still move it. -The grid symbol moves the same way: drag it to either end of **On the bar** or between items, or into **Hidden** to leave it out. Select it to choose another SF Symbol for it. Without the grid symbol, the bar has no way to open the row, and right-clicking an item acts on the item, so edit the widget from **Settings → Bar**. The items in the row stay listed in Settings. +The grid symbol moves the same way: drag it to either end of **On the bar** or between items, or into **Hidden** to leave it out. Select it to choose another SF Symbol for it. Without the grid symbol, the bar has no way to open the row, and right-clicking an item acts on the item, so edit the widget from **Settings → Widgets**. The items in the row stay listed in Settings. On the bar itself, right-click an icon in the row for **Show on Bar** or **Hide**, and right-click the grid symbol for the same commands as in Settings, followed by **Edit Widget…** and the bar's menu. @@ -297,7 +297,7 @@ An item on the bar shows its app's icon. To see what the item itself shows, such Items on the bar open as they do in the row: a click opens the item's menu or panel, and while one of their menus is open, moving the pointer to another item switches to its menu. A right-click opens an item too, as a click does. Rest the pointer on an item to see its name. An item disappears from the bar while its app isn't running, and comes back when the app launches. The grid symbol lists the items that are neither on the bar nor hidden. -**Right-click as in the menu bar (experimental).** Some apps give a right-click on their menu bar item an action of its own: MeetingBar joins your next meeting, Wi‑Fi offers **Remove**. To reach it from the bar, turn on **Right-click items as in the menu bar** in the widget's **Settings → Bar → Behavior** inspector, or set `"rightClickInMenuBar": true`. A right-click on an item whose menu the bar draws still opens that menu; on any other item it right-clicks the item in the macOS menu bar. The pointer stays where it is, also on a display with a notch whose menu bar hides automatically. This needs macOS 27 or later, and relies on undocumented macOS behavior that a macOS update can change; on an earlier macOS, or when it can't reach the item, a right-click opens the item as a click does. +**Right-click as in the menu bar (experimental).** Some apps give a right-click on their menu bar item an action of its own: MeetingBar joins your next meeting, Wi‑Fi offers **Remove**. To reach it from the bar, turn on **Right-click items as in the menu bar** in the widget's **Settings → Widgets → Behavior** inspector, or set `"rightClickInMenuBar": true`. A right-click on an item whose menu the bar draws still opens that menu; on any other item it right-clicks the item in the macOS menu bar. The pointer stays where it is, also on a display with a notch whose menu bar hides automatically. This needs macOS 27 or later, and relies on undocumented macOS behavior that a macOS update can change; on an earlier macOS, or when it can't reach the item, a right-click opens the item as a click does. In JSON, `shown` lists the items on the bar, in order, and `hidden` the items left out of the row. Each entry names an `app` by its bundle ID or name, which covers every item of that app; add `item`, an Accessibility identifier or title, to name one item of an app that has several, such as Control Center. A shown item can set `icon` to an SF Symbol that replaces its icon, and `display` to `"live"` to draw as in the menu bar. The entry `"symbol"` places the grid symbol in `shown`, or leaves it out in `hidden`; without it, the grid symbol comes after the items. The widget's own `icon` replaces the grid symbol. @@ -311,7 +311,7 @@ In JSON, `shown` lists the items on the bar, in order, and `hidden` the items le ## Backgrounds -In **Settings → Bar**, select a widget and open **Style**. **Widget background**, **Popup background** and **Tooltip background** change only the named surface. Each accepts a color, a light/dark pair, a theme color or a gradient; **None** makes it transparent. Tooltip background also applies to hover controls. +In **Settings → Widgets**, select a widget and open **Style**. **Widget background**, **Popup background** and **Tooltip background** change only the named surface. Each accepts a color, a light/dark pair, a theme color or a gradient; **None** makes it transparent. Tooltip background also applies to hover controls. In JSON, set `background`, `popupBackground` and `tooltipBackground` on the widget. For example, a transparent clock with opaque details and tooltip: @@ -332,7 +332,7 @@ Omitted overrides keep the existing style inheritance. In particular, `style.bac ## Tooltips -Set a widget's `tooltip` to show text when the pointer rests on it. It works without a popup and keeps the widget's click action. For example, add `"tooltip": "Will not sleep for 1 hour"` to an Amphetamine widget. You can also edit **Tooltip** in the widget’s **Settings → Bar → Behavior** inspector. +Set a widget's `tooltip` to show text when the pointer rests on it. It works without a popup and keeps the widget's click action. For example, add `"tooltip": "Will not sleep for 1 hour"` to an Amphetamine widget. You can also edit **Tooltip** in the widget’s **Settings → Widgets → Behavior** inspector. Tooltips inherit `defaults`, `popupDefaults`, and the widget's explicit `style`, using the same colors, font, border, corners, shadow, and glass treatment as popups. Their padding stays compact, 10 points across and 6 down, whatever those styles set, and the spacing of [hover controls](create-a-widget.md#controls-on-hover) is the widget's own `style.spacing`, or 6, never the popups'. They open `bar.popupOffset` points below the bar, like popups. The widget's `tooltipBackground` overrides just their background, independently of `background` and `popupBackground` (see [Backgrounds](#backgrounds)). Their size fits the text. They open and close with the bar's popup [motion and transition](create-a-widget.md#animation), like the [hover controls](create-a-widget.md#controls-on-hover) of Sound and other widgets. @@ -373,6 +373,6 @@ These commands receive `SENDER=mouse.clicked`, `mouse.scrolled`, `mouse.entered` ## Keyboard and VoiceOver -VoiceOver reads each widget by the name **Settings → Bar** gives it, then what the widget shows: its text, or the latest value of a graph shown without text, as a percentage. It reads the widget's tooltip as a hint. A widget whose click opens a popup reads as a button that is collapsed or expanded, as its popup is closed or open. Workspaces, App menus and Menu bar items drawn on the bar keep their own button for each workspace, menu and item. +VoiceOver reads each widget by the name **Settings → Widgets** gives it, then what the widget shows: its text, or the latest value of a graph shown without text, as a percentage. It reads the widget's tooltip as a hint. A widget whose click opens a popup reads as a button that is collapsed or expanded, as its popup is closed or open. Workspaces, App menus and Menu bar items drawn on the bar keep their own button for each workspace, menu and item. To reach the bar from the keyboard, bind [`StableBar --focus`](command-line.md) to a key, as Control-F2 reaches the macOS menu bar. The bar on the active display takes the keyboard, starting at its leftmost widget, and the widget with focus shows the theme's hover look; with a theme that gives widgets no hover look, the focus doesn't show. The left and right arrow keys move along the bar and wrap around at its ends. Return or Space does what a click does, so it also opens a popup that opens on hover. An open popup takes the keyboard: Tab moves through its controls, skipping disabled menu items, and a ring in the theme's accent marks the one with focus. Escape closes the popup; run `--focus` again to come back to the bar. Escape, or a click in another window, gives the keyboard back to the app you were in. Widgets in **More widgets** can't be reached from the keyboard.