Changing UI font size of menu bar / layer text independently?

Krita 5.2.9 (installed) and 5.3 alpha (portable) on Windows 11.

Is it possible to change the font size of the menu bar independently of the font size of the layers?

The “Thumbnail size” slider just changes the thumbnails but not the UI font size.

The “Windows Settings” change the UI font size of everything. It is not possible to handle the layer font independently.

So far, I was not able to find a way. Already thought to do it the other way around adjust the font-size in the Layers-Docker via ‘‘Settings’’ >> ‘‘Configure Krita’’ >> ‘‘General’’ in the tab ‘‘Window’’ using the setting ‘‘Use Custom Interface Font’’ and then manipulate the font-size in the toolbars via script (since their handle is available), because I couldn’t find the setting/switch which will handle the font size in the Layers-Docker.

But I’m not a programmer, just a script juggler with almost no knowledge of Qt and Python. Maybe @Akir, @freyalupen, @KnowZero, @Lynx3d have ideas in which direction it could go, because maybe this script by @AkiR can be customized for font size - but that’s way beyond my capabilities.

Michelist

Easy way to change menu bar font + many other things in Krita is through freyalupen`s style-sheet-loader-extension just setup the plugin and give it your style sheet for example my_style.qss

my_style.qss

QMenuBar {
    color: rgb(100%, 0%, 80%);
    font: italic 20pt;
    font-family: "Comic Sans MS";
}

Ps: sorry for silly example, but I hope that it helps you in editing UI that you like.
Pss: there is also way to edit menu bar font via python scripts, but style sheet is easiest.

/AkiR

1 Like

Thank you both. I’ll have a look into the style sheet concept.

Is there a way to see the actual style sheet Krita is using?
So to say as a base for studying?

Krita does not use style sheet by default. Style is defined by QFusionStyle that is really deep and old rabbit hole. So you can start defining your own style sheet from plank slate.

Some resources that can help with style sheets

Qt style sheet reference

collection of style sheets at git

ps: also simple css examples can work with qss (languages are sibling)

/AkiR

2 Likes

Many thanks @AkiR,

I already had a look into the reference, but I like the example collection as well.

Is there a way to set the font globally in a style sheet?

In the QT reference all those widgets are listet, but it is difficult to understand which of those widgets is which element in the Krita GUI.

E.g. the layer text - I don’t know which widget that is.

Partly answered :slight_smile:

One challenge for me was: “what is the name of a Krita GUI widget?”
I need the name, to find it in the QT reference and google searches.

Answer:
There is a plugin that is made for making plugins. This plugin allows for shift clicking a widget in the Krita GUI and shows you the widget’s name and alot of its properties.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.