Author Topic: Some UI text still very small on HiDPI display  (Read 964 times)

Offline ctag

  • Single posting newcomer
  • *
  • Posts: 7
Some UI text still very small on HiDPI display
« on: October 24, 2020, 04:49:35 pm »
Hi all,

I'm excited to be upgrading to 20.03 on Linux.

Part of the release notes mention HiDPI improvements -- and the UI does look great -- but some of the text is still tiny. Attached is a screenshot. The 'File' 'Edit' etc items at the top are the normal, readable size on my screen and they change size appropriately when I force different DPI settings in .Xresources. The editor tab titles and project tree are too small.

Is there a configuration option to increase the size of those text items?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12911
    • Travis build status
Re: Some UI text still very small on HiDPI display
« Reply #1 on: October 25, 2020, 10:11:11 am »
What is the wxGTK you're using and what toolkit are you using (gtk2 or gtk3)?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ctag

  • Single posting newcomer
  • *
  • Posts: 7
Re: Some UI text still very small on HiDPI display
« Reply #2 on: October 25, 2020, 05:05:41 pm »
I'm not super sure how to check, but the package for codeblocks that I'm using lists wxGTK 3.0.5.1 and GTK3 as dependencies.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12911
    • Travis build status
Re: Some UI text still very small on HiDPI display
« Reply #3 on: October 25, 2020, 05:33:52 pm »
Help -> Abour -> Information list everything.

Currently GTK3 is not well tested. I've tried to fix as many HiDPI issues I've found on it, but it wasn't easy. I'll do some work on the GTK3 side sometime in the future.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ctag

  • Single posting newcomer
  • *
  • Posts: 7
Re: Some UI text still very small on HiDPI display
« Reply #4 on: October 25, 2020, 06:09:00 pm »
Thanks oBFusCATed.

Quote
Name             : Code::Blocks
Version          : 20.03-r11997
SDK Version      : 2.0.0
Scintilla Version: 3.7.5
Author           : The Code::Blocks Team
E-mail           : [email protected]
Website          : http://www.codeblocks.org

wxWidgets Library (wxGTK port)
Version 3.0.5 (Unicode: wchar_t, debug level: 1),
compiled at May 10 2020 07:34:55

Runtime version of toolkit used is 3.24.
Compile-time GTK+ version is 3.24.20.

Offline ctag

  • Single posting newcomer
  • *
  • Posts: 7
Re: Some UI text still very small on HiDPI display
« Reply #5 on: October 25, 2020, 06:28:12 pm »
I grabbed the 20.03 source and built it just to make sure I'm able to, and it appears to have worked. So if I can test any changes, let me know!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12911
    • Travis build status
Re: Some UI text still very small on HiDPI display
« Reply #6 on: October 25, 2020, 08:30:00 pm »
You can try building against wx-trunk/wx-master/wx-main to see if the new version of wx has fixed something.
Probably most of these are wx problems, but I have to spend time to debug them. It is not the top priority currently, so I don't know when I'll do it.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ctag

  • Single posting newcomer
  • *
  • Posts: 7
Re: Some UI text still very small on HiDPI display
« Reply #7 on: October 26, 2020, 05:38:20 am »
Thanks. I understand it's not a priority. In the meantime I learned how to build against wxGTK2, and the UI has readable text for the time being :)

I don't really know what I'm doing here, but I downloaded wxwidget 3.1.4 (https://github.com/wxWidgets/wxWidgets/releases/tag/v3.1.4) and compiled it to /opt/wxwidget-devel/

And then tried to compile codeblocks against it with './configure --with-wx-config=/opt/wxwidget-devel/bin/wx-config --prefix=/opt/cb-wx314'

And got this error:

Quote
main.cpp: In member function ‘bool MainFrame::OnDropFiles(wxCoord, wxCoord, const wxArrayString&)’:
main.cpp:2682:22: error: ‘wxPaintEvent::wxPaintEvent(wxWindowBase*)’ is private within this context
 2682 |         wxPaintEvent e;
      |                      ^
In file included from /opt/wxwidget-devel/include/wx-3.1/wx/wx.h:24,
                 from /opt/wxwidget-devel/include/wx-3.1/wx/wxprec.h:42,
                 from ./sdk_common.h:24,
                 from ./sdk_precomp.h:13,
                 from ./sdk.h:17:
/opt/wxwidget-devel/include/wx-3.1/wx/event.h:2379:14: note: declared private here
 2379 |     explicit wxPaintEvent(wxWindowBase* window = NULL);
      |              ^~~~~~~~~~~~

I'll keep poking around at it when I have some time, but I'm not sure what to make of what I'm seeing right now.

Offline Miguel Gimenez

  • Lives here!
  • ****
  • Posts: 573
Re: Some UI text still very small on HiDPI display
« Reply #8 on: October 26, 2020, 09:14:58 am »
That error was solved removing the event and the related code. I recommend using revision 12213 for your tests.

Offline ctag

  • Single posting newcomer
  • *
  • Posts: 7
Re: Some UI text still very small on HiDPI display
« Reply #9 on: October 26, 2020, 02:03:15 pm »
Thanks Miguel!

I checked out trunk and built with wx-3.1.4 and it appears to have fixed the small text!

I'm going to try to make a fake package for my system to have this version installed until the next release is available.

Quote
Name             : Code::Blocks
Version          : svn-r12220
SDK Version      : 2.4.0
Scintilla Version: 3.7.5
Author           : The Code::Blocks Team
E-mail           : [email protected]
Website          : http://www.codeblocks.org

wxWidgets Library (wxGTK port)
Version 3.1.4 (Unicode: wchar_t, debug level: 1),
compiled at Oct 25 2020 23:19:43

Runtime version of toolkit used is 3.24.
Compile-time GTK+ version is 3.24.23.

Offline Miguel Gimenez

  • Lives here!
  • ****
  • Posts: 573
Re: Some UI text still very small on HiDPI display
« Reply #10 on: October 26, 2020, 02:45:24 pm »
Commit 12214 broke macro expansion, that's why I recommended 12213 and not 12220. You can revert 12214 if you really want 12220.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12911
    • Travis build status
Re: Some UI text still very small on HiDPI display
« Reply #11 on: October 26, 2020, 04:07:17 pm »
I'm going to try to make a fake package for my system to have this version installed until the next release is available.
If the switch to wx3.1.x fixes it, a release of C::B won't help. On linux we use the system provided version of wxgtk.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ctag

  • Single posting newcomer
  • *
  • Posts: 7
Re: Some UI text still very small on HiDPI display
« Reply #12 on: October 26, 2020, 11:11:57 pm »
Thanks Miguel, I had to look up how to change revision in svn. Got 12213 compiled.

Thanks oBFusCATed, I misspoke and meant whenever they're shipping CB compiled with the newer wxGTK for my distro.