|
a/doc/upplay.txt |
|
b/doc/upplay.txt |
|
... |
|
... |
186 |
== Adjusting the font sizes on high resolution displays
|
186 |
== Adjusting the font sizes on high resolution displays
|
187 |
|
187 |
|
188 |
Most people will find that the font sizes (and buttons/icons) are too small
|
188 |
Most people will find that the font sizes (and buttons/icons) are too small
|
189 |
on high DPI displays.
|
189 |
on high DPI displays.
|
190 |
|
190 |
|
191 |
As of version 1.2.5, the GUI can be partially adjusted by editing two style
|
191 |
As of version 1.2.10, the font sizes can be adjusted from the preferences
|
192 |
sheet files. To adjust the font sizes:
|
192 |
menu ('view->preferences', 'Application Tab', 'Display Scale'). Just choose
|
193 |
|
193 |
a decimal scale factor.
|
194 |
Edit `/usr/share/upplay/cdbrowser/cdbrowser.css`, and uncomment the
|
|
|
195 |
"font-size" directive at the top. Adjust the size to taste, meaning that
|
|
|
196 |
the line should look like the following (with your preferred value in
|
|
|
197 |
place of 30):
|
|
|
198 |
|
|
|
199 |
font-size: 30pt;
|
|
|
200 |
|
|
|
201 |
Edit `/usr/share/upplay/common.css` and adjust the 6 font-size
|
|
|
202 |
directives. An adequate approach will usually be to multiply the sizes by
|
|
|
203 |
some constant factor (e.g.: 2 ...).
|
|
|
204 |
|
|
|
205 |
On Windows, use 'notepad' or an equivalent pure text editor to edit the
|
|
|
206 |
files, which are located in the 'share' and 'share\cdbrowser'
|
|
|
207 |
subdirectories of the top installation directory (e.g: 'C:\Program Files
|
|
|
208 |
(x86)\Upplay\'). You need to specify "all files" when opening the files,
|
|
|
209 |
because notepad does not list '.css' files by default (only '.txt').
|
|
|
210 |
|
|
|
211 |
The adjustment is not perfect for now: the player section does not update
|
|
|
212 |
its size, which means that some titles will be truncated (in the top left
|
|
|
213 |
area), and the icon sizes are unchanged. Arbitrary text truncation may
|
|
|
214 |
happen in places. This will hopefully be improved in a future release.
|
|
|
215 |
|
|
|
216 |
There are other, system-based, approaches described on the following Qt page:
|
|
|
217 |
http://doc.qt.io/qt-5/highdpi.html
|
|
|