Skip to content

feat(island): allow positioning the island at screen bottom (#1021) - #1032

Open
Ohualtex wants to merge 1 commit into
Louis-CFM:mainfrom
Ohualtex:feat/windows-island-bottom-placement
Open

Ohualtex wants to merge 1 commit into
Louis-CFM:mainfrom
Ohualtex:feat/windows-island-bottom-placement

Conversation

@Ohualtex

@Ohualtex Ohualtex commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1021. Closes #446.

Problem

On Windows, Coucou's main Dynamic Island window and wake strip were anchored exclusively to the top edge of the display (y = mp.y + top_inset). While #989 solved top-docked taskbar collisions by offsetting the island downwards, users whose workflow involves frequent use of titlebars, browser tabs, or app menus at the top requested an option to place the island at the opposite screen edge (the bottom), opening upwards (as requested by @bebelsrd07 in #1021 and #446). This also aligns with the multi-edge placement support introduced in 0.5.8 on macOS.

Changes

  1. Settings Store (windows/src-tauri/src/settings.rs & windows/src/core/state.ts):
    • Added island_position ("top" | "bottom", default "top") to Settings. Fully backward-compatible; missing or older settings files default to "top".
  2. Window Placement & Bottom Insets (windows/src-tauri/src/island.rs):
    • Implemented bottom_inset_from and bottom_inset which calculate the delta between physical display bottom and work area bottom bounds ((monitor_y + monitor_h) - (work_y + work_h)).
    • When island_position == "bottom", places the window at y = mp.y + ms.height - bottom_inset - ph, ensuring the wake strip (6px) and expanded panel sit neatly above any docked bottom taskbar (or flush against the screen bottom if auto-hidden).
    • Updated current_screen_key to track bottom taskbar and edge changes dynamically.
  3. UI & Click-Through Hit-Testing (windows/src/):
    • Added an "Island position" selector row (Top edge / Bottom edge) under General Settings, complete with localized strings for all 14 supported languages in extra.json.
    • In CSS, added body.edge-bottom #wake-strip and #island pinned to bottom: 0 with inverted top rounded corners (border-radius: 14px 14px 0 0).
    • In island.ts, updated applyGeometry and islandRect so y = viewportH - hh when anchored to the bottom. Mouse coordinates, bot gaze, and Bridge.setIslandRect click-through hit-testing automatically adjust so clicks above the island pass through cleanly to underlying windows.
  4. Testing:
    • Added Rust unit tests for bottom_inset_from and backward-compatible settings parsing.
    • Added TypeScript unit test suite windows/tests/island-position.test.mjs.
    • Verified that all 556 Cargo tests, all 507 Node.js tests, and tsc --noEmit pass with zero failures.

@Ohualtex
Ohualtex force-pushed the feat/windows-island-bottom-placement branch 2 times, most recently from eb88168 to 8d815a9 Compare November 13, 2026 11:55
…M#1021)

Adds a Windows setting to place the Dynamic Island at the bottom edge of the screen, opening upwards, while keeping the top edge completely clear for application titlebars and menus.

- Add island_position (top | bottom) to Settings with backward-compatible defaults.
- Dynamically calculate bottom_inset from monitor work area so the island sits right above a docked bottom taskbar (or flush against the screen bottom).
- Flip island styling in CSS (body.edge-bottom) with upward rounded corners.
- Update webview click-through hit-testing (Bridge.setIslandRect) so clicks above the bottom island pass through seamlessly.
- Add Island position dropdown under General Settings with full translations in 14 languages.
- Add comprehensive unit tests in Rust and TypeScript.
@Ohualtex
Ohualtex force-pushed the feat/windows-island-bottom-placement branch from 8d815a9 to d2c8b47 Compare November 25, 2026 18:44

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows: let the main island move to the bottom edge of the screen Windows: allow placing the island at the bottom or top of the screen

1 participant