ovilab / atomify

Atomify - a realtime LAMMPS visualizer
GNU General Public License v3.0
151 stars 21 forks source link

Left menu icons should get smaller if window height is smaller than sum of heights #277

Closed andeplane closed 7 years ago

andeplane commented 7 years ago

The icons in the left menu (View, Analyze, Edit etc) will overlap if window height gets too small. On my Mac (Macbook Pro Retina) with default resolution, this happens even with full screen (see attached screenshot), and especially if the height is smaller.

A possible solution is to make icons smaller when this happens. Add a scale factor or something.

screenshot 2017-01-15 18 46 22 screenshot 2017-01-15 18 46 25
Foxei commented 7 years ago

I have found a simple temporary fix which allows to use atomify lammps on laptops at least in full-screen mode. Go to the file /desktop/MainDesktop.qml and edit following values:

Now the view menu on the left side will move upwards and everything will be a little smaller. This allows you to use the menu at low resolutions. However, it does not scale and is thus not a perfect solution for this issue.

andeplane commented 7 years ago

That's nice. We do want to publish this quite soon and your fix might be enough for a first version. I'll try it and see if we should do that and move this issue to 2.1

dragly commented 7 years ago

I'll rewrite the code for the left menu once I get the chance and make it scale properly no matter the screen resolution. It's a bit tricky, but definitely doable.