Skip to content
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

Fix wide panels sizes (vert/horz) #2

Merged
merged 1 commit into from
Aug 22, 2018
Merged

Fix wide panels sizes (vert/horz) #2

merged 1 commit into from
Aug 22, 2018

Conversation

braikar
Copy link
Owner

@braikar braikar commented Aug 20, 2018

This change limits the size taken by all BUTTON_WIDGETs when the panel is wide, because for the moment when for example the panel is horizontal 200 pixels wide/high, the widgets take up 200x200 for an icon of max size 48.
I've set it to take now (for this example) 50x200 or 200x50 (if it's a vertical panel 200px wide)
If users want to leave the same space as before around the icons they just have to move them on the panel anyway and it can be as before..
What I'd like to add after is to get this size (48 or 50) from gsettings by a new option set in the panel properties as 'max_icon_size' or something like that, so that the user decides on the maximum icon size him/herself.

It still needs some work, the arrow for menus is not updated to correct size yet...

changes

This change limits the size taken by all BUTTON_WIDGETs when the panel is wide, because for the moment when for example the panel is horizontal 200 pixels wide/high, the widgets take up 200x200 for an icon of max size 48.
I've set it to take now (for this example) 50x200 or 200x50 (if it's a vertical panel 200px wide)
If users want to leave the same space as before around the icons they just have to move them on the panel anyway and it can be as before..
What I'd like to add after is to get this size (48 or 50) from gsettings by a new option set in the panel properties as 'max_icon_size' or something like that, so that the user decides on the maximum icon size him/herself.
braikar added a commit that referenced this pull request Aug 20, 2018
This is the end of #2
now the GTK_ARROW is resized properly for wide panel on BUTTON_WIDGETs with property "has_arrow"
@braikar braikar merged commit d419857 into master Aug 22, 2018
braikar added a commit that referenced this pull request Sep 28, 2018
# This is the 1st commit message:

Wide panels (main.c na-gric.c code cleanup)

# The commit message #2 will be skipped:

# incorrect casts compile warnings
@braikar braikar deleted the braikar-patch-1-1 branch January 31, 2019 12:12
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.

1 participant