Skip to content

[Feature] settings option to change sidebar size #853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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