Dock and task manager are one module: titled window pills, pins, Super+1..9
CI / test (push) Failing after 30s
CI / test (push) Failing after 30s
The panel had a task list and, beside it, a dock showing the same running
apps again. They are now one module, the dock, in the task list's place:
- Pinned apps, then running ones; an app with windows is a pill with its
window's title (or name and window count) while there is room, an icon
when the panel is crowded ("Show window titles" in Dock settings).
- Its right-click menu has the task list's window commands (Minimize /
Restore, Maximize) for a single window, or the app's windows by title.
- It stretches like the task list did; new panels get it instead of
tasks. A saved panel's "tasks" becomes the dock (one dock, where the
task list was); pins are the dock's own setting, so they carry over.
- An empty dock shows a "+ Add apps" tile that opens the Applications
menu, where right-clicking an app offers Open and Pin to dock (adding a
dock to the panel if there is none).
- Super+1 .. Super+9 open the dock's first nine apps like a click
(shortcut "dock-apps", rebindable in Settings > Shortcuts).
- "New window" / "Open" only for apps the catalog can start.
The tasks component, lib/panel's pill geometry and the taskbar-widget
world are gone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hiPCFHRxaJQvwex6ry
This commit is contained in:
28 files changed
+801
-1131
No files matched your search
@@ -8,6 +8,8 @@ import {
|
||||
}
|
||||
|
||||
// Values
|
||||
pub fn activate(DockItem, UInt64?) -> DockAction
|
||||
|
||||
pub fn app_glyph(String, String) -> String
|
||||
|
||||
pub fn app_icon(Int32, Int32, Int32, String, String, hover? : Bool) -> Array[@types.DrawOp]
|
||||
@@ -28,16 +30,26 @@ pub fn icon_size(DockConfig, Int32) -> Int32
|
||||
|
||||
pub fn item_at(Array[DockItem], DockConfig, Int32, Int32, Int32, Int32) -> Int32
|
||||
|
||||
pub fn item_center(Array[DockItem], DockConfig, Int32, Int32) -> Int32
|
||||
pub fn item_center(Array[DockItem], DockConfig, Int32, Int32, Int32) -> Int32
|
||||
|
||||
pub fn item_size(DockConfig, Int32, Int32, Int32) -> Int32
|
||||
|
||||
pub fn item_title(DockItem) -> String
|
||||
|
||||
pub fn items(DockConfig, Array[@types.AppEntry], Array[DockWindow]) -> Array[DockItem]
|
||||
|
||||
pub let label_max : Int32
|
||||
|
||||
pub let label_min : Int32
|
||||
|
||||
pub fn match_app(String, Array[String]) -> String?
|
||||
|
||||
pub fn match_name(String, Array[@types.AppEntry]) -> String?
|
||||
|
||||
pub fn move_pin(Array[String], String, Int32) -> Array[String]
|
||||
|
||||
pub fn owner_of(String, Array[String], Array[@types.AppEntry], catalog_ids? : Array[String]) -> String?
|
||||
|
||||
pub fn preferred_width(Array[DockItem], DockConfig, Int32) -> Int32
|
||||
|
||||
pub fn render(@types.Size, @theme.Tokens, DockConfig, Array[DockItem], Int32, (String) -> UInt32) -> Array[@types.DrawOp]
|
||||
@@ -71,6 +83,7 @@ pub(all) struct DockConfig {
|
||||
mut size : String
|
||||
mut magnify : Bool
|
||||
mut running : Bool
|
||||
mut titles : Bool
|
||||
}
|
||||
pub fn DockConfig::from_pairs(Array[(String, String)]) -> Self
|
||||
pub fn DockConfig::items(Self) -> Array[ConfigEntry]
|
||||
@@ -86,12 +99,16 @@ pub(all) struct DockItem {
|
||||
pinned : Bool
|
||||
windows : Array[UInt64]
|
||||
focused : Bool
|
||||
title : String
|
||||
minimized : Int32
|
||||
}
|
||||
|
||||
pub(all) struct DockWindow {
|
||||
id : UInt64
|
||||
app_id : String
|
||||
focused : Bool
|
||||
title : String
|
||||
minimized : Bool
|
||||
}
|
||||
|
||||
// Type aliases
|
||||
|
||||
Reference in new issue
Block a user