hydrogen icon indicating copy to clipboard operation
hydrogen copied to clipboard

Hydrogen on HiDPI

Open tchaffee opened this issue 9 years ago • 39 comments

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?

tchaffee avatar Jul 10 '15 00:07 tchaffee

What Operating System are you using?

elpescado avatar Jul 10 '15 07:07 elpescado

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)

thijz avatar Jul 29 '15 12:07 thijz

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. :-(

metalmike avatar Jul 29 '15 12:07 metalmike

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)

thijz avatar Jul 29 '15 13:07 thijz

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))

metalmike avatar Jul 29 '15 13:07 metalmike

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?

metalmike avatar Jul 29 '15 17:07 metalmike

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?

teamblubee avatar Nov 07 '15 07:11 teamblubee

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.

elpescado avatar Nov 09 '15 10:11 elpescado

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.

waveywhite avatar Jan 02 '17 20:01 waveywhite

the current development code is QT5 based, feel free to try it and let us know how it worked out for you

thijz avatar Jan 02 '17 20:01 thijz

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.

waveywhite avatar Jan 03 '17 09:01 waveywhite

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.

waveywhite avatar Jan 04 '17 18:01 waveywhite

Oh, and it needs a hires icon application. That looks awful on Ubuntu.

waveywhite avatar Jan 04 '17 18:01 waveywhite

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/?

mauser avatar Jan 04 '17 18:01 mauser

Here's a screenshot. screenshot from 2017-01-04 18-50-25

I had Hydrogen installed before but I can't find a hydrogen xpm file. I tried find /usr/share -name \*hydrogen\*xpm

waveywhite avatar Jan 04 '17 18:01 waveywhite

The icon file of the hydrogen package is named "h2-icon.xpm"

mauser avatar Jan 04 '17 19:01 mauser

Nothing there by that name, I tried find /usr/share -name h2\*xpm

waveywhite avatar Jan 04 '17 19:01 waveywhite

On Ubuntu you could do a sudo updatedb && locate h2-icon.xpm

If it's anywhere on the system, that should find it.

mikotoiii avatar Jan 04 '17 19:01 mikotoiii

Hi @mikotoiii . No result on that either. The icon looks very lores, probably 16x16?

lores icon

waveywhite avatar Jan 04 '17 19:01 waveywhite

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 :-/

mauser avatar Jan 04 '17 19:01 mauser

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 avatar Jan 05 '17 07:01 elpescado

@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.

mauser avatar Jan 05 '17 21:01 mauser

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)

elpescado avatar Jan 20 '17 13:01 elpescado

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

waveywhite avatar Jan 20 '17 13:01 waveywhite

PR #487 should fix some of the issues mentioned here: low-res icons and pixelated text on pattern list.

elpescado avatar Mar 10 '17 12:03 elpescado

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?

naclander avatar Dec 17 '17 23:12 naclander

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.

elpescado avatar Dec 26 '17 16:12 elpescado

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.

ghost avatar May 11 '18 14:05 ghost

I'm also having scaling issues on my surface pro 3 & 6 screens. Running windows 10

philloflynn avatar Aug 21 '19 12:08 philloflynn

@philloflynn : which Hydrogen version?

trebmuh avatar Aug 21 '19 15:08 trebmuh