User Guide
01.3 · Core Concepts

Dock Pill vs Main Window

Tex has two top-level UI modes. Only one is visible at a time. The mode is tracked by the MainWindowViewModel.IsDocked runtime flag.

  IsDocked = false          IsDocked = true
  ┌───────────────────┐      
  │  MainWindow       │         ┌────────────────┐
  │  (full toolbar +  │   ⇄     │  DockPill      │  148 x 60
  │   annotation)     │         └────────────────┘
  └───────────────────┘         bottom-center

Side-by-Side

AspectMainWindowDockPillWindow
Size800 x 56 collapsed; up to 900 x 700 with a loaded capture148 x 60, fixed, rounded "pill"
PositionUser-movable; last position rememberedBottom-center of the primary monitor by default; drag the icon handle to reposition
Buttons exposedFull toolbar (Region / Fullscreen / OCR / Color / QR / Scan / Extract / Recording / History / Settings / Dock / Min / Exit) and the annotation canvasRegion capture button, Expand (undock) button, drag handle
Annotation canvasYes — inline on the same windowNo — use hotkeys to capture, UI returns to MainWindow for editing
HotkeysAll global and in-window hotkeysGlobal hotkeys still active; in-window hotkeys are not applicable
Hides to trayYes (minimize button or close when UI.MinimizeToTray = true)Yes — hidden alongside MainWindow when StartMinimized = true
PurposeFull session work — capture, annotate, exportAlways-visible quick-capture surface for power users

Switching Between Them

From MainWindow to pill:

  1. Click the Dock button in the top-right of the MainWindow toolbar.
  2. MainWindow hides; the DockPillWindow appears at bottom-center.

From pill back to MainWindow:

  1. Click the Expand button on the pill.
  2. The pill hides; MainWindow reappears at its last position.

Either action runs MainWindowViewModel.DockToBottomCommand or UndockCommand respectively.

Default Mode on Launch

The startup mode is separate from the runtime mode:

SettingEffect
UI.DockToBottom = false (default)Launch into full MainWindow
UI.DockToBottom = trueLaunch straight into the dock pill
UI.StartMinimized = trueLaunch hidden; whichever mode is configured stays offscreen until the tray icon or a hotkey wakes it
Tip

SettingUI.DockToBottom only controls the initial mode. Clicking Dock or Expand at runtime changes the IsDocked flag for the current session; the startup setting is unchanged unless you edit it in Settings.

See section 09 for the full behaviour of the dock pill and system tray.