Search found 118 matches: qss

Searched query: qss

by xnview
Fri Dec 19, 2025 8:35 am
Forum: MP - General [Français]
Topic: XNVIEW MP customizer l'interface
Replies: 11
Views: 392

Re: XNVIEW MP customizer l'interface


je n'arrive plus a retrouver quelle ligne (dans style shett qss ) regle la couleur de fond du texte sous les vignettes

ce n'est pas dans le style sheet mais au niveau settings
by nicolas-p
Thu Dec 18, 2025 9:02 pm
Forum: MP - General [Français]
Topic: XNVIEW MP customizer l'interface
Replies: 11
Views: 392

Re: XNVIEW MP customizer l'interface

bonsoir,
juste une question:
je n'arrive plus a retrouver quelle ligne (dans style shett qss ) regle la couleur de fond du texte sous les vignettes

je voudrait que la couleur grise sous le texte noir sous les vignettes corresponde au fond gris plus clair

merci!

https://i.postimg.cc/Y9xZr08h/Capture-d-ecran-2025-12-18-215658.png
by user0
Thu Dec 18, 2025 5:01 am
Forum: MP - General [Français]
Topic: XnView MP - Modifier la couleur de fond de l'Explorateur
Replies: 1
Views: 60

Re: XnView MP - Modifier la couleur de fond de l'Explorateur


Mais je n'ai pas trouvé la façon de récupérer (si c'est possible) la feuille de style du Thème intitulé "Par défaut"

just delete everything inside style_sheet.qss and style_sheet_win.qss

however, changing the background color should be easier:
App UI - context menu - add predefined background colors
by kloup
Wed Dec 17, 2025 11:50 pm
Forum: MP - General [Français]
Topic: XnView MP - Modifier la couleur de fond de l'Explorateur
Replies: 1
Views: 60

XnView MP - Modifier la couleur de fond de l'Explorateur

Bonjour,

Je souhaite passer de XnView (que j'utilise depuis plus de 12 ans) à XnView MP.
Les quelques essais que j'ai pu effectuer avec XnView MP m'ont étonné par sa vitesse de mise à jour des vignettes d'un dossier donné, comparé à celle d'XnView Classic.

Sur un message d'un des forums XnView Software datant d'une douzaine d'années, j'ai trouvé comment modifier la couleur par défaut qui est un blanc. Car ce blanc est trop "éclatant" à mes yeux quand il y a qu'une ou deux vignettes sur la dernière ligne de vignettes de l'Explorateur XnView MP.

Il faut ajouter les trois lignes suivantes (à la fin ?) dans le fichier "style_sheet.qss" :

MyThumbListView{
background-color: grey;
}

Mais je n'ai pas trouvé la façon de récupérer (si c'est possible) la feuille de style du Thème intitulé "Par défaut", thème que j'ai personnalisé pour être proche de celui que j'utilisais jusqu'à présent avec XnView Classic.

Je n'ai pu récupérer que la celle du Thème intitulé "Personnalisé".

Est-il possible d'appliquer ces commande sur le thème par défaut (et si oui, comment récupérer la feuille de styles du Thème par défaut ?) ou bien n'est-ce possible que sur le Thème dit "Personnalisé" ?

Un grand merci par avance pour vos réponses.
Cordialement.
by KLE-France
Sun Dec 14, 2025 11:23 am
Forum: MP - General Support
Topic: Tools > Search: "Conditions" box has gone white
Replies: 15
Views: 401

Re: Tools > Search: "Conditions" box has gone white


Right, in your style_sheet.qss, add SearchPanel {
background-color: rgb(60,60,60);
}



Thanks Pierre, that indeed did the trick. Will that stay in place when the program updates, or should I save the snippet?

Encore merci!
by user0
Sun Dec 14, 2025 10:29 am
Forum: MP - General Support
Topic: Tools > Search: "Conditions" box has gone white
Replies: 15
Views: 401

Re: Tools > Search: "Conditions" box has gone white



this is the issue of Custom theme



Using the "custom" theme requires detailed knowledge.

no, it does not require, lol
Custom theme should be correct out of the box
lol
Except Custom theme is NOT correct out of the box. It has this problem as pictured, which makes the dialog very difficult to read.

And editing the .qss does require you to know what you're doing, at least if you want correct results, unless someone is going to spoonfeed you edits like Pierre just did.

do you have trouble reading or understanding?)

let me rephrase it for you - author of this application should update custom theme so it is correct out of the box
by jkm
Sun Dec 14, 2025 10:22 am
Forum: MP - General Support
Topic: Tools > Search: "Conditions" box has gone white
Replies: 15
Views: 401

Re: Tools > Search: "Conditions" box has gone white


this is the issue of Custom theme



Using the "custom" theme requires detailed knowledge.

no, it does not require, lol
Custom theme should be correct out of the box
lol
Except Custom theme is NOT correct out of the box. It has this problem as pictured, which makes the dialog very difficult to read.

And editing the .qss does require you to know what you're doing, at least if you want correct results, unless someone is going to spoonfeed you edits like Pierre just did.
by xnview
Sun Dec 14, 2025 9:39 am
Forum: MP - General Support
Topic: Tools > Search: "Conditions" box has gone white
Replies: 15
Views: 401

Re: Tools > Search: "Conditions" box has gone white

Right, in your style_sheet.qss, add SearchPanel {
background-color: rgb(60,60,60);
}
by Gail
Thu Sep 04, 2025 1:18 am
Forum: MP - General Support
Topic: Hide the XnViewMP title bar because the batch convert button is missing.(Lubuntu)
Replies: 0
Views: 959

Hide the XnViewMP title bar because the batch convert button is missing.(Lubuntu)

rc.xml is OpenBox setting,Path is /home/gail/.config/OpenBox,「gail」is my user name。

style_sheet.qss is XnViewMP UI setting,It is the same folder as xnview.ini。

OpenBox的設定檔rc.xml不能直接在"firmware-updater"後面加"firefox",因為今天要添加XnViewMP,網路沒教學,自己研究了一下。

於是rc.xml底部是這樣:
-->
<application name="firmware-updater">
<decor>no</decor>
</application>
<application class="firefox">
<decor>no</decor>
<maximized>true</maximized>
</application>
<application class="XnViewMP">
<decor>no</decor>
<maximized>true</maximized>
</application>
<application class="*">
<focus>yes</focus>
</application>

毋需重新登入,OpenBox開啟然後關閉即可。

之所以要添加XnViewMP,因為之前style_sheet.qss那樣更改,導致XnViewMP好用的「批次轉換」功能的「轉換」按鈕被擠到螢幕之外,我的螢幕解析度是1600*900,得改成1920*1080才找得到「轉換」按鈕,於是重寫style_sheet.qss

*{font-size:19pt;color:white;background-color:#0f3b02}
QStatusBar{max-height:38px;min-height:38px}
QWidget{max-height:900px;max-width:1600px}

但如此一來,狀態列只剩一半,「轉換」按鈕也只剩一半,找了半小時,終於找到原因——標題列~~

好吧!XnViewMP也隱藏標題列吧!反正ESC就可以全部關閉。

所以style_sheet.qss和rc.xml都更動了。

XnViewMP隱藏標題列後,狀態列和「轉換」按鈕都恢復正常了🎇

PS.XnViewMP若背景全黑,按鈕邊框很難察覺到,所以背景色改為深綠色#0f3b02,此方法雖然批次轉換的按鈕回來了,但設定區的「確定」按鈕卻被擠到螢幕外,只能暫時改成1920*1080才找得到~~~~

Windows有一套好用軟體ImageToPDForXPS,單純就是圖片打包成PDF而已;Lubuntu也有一套類似的叫img2pdf,但沒圖形界面,只能終端機下指令 img2pdf *.png -o output.pdf --pagesize 210mmx297mm,後來研究了一下,XnViewMP打包PNG會失敗,要先把PNG轉成JPG,打包成PDF就很容易成功,有可能是圖片透明度的關係。
by Gail
Tue Aug 26, 2025 12:35 pm
Forum: MP - General Support
Topic: Change XnViewMP UI Font Size in Lubuntu
Replies: 0
Views: 967

Change XnViewMP UI Font Size in Lubuntu

找了GTK、找了QT、找了OpenBox,找了SDDM,找不到XnView MP的UI字型放大的設定~~~

雖然網路上有人有教學,但那是舊版,新版要從「設定」,語系下的「預設」改為「自訂」,接著會跳出style_sheet.qss的框框。

style_sheet.qss這個檔案不在UI資料夾,而是和xnview.ini、xnview.sh同一個目錄。也就是說,UI資料夾的qss檔刪除是沒關係的。

研究了一下子,黑底白字並且大字體而且狀態列也清楚的,我參照他人的語法寫了自己的style_sheet.qss語法:

QWidget{font-size:19pt;color:white;background-color:black}
QTabBar{font-size:19pt;color:white;background-color:black}
MyTabBar{font-size:19pt;color:white;background-color:black}
QMenu,QMenuBar{ font-size:19pt;color:white;background-color:black}
QListView{font-size:19pt;color:white;background-color:black}
QTreeView{font-size:19pt;color:white;background-color:black}
QDockWidget > QTreeView{ font-size:19pt;color:white;background-color:black}
QStatusBar{max-height:38px;min-height:38px}

字型大小一律設19pt,狀態列高度設38px,可自行更改。

幸好字太小的問題終於解決,不然差點要改成Gwenview了~~

網頁樣式叫CSS,QT樣式叫QSS,同樣的方法或許也可以解決其他Appimage字太小的問題,例如繪圖軟體Krita……

https://attach.mobile01.com/attach/202508/mobile01-eacd1266ab256cee0d4ad06b8c550524.png

https://attach.mobile01.com/attach/202508/mobile01-54cc343067237798a7d415d5b9d78373.png
by Xn User
Thu Jul 24, 2025 6:08 pm
Forum: MP - General Support
Topic: Theme bug with XnView 1.92
Replies: 0
Views: 284

Theme bug with XnView 1.92

If do this :
in folder c:\Program Files\XnViewMP place this files
and next press F11 for view settings or manage database , so in final will uncorrect theme , before in version 1.80 and same this bug was absent

The cause of the manifestation of the error :
If in c:\Users\Username\AppData\Roaming\XnViewMP\
absent files :

style_sheet.qss
style_sheet_win.qss
xnview.ini

but this files available in folder with XnViewMP , so XnView MP will generate this files in

c:\Users\Username\AppData\Roaming\XnViewMP\

and because theme work not correctly

I offer do so , what if XnView detect files :

xnview.ini
style_sheet.qss
style_sheet_win.qss

in folder where install program , so use only this files and not will try write or use files in )

c:\Users\Username\AppData\Roaming\XnViewMP\
by Daimonicon
Tue Jun 24, 2025 1:01 pm
Forum: MP - General Support
Topic: XnViewMP category groups font size
Replies: 6
Views: 558

Re: XnViewMP category groups font size


currently there is some problem with non integer font scaling


Yes, I've heard that before - I think the whole operating system is an annoyance. So there's no option via the settings and because of these problems you don't plan to add this option I guess?

I almost managed to do it via the theme files (style_sheet.qss etc.). Could you maybe think about adding comments to a yxz.qss as an example that you can learn what is what or maybe a tutorial for this ? A suitable naming would also be helpful (style_sheet_default.qss, style_sheet_dark.qss, style_sheet_bright.qss).

In my case I urgently need the theme “hell” *de - presumably bright/light in english. Because this theme had the sharpest font display which is already helpful without changing the font size.
by Daimonicon
Thu Jun 19, 2025 7:56 am
Forum: MP - General Support
Topic: XnViewMP category groups font size
Replies: 6
Views: 558

XnViewMP category groups font size

Hello,

Is there a way to adjust the font size. I use the theme ‘hell’ (german) should be “hell” or ‘light’ in english. I can't get through this confusing mess regarding the stylexx~.qss.
by Primus
Sun Mar 23, 2025 4:48 pm
Forum: MP - General Support
Topic: Finding a color line in QSS
Replies: 0
Views: 296

Finding a color line in QSS

Hi. New to this forum, I've been using XnViewMp for years (Linux Mint) without any problems but I'm having a problem with the interface colors. I have activated the dark theme and I would like to know how to change colors #2 (25, 25, 25) to have color #1 (54, 54, 54).


copie.png


I've tried in the style sheet but can't get anywhere.

Thanks in advance.
by HanVroon
Wed Feb 19, 2025 9:31 am
Forum: MP - Suggestions
Topic: Qt Stylesheet Snippet Repository
Replies: 18
Views: 59736

Re: Qt Stylesheet Snippet Repository

What I have been missing in all the topics of this forum (or I might have overlooked something:-) is how we can use a custom theme.
What is this C:\Program Files\XnViewMP\UI\style_sheet.qss file doing and when does changing that file have effect.
Now that I found out, I create this post for anyone who is in the dark about how it works, like me.

Please let me know (Pierre?) if the below text is nonsense, then I will remove the post.

There are four default themes that can be choosen, Default, Light, Dark and Black.
The settings of those themes are hard coded, there are no stylesheets provided with XnViewMP for them. Perhaps they are from Qt itself.

For customisation there is the Old Dark theme, the fifth option in Browser, menu View, Theme.
If that theme is choosen, two files are copied from C:\Program Files\XnViewMP\UI to your profile: style_sheet.qss and style_sheet_win.qss.
Every setting in those two files override the "Default" theme, the other three themes (Light, Dark, Black) cannot be modified that way, they stay hard coded.
The file style_sheet_win.qss only has a setting for combobox, apparently because this setting should only be applied to the Windows version.

The Default theme is white, so that's why you get a white theme if your style_sheet.qss only has a few settings.
Looking at the modified date of the Old Dark stylesheet (style_sheet.qss), ik looks like Pierre updates this file with new options if needed.
So you could use this theme file as a refference how to address the parts of the GUI that you want to change.

Hope this helps.
If all I wrote is correct, it might be good to add these lines to the top of this topic as a reference.