Ubuntu 18 and HiDPI

Deploying to Linux? Get penguinated here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Cyberqat
Posts: 24
Joined: Thu Jun 10, 2010 5:38 pm

Ubuntu 18 and HiDPI

Post by Cyberqat » Thu May 09, 2019 1:46 pm

Hi,

I have LC Indy and a new HiDPI Ubuntu 18 laptop. Livecode spins up too tiny to be usable and I haven't found a way to scale it. I already have the desktop scaled to 200% but that doesnt seem to effect LC

Are there any known solutions? Any settings for scaling in LC itself?

Thanks

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Ubuntu 18 and HiDPI

Post by bogs » Thu May 09, 2019 2:04 pm

Well, I'm sure scaleFactor would do what your looking for, i.e. scale up the stack, but you might see some funny results. From the message box, put the mouse over the ide stack you want to enlarge, and type in -

Code: Select all

set the scaleFactor of the mouseStack to 1.1 // start low on the second number...
Here are 2 screen shots, before using scale factor, and after:
Selection_001.png
Scalefactor 1...
Selection_002.png
Scalefactor 1.1...
Hopefully, someone else has a better answer for you. I have seen this come up a few times in older versions. for instance, 2.x always seems tiny, but 3-7 always seem the right size. 8 and up seem too big almost.
Image

Cyberqat
Posts: 24
Joined: Thu Jun 10, 2010 5:38 pm

Re: Ubuntu 18 and HiDPI

Post by Cyberqat » Thu May 09, 2019 2:10 pm

The issue is that the entire interface is unusable, not just the stack:
Selection_027.png

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Ubuntu 18 and HiDPI

Post by bogs » Thu May 09, 2019 3:09 pm

Maybe I am not getting it, your initial post said the interface was too small, and that you wanted to scale it up. What I posted will certainly do that, for every part of the ide you move your mouse to and run it. Better yet (from my point of view) it is not a permanent change, when you close the IDE it will open as it normally would without being scaled.

I am not saying:
* this is the best way to do it
* it is right that you should have to do it
* that doing it this way will not introduce other issues (text cutoff, for example).

But if the size of it is the issue most affecting it's usability, this will certainly make the stacks you can't see clearly large enough to see. I certainly have other versions that come up tiny, so I am at least aware of the problems your presented with.

As I said in the first response, though, hopefully someone else has a better solution.
Image

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Ubuntu 18 and HiDPI

Post by FourthWorld » Thu May 09, 2019 3:30 pm

The developer should not have to write scripts to rescale every window. LC does this for us in the engine on Mac and Windows, and it should do the same on Linux

This should become a bug report, if it isn't already.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Ubuntu 18 and HiDPI

Post by bogs » Thu May 09, 2019 4:02 pm

FourthWorld wrote:
Thu May 09, 2019 3:30 pm
This should become a bug report, if it isn't already.
I'd certainly agree with that, have you reported it yet, Cyberqat? If not, you might want to add it or possibly post it as an addendum to this report[15364], which is the closest I see to your issue.
Image

Cyberqat
Posts: 24
Joined: Thu Jun 10, 2010 5:38 pm

Re: Ubuntu 18 and HiDPI

Post by Cyberqat » Thu May 09, 2019 7:54 pm

I added a note to the report.

The above suggestions ALMOST works

The current problem is that my menu bar goes away when I open the message window so I cant enlarge the menu bar :(

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Ubuntu 18 and HiDPI

Post by bogs » Thu May 09, 2019 9:56 pm

Cyberqat wrote:
Thu May 09, 2019 7:54 pm
The current problem is that my menu bar goes away when I open the message window so I cant enlarge the menu bar
When you say it "goes away", do you mean it crashes, or simply moves off screen? IF it is the latter, you can in the message box type :

Code: Select all

set the topLeft of stack revMenubar" to {your preference, 100,100, for instance}
...which will put it 100 pixels down and to the right of the corner of the screen.
Image

Cyberqat
Posts: 24
Joined: Thu Jun 10, 2010 5:38 pm

Re: Ubuntu 18 and HiDPI

Post by Cyberqat » Fri May 10, 2019 12:03 am

So, that didint help.

Its not crashed becasue it comes back when I close the message box.
Its more like its hidden or disabled.

It does the same thing at the start when the tutorial box is on screen. Its like it thinks it can only have the palette and one other frame visible on screen at one time.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Ubuntu 18 and HiDPI

Post by FourthWorld » Fri May 10, 2019 12:14 am

Is that the standard desktop environment that ships with Ubuntu, or are you using something else?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Ubuntu 18 and HiDPI

Post by bogs » Fri May 10, 2019 12:18 pm

I actually think what he is describing is the backdrop.

*If* you are talking about the backdrop, when the menubar is on screen, go to the view menu and uncheck "Backdrop".

If this is the backdrop, I sure wish they would put that back as a "not by default" option, or at least find a way to keep it behind everything else so it really is a "back drop" and not a "constantly in the way nuisance".
Image

Cyberqat
Posts: 24
Joined: Thu Jun 10, 2010 5:38 pm

Re: Ubuntu 18 and HiDPI

Post by Cyberqat » Fri May 10, 2019 3:53 pm

I bet thats it because it also blocks out other apps when it runs!

Thanks!

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Ubuntu 18 and HiDPI

Post by bogs » Fri May 10, 2019 4:06 pm

Hope it is it, happy I could help.
Image

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Ubuntu 18 and HiDPI

Post by FourthWorld » Fri May 10, 2019 11:32 pm

FWIW I just submitted an enhancement request to have the backdrop turned OFF by default on Linux until its behavior flagged in two other reports is resolved:
https://quality.livecode.com/show_bug.cgi?id=22050
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Ubuntu 18 and HiDPI

Post by bogs » Sat May 11, 2019 10:23 am

I added a comment to a similar posting I came across here, but really it seems like there are several bug reports that are related to this issue, such as here, and here, and even here, but I'm sure I must have missed a few.

The one for mac spaces doesn't seem to be an offshoot of this though.
https://quality.livecode.com/show_bug.cgi?id=21201 <-- mac related one
Image

Post Reply

Return to “Linux”