txAdmin icon indicating copy to clipboard operation
txAdmin copied to clipboard

Rescale UI Elements for 4K Displays

Open frvgs opened this issue 1 year ago • 7 comments

I'm used to playing on 4k screens and the Menu UI was almost unreadable

as described in this issue I used media queries targeting displays with a min-height of 2160px to rescale the Menu

Tested UI elements on both standard and 4K resolutions and verified that UI adjustments are applied only on displays with a height of 2160px or greater.

before before

after after

frvgs avatar Sep 06 '23 10:09 frvgs

That's awesome, thanks.
@TasoOneAsia mind reviewing it?

tabarra avatar Sep 06 '23 12:09 tabarra

image

iSentrie avatar Sep 06 '23 17:09 iSentrie

mb, those weren't the right screenshots, here's what it looks like before and after the rescale on 4k displays :

before before after rescale after2

frvgs avatar Sep 06 '23 20:09 frvgs

a bit weird that font size differs image should be image

iSentrie avatar Sep 06 '23 20:09 iSentrie

a bit weird that font size differs image should be image

Thank you for your feedback, it's fixed

textfix

frvgs avatar Sep 06 '23 20:09 frvgs

Hey @frvgs, thanks for the PR.
With txAdmin v7 and new UI, there is a chance that soon I'll migrate the ingame UI to use the same library and visual styles of the web UI, and with that, everything will be measured in REM units, solving this issue properly.

As of now, I'm not sure if this will be done, or when this will be done, so I'll leave this PR open in case I decide to merge it instead.

tabarra avatar Jan 11 '24 11:01 tabarra

Hey @frvgs, thanks for the PR. With txAdmin v7 and new UI, there is a chance that soon I'll migrate the ingame UI to use the same library and visual styles of the web UI, and with that, everything will be measured in REM units, solving this issue properly.

As of now, I'm not sure if this will be done, or when this will be done, so I'll leave this PR open in case I decide to merge it instead.

Yep ^^ This should be one of the better solutions. To turn all px -> rem, and then just update the rem unit at the head object. Way less hacky than this, and more uniform!

I could perhaps help out with this if I have some time over

Z3rio avatar Jul 10 '24 23:07 Z3rio