Skip to content

add dock configuration options for length, position, and corner radius#1771

Open
MiraiDevv wants to merge 2 commits into
pop-os:masterfrom
MiraiDevv:master
Open

add dock configuration options for length, position, and corner radius#1771
MiraiDevv wants to merge 2 commits into
pop-os:masterfrom
MiraiDevv:master

Conversation

@MiraiDevv
Copy link
Copy Markdown
Contributor

@MiraiDevv MiraiDevv commented Jan 20, 2026

The changes within the repository all pertain to the PR, which I will list below: pop-os/cosmic-panel#549

@mmstick mmstick requested review from a team January 21, 2026 15:03
@mmstick
Copy link
Copy Markdown
Member

mmstick commented Jan 21, 2026

Requires design approval from @maria-komarova first.

EnableDock(bool),
DockLengthPercent(u16),
DockPositionPercent(u16),
DockCornerRadius(u16),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be shared with the panel?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, while I was doing this, I even thought about that, but then I thought, "What if the user only wanted to change the size of the dock without affecting the panel's width?" If they wanted, I could create a hybrid between them. I would make a toggle button that, if activated by the user, would link the width of the dock and the panel, so both would have to be the same width while the toggle button is activated.

And then I would also make a slider to decrease and increase the panel's width separately when the user deactivates the toggle button. What do you think, @mmstick?

Copy link
Copy Markdown
Member

@mmstick mmstick Jan 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've added these enum variants to the dock's message type when it should be shared by both the dock and panel in the inner message type. The dock is just a second panel, and the panel is often used as a dock for those using the single panel layout.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've added these enum variants to the dock's message type when it should be shared by both the dock and panel in the inner message type. The dock is just a second panel, and the panel is often used as a dock for those using the single panel layout.

I'm not sure I understood exactly what you meant, but I made those changes, was that it?

@maria-komarova
Copy link
Copy Markdown
Contributor

It would be helpful to have a clear overview of the changes with corresponding screenshots. I also get a 404 when clicking on the PR link.

@MiraiDevv
Copy link
Copy Markdown
Contributor Author

It would be helpful to have a clear overview of the changes with corresponding screenshots. I also get a 404 when clicking on the PR link.

Hi @maria-komarova, I think you should be able to click the link now! I'll record a video and also take screenshots of how things are and attach them to this PR!

@MiraiDevv
Copy link
Copy Markdown
Contributor Author

MiraiDevv commented Jan 21, 2026

cosmic_panels_and_cosmic_settings.mp4

Here is a video demonstrating the changes made, @maria-komarova @mmstick

This video already includes the changes that were made to the cosmic-panel, in the PR that was linked to this one; if you want, I can put the same video there as well.

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.

3 participants