Closed srevinsaju closed 4 years ago
Tested. Works as expected.
Yay. Thanks for the review @Hrishi1999 :)
In the video at https://github.com/sugarlabs/terminal-activity/pull/38 the button is larger than a grid cell, causing the height of the new toolbar to be greater than the height of the main toolbar and the edit toolbar. The button should be the same height and width as all the others.
@quozl the video was taken on sugar-runner
, which respects main screen Gdk.Screen.height and width and not the sub screen. however the grid size remain the same. to see similar change, a test on VM can check if it works
it also depends on Sugar artwork version. sugar artwork previously had a smaller pallete icon, which changed to a circle recently. Testing on a VM, with older sugar artwork, it should look exactly as given in @Hrishi1999 's comment on Physics issue 17.
basically, what the code does is to use the GRID_CELL_SIZE
@quozl , It was my mistake. I have fixed the size issue on https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/439/commits/daf70d30a44f8697c22a7740c3947c77909a8877. On testing this, on default resolution, I found it was still big. I replaced GRID_CELL_SIZE
with STANDARD_ICON_SIZE
, and that fixes the size issue.
Thanks. Tested daf70d3 with Physics and Paint.
The light grey circle seems larger than it should be, but I don't know what causes that. Anyway, it's way better than it was before, so merging.
ColorButton did not show button icon, and swatches were too small making it almost unusable. Color chooser toolbar had been using Gtk.IconSize.LARGE_TOOLBAR which return 0 as size. style.GRID_CELL_SIZE was used as size reference
@quozl @walterbender @Hrishi1999 @Aniket21mathur