This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[Krita 4.0] How to Customize the Touch Docker?

Tags: None
(comma "," separated)
Jugbot
Registered Member
Posts
4
Karma
0
I have been using Tablet pro for a while now and have my own setup that I have grown used to...

Now that I have gotten Krita 4.0 I would like to use the built-in touch controls for consistency. Though I can't find out how to customize it? I would assume there would be an xmlgui file that I could overwrite... :'(
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
Good news: it _is_ possible. Bad news: you will need to dig deep. You can add an entry in the kritarc file that is callled "touchdockermapping". It consists of a list of 8 action names separated by a comma. Those actions will be used for eight of the buttons in the touch strip. You can find the action names in the various krita.action files in the krita source tree... See https://phabricator.kde.org/source/krita/

I wanted to make a gui to customize this, or even make it possible to have a custom qml-based layout, but alas, didn't have time for that.
Jugbot
Registered Member
Posts
4
Karma
0
Ok, so I added this in C:\Users\Jugbot\AppData\Local\kritarc near the bottom just to test:
Code: Select all
[krita][DockWidget touchdockermapping]
remove_layer, move_layer_up

But the file keeps getting overwritten? I'm guessing because the format is wrong...
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
Hm, or there's a bug where the current settings aren't written back on shutting Krita down.
User avatar
zerofox
Registered Member
Posts
1
Karma
0
Hello,

I am new, so I realize I could be way off base, but wouldn't it be good to have left middle and right mouse click buttons on the touch docker?

In my first attempt to establish a work flow in tablet form I am looking to utilize the popup palette. My stylus in a Norris, so no buttons.

z
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
It would be good, but it's technically quite hard. As for customizing the docker, that was planned, but I never had the time to implement all that; it would need someone else to step up and start hacking to get that done.
kinta
Registered Member
Posts
2
Karma
0
Just for reference it actually needs to be defined in
Code: Select all
.config/kritarc
without using any section.
Add at top of the file :
Code: Select all
touchdockermapping=activateNextLayer,activatePreviousLayer

The first 8 will be used from the list prepended to this one:
https://invent.kde.org/graphics/krita/- ... ck.cpp#L89


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell