Menu

#1051 Toolbar not resizing in height when the icon size is 16x16 on Linux

Undefined
invalid
Bug_Report
2021-01-01
2020-12-31
orzun
No
  • Versions: Arch Linux / Gnome 3.38.2 / CodeBlocks 20.03 rev 11997 / wxgtk 3.0.5.1
  • Steps to reproduce:
    1. change toolbar icons to Large(24x24) (Settings -> Environment -> View -> Feature Size -> Toolbar Icon Size) and restart;
      large
    2. change toolbar icons to Normal(16x16) and restart;
      normal
    3. the icon size is changed but the toolbar height not. The toolbar with smaller icons looks not compact enough.
  • Expected behavior:
    The toolbar height is resized correctly.

Discussion

  • Teodor Petrov

    Teodor Petrov - 2020-12-31

    You're not showing that there are controls (wxChoice/wxComboBoxes) in the other toolbars. These controls determine the height of the toolbar. I suppose changing the font for these controls would do it, but I've not experimented. Patches welcome.

     
    • orzun

      orzun - 2020-12-31

      Yes, I've considered the combo boxes (the Compiler toolbox has a combo). I tried to disable the Compiler toolbox or decrease the font size. But the situation has not changed much. Maybe it's a limitation of GTK widgets. Thanks!

       
  • Teodor Petrov

    Teodor Petrov - 2020-12-31
    • labels: --> UI, gtk, gtk3
     
  • Teodor Petrov

    Teodor Petrov - 2020-12-31

    The font size should be changed when creating the control. This means that you can do it only if you modify C::B.
    On some of the platforms we support the toolbar size is variable, so it depends on the tallest element in the row. But I don't remember which platform behaved like this.

     
  • Teodor Petrov

    Teodor Petrov - 2020-12-31

    What is the scaling factor you're using? What is your monitors DPI? What is the GTK UI font size?

     
    • orzun

      orzun - 2020-12-31

      I tried with 1.0 / 96 / Cantarell Regular 11 | 9 | 6 (in Gnome tweaks). The GTK theme is Adwaita. Also, the combo is actually the tallest element. So it might blame to GTK. Feel free to close this if it's the reason. Thanks!

       

      Last edit: orzun 2020-12-31
  • Morten MacFly

    Morten MacFly - 2021-01-01
    • status: open --> invalid
    • assigned_to: Morten MacFly
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.