Skip to content

Conversation

@ZeusCraft10
Copy link

@ZeusCraft10 ZeusCraft10 commented Dec 24, 2025

This PR fixes issue pop-os/cosmic-epoch#2802 where the dock's corner radius did not match the "Slightly Round" system theme (or other user-selected corner radii).

Changes:

  • Modified CosmicPanelConfig to change border_radius from u32 to Option<u32>.
  • Updated cosmic-panel-bin to use the theme's corner_radius when border_radius is None.
  • Updated the default configuration:
    • Panel (Top Bar) explicitly sets border_radius: Some(0) (square/full-width).
    • Dock sets border_radius: None (adapts to system theme).

Reasoning:
The previous implementation used a hardcoded default of 8 (in panel_config.rs) or 12 (in container_config.rs for the Dock), which often clashed with the user's chosen theme settings. By allowing None, we enable the dock to dynamically match the rest of the desktop environment.

Fixes pop-os/cosmic-epoch#2802

Changed border_radius to Option<u32> to allow falling back to the theme's corner_radius when not set. Updated default dock config to None.
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.

Dock isnt as rounded as buttons in "slightly rounded" style

1 participant