hydrogen
hydrogen copied to clipboard
Hydrogen on HiDPI
I just bought a new laptop with high DPI (4k?) and Hydrogen is pretty much unusable because the controls are all too small. Any ideas?
What Operating System are you using?
the Hydrogen gui does not scale ... at all ... i'm afraid almost all buttons and graphics are bitmaps and these dont scale, so i'm afraid that it is very unlikely that there will ever be an option that allows you to make the controls bigger (unless we redo the complete gui)
I' ve tried to use Hydrogen on an Rasppian PI with an 7" display (800x480 resolution) and the main window and also other windows don't fit on the screen. :-(
have you tried tabbed mode ? tools > preferences > appearance > default interface layout > tabbed mode (restart hydrogen after you change this setting) this was made for small displays (netbooks)
No i havn't. I will do this and report the result. Thanks for that information. I can't find it in the appearance settings :-( (Tested with :Windows installer (0.9.6-alpha1 snapshot of February 2011))
ok - the windows build was too old :-) for linux the tab view fixed most of my problems.
The Instruments -> Import Library window don't fit. Is it possible to make that also tabbed?
sorry to bump an old issue but @thijz said the UI doesn't scale at all unless they decide to redo the UI.
Could it be redone with something like QT5?
Qt5 should help, as it allows for more flexible UI scaling. Of course pixmap-based UI elements would look blocky unless someone provides high resolution assets.
I tried to build Hydrogen with Qt5, but it's not straightforward as it seemed to me.
Blocky UI elements would at least be a usable milestone on the path to HiDPI perfection. Is QT5 on the development roadmap? HiDPI looks set to get more common on hi-end laptops.
the current development code is QT5 based, feel free to try it and let us know how it worked out for you
Thanks, @thijz, good news! I'll try to find time to take a look, I've an XPS15 with 240dpi so it should give a decent test.
A huge improvement, thank you. The UI is very usable
Graphics which are obviously fuzzy (in the order I noticed them):
- text for patterns (Pattern 1, Pattern 2, etc)
- Small UI text
- Button graphics
- Control knobs.
Oh, and it needs a hires icon application. That looks awful on Ubuntu.
Could you provide an screenshot of hydrogen on your device? This would help to get an idea of how the text looks.
About the icon: have a look at #417 . Is it possible that there is an hydrogen xpm file in /usr/share/pixmaps/?
Here's a screenshot.
I had Hydrogen installed before but I can't find a hydrogen xpm file. I tried find /usr/share -name \*hydrogen\*xpm
The icon file of the hydrogen package is named "h2-icon.xpm"
Nothing there by that name, I tried find /usr/share -name h2\*xpm
On Ubuntu you could do a sudo updatedb && locate h2-icon.xpm
If it's anywhere on the system, that should find it.
Hi @mikotoiii . No result on that either. The icon looks very lores, probably 16x16?
Ok, i suppose i can't help then.. hydrogen installs itself the file "h2-icon.svg
" which should scale fine. I can't say where your logo comes from and how your desktop environment picks that icon :-/
I think it would be a good idea to install icon as prerendered png pixmaps in several sizes (like 32x32, 48x48, 256x256), as I'm not sure how svg icons are supported across desktop environments.
https://developer.gnome.org/integration-guide/stable/icons.html.en
@elpescado : Yes, that would be possible.
About the location of the icons: It irritates me that your link says that gnome looks in /usr/share/icons/
, but https://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html says:
By default, apps should look in $HOME/.icons (for backwards compatibility), in $XDG_DATA_DIRS/icons and in /usr/share/pixmaps (in that order)
But maybe i'm understanding the gnome information wrong :-/ At the moment we're just putting an svg image to /usr/share/pixmaps
.
I was just randomly browsing Hydrogen sources and found something that may be relevant:
setWindowIcon( QPixmap( Skin::getImagePath() + "/icon16.png" ) );
(hydrogen/src/gui/src/MainForm.cpp:98)
This sounds like what I was seeing. I was running the application from the source and there were no Hydrogen resources in /usr/share
and no .desktop
file. It makes sense it was using a window icon
PR #487 should fix some of the issues mentioned here: low-res icons and pixelated text on pattern list.
I'm using Hydrogen 0.9.7 on Ubutnu Studio 17.10 and the buttons are still too small to be usable ( this is running on a 2880 x 1800 screen ). I can't imagine how hard someone would have to squint on a 4k display. I can increase the font size, but the buttons remain the same size. Is there anything I can do to increase the buttons size, and make the usability better?
Unfortunately, HiDPI support hasn't made its way to 0.9.7 release. You have to either wait for next release, 1.0.0, or build development version yourself.
TIP: on Linux, launch hydrogen (1.x.x+, with the above patch by @elpescado) with QT_AUTO_SCREEN_SCALE_FACTOR
set to 1:
> QT_AUTO_SCREEN_SCALE_FACTOR=1 hydrogen
Without: https://i.imgur.com/mmoy5E8.png With: https://i.imgur.com/WIBApnJ.png
It is better than QT_SCALE_FACTOR
since the latter will also scale the system fonts, which don't need to be scaled.
As can be seen, some buttons are displaced (like the ones on the rack in the right corner), but that's better than having the tiny ones instead.
I'm also having scaling issues on my surface pro 3 & 6 screens. Running windows 10
@philloflynn : which Hydrogen version?