Skip to content

Conversation

BanceDev
Copy link

@BanceDev BanceDev commented Mar 5, 2025

The default sidebar size is quite wide. I added a settings option to choose between small, medium, and large presets.

It seemed to me that with the way the UI was presently designed it would be a bit complicated to make the sidebar resizable. All I could find was using something like PaneGrid but that seemed like it would lead to a lot of refactoring.

If any changes to this design are ideal like something akin to PaneGrid or using a slider in the settings instead I would be willing to alter it. I just think this is a much needed feature.

2025-03-05.17-00-49.mp4

@iamkartiknayak
Copy link
Contributor

iamkartiknayak commented Mar 11, 2025

Could the sidebar support drag-to-resize with three predefined steps, snapping to the nearest defined size while prioritizing the drag direction?

This would allow users to resize quickly without having to navigate to Settings, open the drop-down, select a size, and then close it

@iamkartiknayak
Copy link
Contributor

Also on small size it needs to support tool tip on hover. At least 1s delay would be great

@BanceDev
Copy link
Author

BanceDev commented Mar 11, 2025

Could the sidebar support drag-to-resize with three predefined steps, snapping to the nearest defined size while prioritizing the drag direction?

This would allow users to resize quickly without having to navigate to Settings, open the drop-down, select a size, and then close it

This is the approach I wanted to take at first but I could not find a way to do so in libcosmic without using PaneGrid. I'm not sure PaneGrid is the best tool for the job here so if there is another way to achieve this that u know of lmk. Additionally if anyone more versed in libcosmic knows how I could implement tooltips on segmented buttons I'd like to know that too for the icon only sidebar size. Thanks!

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.

2 participants