Code::Blocks Forums
User forums => Help => Topic started by: ctag 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 (https://wiki.archlinux.org/index.php/User:Ctag/HiDPI#Xft_/_Xresources). The editor tab titles and project tree are too small.
Is there a configuration option to increase the size of those text items?
-
What is the wxGTK you're using and what toolkit are you using (gtk2 or gtk3)?
-
I'm not super sure how to check, but the package for codeblocks (https://www.archlinux.org/packages/community/x86_64/codeblocks/) that I'm using lists wxGTK 3.0.5.1 (https://www.archlinux.org/packages/extra/x86_64/wxgtk3/) and GTK3 as dependencies.
-
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.
-
Thanks oBFusCATed.
Name : Code::Blocks
Version : 20.03-r11997
SDK Version : 2.0.0
Scintilla Version: 3.7.5
Author : The Code::Blocks Team
E-mail : info@codeblocks.org
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.
-
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!
-
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.
-
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:
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.
-
That error was solved removing the event and the related code. I recommend using revision 12213 for your tests.
-
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.
Name : Code::Blocks
Version : svn-r12220
SDK Version : 2.4.0
Scintilla Version: 3.7.5
Author : The Code::Blocks Team
E-mail : info@codeblocks.org
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.
-
Commit 12214 broke macro expansion, that's why I recommended 12213 and not 12220. You can revert 12214 if you really want 12220.
-
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.
-
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.