/srv/irclogs.ubuntu.com/2021/08/05/#ubuntu-discuss.txt

=== eliocamp5 is now known as eliocamp
=== eliocamp5 is now known as eliocamp
=== eliocamp1 is now known as eliocamp
=== eliocamp9 is now known as eliocamp
lotuspsychjegood morning01:50
ducassegood morning06:07
lordievaderGood morning06:25
=== eliocamp1 is now known as eliocamp
=== eliocamp3 is now known as eliocamp
=== eliocamp4 is now known as eliocamp
=== eliocamp8 is now known as eliocamp
=== eliocamp0 is now known as eliocamp
marcoagpintoHeya!18:03
marcoagpintodoes anybody know if Ubuntu 22.04 LTS will change the gadgets size?18:03
marcoagpintothey became bigger in 20.04 compared to 18.0418:04
marcoagpintoI now need to resize in my software18:04
lotuspsychjemarcoagpinto: 'the gadgets'?18:06
marcoagpintolotuspsychje: the buttons height18:07
marcoagpintothey changed18:07
marcoagpintoso, Proofing Tool GUI looks well in 18.0418:07
marcoagpintobut in 20.04 they overlap since the minimum height changed18:08
marcoagpintoit will be a great work to change the position of one by one18:08
lotuspsychjemarcoagpinto: 22.04 is not in development yet, we will have to wait a bit still18:08
marcoagpintoahhhhhh18:08
marcoagpinto:((((((((18:08
lotuspsychjeoctober18:08
tomreyn21.10 will release in october, 22.04 in april next year, as the numbers suggest.18:11
marcoagpintoI know :)18:11
marcoagpintobut there could be "some knowledge"18:11
marcoagpinto:)18:11
* sarnold hides his cola18:15
lordievaderSounds like you hard code details...18:16
lordievaderRarely a good idea. Especially if the program is supposed to run on different screen sizes etc18:16
marcoagpintolordievader: yes, I hardcode heights18:18
marcoagpinto:)18:18
marcoagpintobecause I compile for Windows and Ubuntu, so I want it to look the same in both18:18
marcoagpintobut the windows size are dynamic18:18
marcoagpintojust the buttons are hardcoded18:18
marcoagpintoin Microsoft Windows there the gadgets can have any size, but on Ubuntu they have a minimum size18:22
marcoagpintoand Ubuntu won't display smaller18:22
lordievaderYou can't add a constraint that the height is the size of the buttons plus some margin?18:24
lordievaderWhat gui framework are you using? Qt?18:24
marcoagpintolordievader: no gui framework18:27
marcoagpinto:)18:27
marcoagpintojust Gtk 3.118:27
marcoagpintomy approach was simple: I created a small program that creates gadgets and resizes them to the minimum possible, then I get the values in every OS I run the code18:29
marcoagpintoso, I compared Windows with Ubuntu and used the biggest values18:29
marcoagpinto:)18:29
marcoagpintothis way it looks the same on both OSes18:29
lordievaderGTK is a GUI framework.18:30
marcoagpintoahhhhh18:30
marcoagpintolordievader:18:30
marcoagpinto  ; Global variables - GTK3 Ready - Ubuntu 20.04.1 LTS18:30
marcoagpinto  ; Commented values are regarding to Windows 10 and Ubuntu 18.04 LTS18:30
marcoagpinto  Global default_gadget_height_button=34 ;28 ;2418:30
marcoagpinto  Global default_gadget_height_text=18 ; Leave it, since GTK3 is 1618:30
marcoagpinto... etc.18:31
marcoagpintoI use the biggest size for each gadget type18:31
marcoagpintoAs you can see the normal buttons minimum size is now 34 pixels in 20.0418:32
lordievaderRight, well I'm not familiar with GTK. But  my limited gui experience has taught me that you don't want to hard code anything. Use constraints rather than hard coding things.18:33
marcoagpinto:(18:33
marcoagpintoI know18:33
lotuspsychjemarcoagpinto: https://ubuntuhandbook.org/index.php/2021/08/ubuntu-21-10-removed-standard-theme/18:44
marcoagpintoahhh18:51
marcoagpintolet me see18:51
=== eliocamp6 is now known as eliocamp
=== eliocamp7 is now known as eliocamp
=== eliocamp52 is now known as eliocamp5
=== eliocamp59 is now known as eliocamp5
=== eliocamp54 is now known as eliocamp5
=== illuminated_ is now known as illuminated
=== eliocamp56 is now known as eliocamp5

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!