Docker related plugins

Here are two plugins, an extension and docker that allow locking/unlocking the resizing of dockers. The extension adds a toggle action that locks all dockers. The docker lets you lock certain dockWidgetAreas. It only partially works on floating dockers, I don’t use them so that is a side effect. Save your workspace before trying it🤠Tested on Win10, Krita 5.2.9.

Download the extension here:

Download the docker here

To install unzip the plugin(s) into the resource/pykrita folder (settings->manage resources… click open resource folder), or go tools->scripts->import plugin from file locate your the .zip restart, enable the plugin(s) in settings->python plugins, and restart again.

Find the toggle action in settings->keyboard shortcuts, or with a document open, press ctrl+enter and search toggle “toggle lock…”.

The docker can be found in settings->dockers.


Here are some screenshots, the docker is in the bottom left (I don’t usually have a workspace this cluttered, its just a demo I swear! :crying_cat:)

Clicked the center lock so everything is locked.


The motivation for this is that the standard lock button doesn’t lock the :face_with_symbols_on_mouth: widgets completely! Hopefully this compliments the standard lock button on widgets.

I think all DockWidgets that are alone/grouped together need to have the min/max width/height to be the same before they will become “locked”.

I was initially trying to find whatever the QSplitters were responsible for resizing those vertical bars on either side of the canvas, but none of the ones I found seemed unrelated, or inside dockwidgets.

The locking could be modified further to allow vertical or horizontal resizing within dockWidgetArea(s) but I think a global toggle is good enough.

Made with the help of various chatbots, Gemini, Minstral (Le Chat), Deepseek, Claude, etc. Also this StackOverflow solution for finding if a “tabified” dockwidget is “active” or not (isVisible() only indicates whether a dockwidget is removed or not).

7 Likes

Made a little update to the extension (not docker), now it will trigger the lock the first time the user opens a document. If it’s added to a toolbar, like in the example below I added it to BrushesAndStuff, the icon will toggle between locked/unlocked, and it will visually appear checked :partying_face:

Lock Docker Resize Extension v2

2 Likes

This is something I have wanted for quite awhile. A lot of times I accidentally move my cursor over and resize things. Thank you for this :grin:

1 Like

Another extension here, it’s pretty closely related so rather than make a new topic I’m posting it here. This adds an action that visually appears to show/hide all docker title bars. More pixels reclaimed :+1: “Toggle Docker Titlebars”.

It is enabled once when a view is created with a 1.5 second delay, but I imagine it could also be triggered before when the main window is created (swap out viewCreated for windowCreated). Make sure your workspace is saved before trying this out :cowboy_hat_face:

Floating dockers will be re-docked, as I said before I don’t use them so it doesn’t bother me right now. I’m sure there is also a way to, in that it seems to just re-dock them for whatever reason. The idea is from various posts in the forum, I don’t have any saved but I think there are a few scripts here and there that do similar things.

While adding the action to my toolbar I found there was another action named very similarly, I thought it was a bug or some plugin I downloaded added this extra action. It’s called Show Docker Titles (in settings category in keyboard shortcuts) which doesn’t hide the title bars entirely, just makes it blank, so no lock button, title, or window/close buttons, I didn’t check if it works with floating dockers.

3 Likes

I’m going to edit the title of this topic to “Docker related plugins”

Here is another plugin, it should allow straight forward editing of where dockers go, it creates a window with 4 regions you can click to toggle how the “corners” are configured. Made by Gemini.

Install in the normal way indicated in previous posts :cowboy_hat_face:

Test the action by searching for the action with ctrl+enter
tmppt43kivj

Or add it to a toolbar

3 Likes

Is it possible to modify your Plugin to fulfill this feature request? →

I guess you could make a family very happy with it. :wink:

Michelist

3 Likes