[Request] Font Type and Size for XnView General UI

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, helmut, xnview

quapurna
Posts: 135
Joined: Wed Jun 12, 2013 4:55 pm
Location: earth (the not-flat one)

[Request] Font Type and Size for XnView General UI

Post by quapurna »

Hi, Pierre.

On Windows 10, currently, XnViewMP's general UI uses font type and size set for Windows 10 UI.

It would be useful if we can set font type and size for general UI of XnViewMP.

Can we have that option, please.

Thanks.

NB:
One of the reasons why I like file manager "FreeCommanderXE" is because it has options to set font type and size for specific features and general UI.
I hope XnViewMP has those options as well.
Both applications are already amazing in their own fields.
User avatar
xnview
Author of XnView
Posts: 43894
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: [Request] Font Type and Size for XnView General UI

Post by xnview »

you can change font in theme editing.
In style_sheet.qss (DarkTheme), replace by something like

Code: Select all

QObject { 
font: bold italic large "Times New Roman" ;
font-size: 20px; 
}
Pierre.
curio
Posts: 5
Joined: Thu May 26, 2016 8:26 am

Re: [Request] Font Type and Size for XnView General UI

Post by curio »

xnview wrote:you can change font in theme editing.
In style_sheet.qss (DarkTheme), replace by something like

Code: Select all

QObject { 
font: bold italic large "Times New Roman" ;
font-size: 20px; 
}
This has no effect (with XnView v0.79 x64 on Linux). I've tried various fonts available on my system (and also offered on the image view → information tab in the settings), and also adding the additional styling to the Linux-specific QSS file, but the font remains the same Monospace font all over the UI, which severely impacts usability IMO and wastes space. :(

EDIT: I've found out that by selecting the display option for the dark color scheme, clearing out the loaded QSS in the text areas and pasting this instead, the font does change after all:

Code: Select all

* {
    font-family: "Arial";
}
The Electro Machine
Posts: 37
Joined: Tue Feb 16, 2021 8:59 am

Re: [Request] Font Type and Size for XnView General UI

Post by The Electro Machine »

To those who were trying to understand the steps: just go to

View > Theme > Old Dark

and then close the program and add to file

C:\Users\YOUR-USER-NAME\AppData\Roaming\XnViewMP\style_sheet.qss

something like

Code: Select all

QObject
{
font: "Segoe UI";
font-size: 17px;
}

At least this is how this works in version 1.6.1 x64 installed on Windows 10 Enterprise 20H2 x64