RPTools / maptool

Virtual Tabletop for playing roleplaying games with remote players or face to face.
http://rptools.net
GNU Affero General Public License v3.0
800 stars 261 forks source link

Adjustable UI font size #316

Closed ghost closed 4 years ago

ghost commented 5 years ago

@chanaldebol commented on Sep 29, 2018, 6:56 PM UTC:

I have a high-resolution monitor, and the font size of some UI elements (title bars, button labels, etc.) render too small for me to read without squinting. I set the chat text size to be readable, but I wish there was also an option to increase the size of UI text.

Adding a UI size/scaling selector (even if it only has coarse "small", "medium", and "large" settings) to the accessibility preferences would allow more flexibility than scaling the entire computer's UI.

I've tried using Windows 10's scaling feature, but the results are sub-optimal; It applies the scaling system-wide, so things like the task bar and the title bars of other applications windows balloon to take up more screen real estate that I'd rather devote to content and my GM's beautifully-constructed maps.

This issue was moved by JamzTheMan from JamzTheMan/MapTool#101.

ghost commented 5 years ago

@Phergus commented on Sep 29, 2018, 8:07 PM UTC:

As a workaround, you can use the TinyLAF control panel to create a new default.theme with larger fonts. That's what I do an my high DPI laptop screen and my desktop screen. But I am also using the Nerps version that is just the jar file. I'm not sure where you would have to stick the theme file so that the regular Nerps executable release might find it.

ghost commented 5 years ago

@JamzTheMan commented on Sep 29, 2018, 8:23 PM UTC:

I'm going to mark this as a duplicate as it's going to be covered under #37 which is currently underway.

ghost commented 5 years ago

@Phergus commented on Sep 29, 2018, 8:25 PM UTC:

Is there somewhere that a theme file could be stuck so it could be loaded by the executable Nerps releases?

ghost commented 5 years ago

@JamzTheMan commented on Sep 29, 2018, 8:27 PM UTC:

Phergus Do you mean currently using TinyLaf or in the future under new UI?

ghost commented 5 years ago

@Phergus commented on Sep 29, 2018, 8:29 PM UTC:

Using TinyLaF to create a theme as a workaround for the current releases until the FX shift is made. On my stupidly high resolution laptop the Windows OS scaling just doesn't cut it. He's probably in the same boat. Just changing a few font sizes in a theme makes it usable.

ghost commented 5 years ago

@JamzTheMan commented on Sep 29, 2018, 8:30 PM UTC:

I could do that if you have the TinyLaF file, want to attach it to this issue?

ghost commented 5 years ago

@JamzTheMan commented on Sep 29, 2018, 8:32 PM UTC:

I'll reopen and we can test with the workaround until #37 is complete.

ghost commented 5 years ago

@Phergus commented on Sep 29, 2018, 8:38 PM UTC:

Here is the one I use on my desktop. For me, I'm running the jar file version so I just throw it in the same directory.

DefaultTheme.zip

ghost commented 5 years ago

@n2ash commented on Sep 30, 2018, 1:24 AM UTC:

There are also a handful of hard-coded font faces and sizes in multiple places that are unaffected by LAF or preference settings:

../client/ui/statsheet/StatSheet.java ../client/ui/statsheet/blue/statsheet.properties ../client/ui/statsheet/lightgray/statsheet.properties ../client/ui/minisheet/MiniSheet.java ../client/ui/assetpanel/AssetPanel.java ../client/tool/drawing/DrawnTextTool.java (notably this one also seems to produce weird hinting and artifacting issues at times)

ghost commented 5 years ago

@JamzTheMan commented on Sep 30, 2018, 1:38 AM UTC:

To be clear, I'm not going to adjust those other places as its all getting thrown away as the UI is being redone. If someone else wants to submit a PR within the next month or two with all those changes, I'd probably accept that as well if they are solid.

I will entertain supplying extra theme(s) for tiny laf if possible but that's it for issue otherwise.

ghost commented 5 years ago

@n2ash commented on Sep 30, 2018, 5:14 AM UTC:

Right, more noting where they are for any accessibility/resolution-related adjustments prior to that, as unlike HTMLPane or MessagePanel they can't be overwritten with inline formatting and don't respond to LAF.

ghost commented 5 years ago

@n2ash commented on Sep 30, 2018, 5:16 AM UTC:

As for .theme location on the installed executable release: always to the same folder as the .jar, so far as I know. In my case it's %AppData%\Local\Maptool\app, which I believe is default behavior.

ghost commented 5 years ago

@Phergus commented on Sep 30, 2018, 5:31 PM UTC:

n2ash You could drop that Theme file I uploaded above to confirm it affects your install. I don't use the installed version.

Phergus commented 4 years ago

TinyLaF searches for themes in the users home directory and in the working directory. The working directory is the app directory of the install location. This directory holds the MapTool jar file.

A theme file named Default.theme will be loaded from either location.

User Home under Windows: c:\users\username\

Working directory for default installation under Windows c:\users\username\appdata\local\MapTool\app

A zip file with several of the TinyLaF base themes and a few tweaked for larger fonts.

ThemePack_TinyLaF.zip

Phergus commented 4 years ago

Deferred till MT 2.0.