Larger font for the MP GUI

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, helmut, xnview

StreifLicht
Posts: 14
Joined: Thu Jan 13, 2022 10:59 pm

Larger font for the MP GUI

Post by StreifLicht »

I found that for a larger font of the GUI I have to modify the theme (style.css). Is there a info available how to do this? It seems that my eyes are too old for the standard font size... ;-)
Or perhaps there is a modified style sheet already available?
Please help...

BR Andreas
User avatar
xnview
Author of XnView
Posts: 44470
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Larger font for the MP GUI

Post by xnview »

by default, MP use same font size as windows
Pierre.
StreifLicht
Posts: 14
Joined: Thu Jan 13, 2022 10:59 pm

Re: Larger font for the MP GUI

Post by StreifLicht »

by default, MP use same font size as windows
Can I force it to use a larger font?
User avatar
xnview
Author of XnView
Posts: 44470
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Larger font for the MP GUI

Post by xnview »

perhaps with a .css
Pierre.
StreifLicht
Posts: 14
Joined: Thu Jan 13, 2022 10:59 pm

Re: Larger font for the MP GUI

Post by StreifLicht »

Can I modify an existing one or do I have to create a new one?
For me it would be very important, since XnView is the BEST software I found for my needs. Only the small font is very tiring for me.
StreifLicht
Posts: 14
Joined: Thu Jan 13, 2022 10:59 pm

Re: Larger font for the MP GUI

Post by StreifLicht »

I have used the Blender-UI-Tuning.qss from miki for my first try to become larger fonts in the UI.
I clicked >xView >Theme >Old Dark and a window popped up.
I entered in style_sheet.qss the following:

Code: Select all

/*******************************************************************************
** CUSTOM FONT SIZES
*******************************************************************************/
/* Default for all widgets */
QWidget{ font-size: 11pt; }

/* Tabs */
QTabBar{ font-size: 11pt; }
MyTabBar{ font-size: 12pt; }

/* Context Menu & Menu Bar */
QMenu, QMenuBar{ font-size: 12pt; }

/* List & Tree Views */
QListView{ font-size: 12pt; }
QTreeView{ font-size: 12pt; }

/* Folders Tree */
QDockWidget > QTreeView{ font-size: 12pt; }
and I cleared style_sheet_win.qss.

NOW the fonts are larger :-) I am almost at the goal :-)
In addition, I would like to have also a larger font for "thumbnails and labels".
What do I have to modify or add for that?

Best Regards, Andreas
StreifLicht
Posts: 14
Joined: Thu Jan 13, 2022 10:59 pm

Re: Larger font for the MP GUI

Post by StreifLicht »

In addition, I would like to have also a larger font for "thumbnails and labels".
What do I have to modify or add for that?
Ok. Have it: viewtopic.php?t=40736
User avatar
helmut
Posts: 8705
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Larger font for the MP GUI

Post by helmut »

Good that you've found a solution all alone, Andreas, and thank you for reporting here. This will help other users that have the same issue. :)
ckit
XnThusiast
Posts: 2577
Joined: Tue Feb 17, 2004 1:11 am
Location: QLD, Australia

Re: Larger font for the MP GUI

Post by ckit »

StreifLicht wrote: Thu Jan 27, 2022 9:15 pm I have used the Blender-UI-Tuning.qss from miki for my first try to become larger fonts in the UI.
I clicked >xView >Theme >Old Dark and a window popped up.
I entered in style_sheet.qss the following:

Code: Select all

/*******************************************************************************
** CUSTOM FONT SIZES
*******************************************************************************/
/* Default for all widgets */
QWidget{ font-size: 11pt; }

/* Tabs */
QTabBar{ font-size: 11pt; }
MyTabBar{ font-size: 12pt; }

/* Context Menu & Menu Bar */
QMenu, QMenuBar{ font-size: 12pt; }

/* List & Tree Views */
QListView{ font-size: 12pt; }
QTreeView{ font-size: 12pt; }

/* Folders Tree */
QDockWidget > QTreeView{ font-size: 12pt; }
and I cleared style_sheet_win.qss.

NOW the fonts are larger :-) I am almost at the goal :-)
In addition, I would like to have also a larger font for "thumbnails and labels".
What do I have to modify or add for that?

Best Regards, Andreas
How do I do this and still have a Dark theme?
Your work above is BRILLIANT!!!
AMD Ryzen 3 3300X 3.8Ghz, 16Gb DDR4, RX6600XT with Dell U2520D at 2560x1440@60Hz scaling 125%
Windows 11 Pro x64 23H2, Listary Pro, PowerToys and Wintoys