Super Docker Lock - Keep all your dockers in place

Super Docker Lock v1.0.1

smallerlock
Super Docker Lock is Krita Python Plugin that allows users to lock all of their dockers from being closed or resized while hiding all docker titlebars for a cleaner UI.

before and after
This plugin is a fork of @general-avalanche-43’s Lock Docker Resize plugin.
Super Docker Lock combines the separate locking and visibility toggles into one button. Also this plugin is friendly to floating dockers as they will not be re-docked when the lock is toggled on.

After installing the plugin, add it to one of your toolbars and it will appear as a lock button. The plugin will remember if you left it locked or unlocked the next time you open Krita.

Installation

  1. Download the plugin:

    Get the latest version v1.0.1 here or visit the plugin’s github repo

  2. Open Krita and in the top bar click:

    Tools → Scripts → Import Python Plugin From File → *select the zip file*

  3. Restart Krita

11 Likes

Hi there, it’s me again :sweat_smile:

Great plugin, helps to unclutter the UI and leave only useful informations, great job ! I just had one tiny bug where the specific color selector didn’t hide properly, here’s a screen :

Sometimes, even the palette docker name won’t hide properly, but it’s happening randomly. Other than that, the plugin stays well active after relaunching krita with the locker on ! Good job, you’re probably the most active plugin dev right now and providing killer features !

1 Like

That’s odd, I’m on Krita 5.2.14 and I tried to use the same setup as yours but I don’t get that bug. In case it might not be the plugin, try restarting your pc. If you’re on Krita 5.3 prealpha that might also be contributing to it

I’m also on 5.2.14, though I’m on Linux and using the appimage version. There’s maybe a conflict with another plugin. Later on today, I’ll reset all krita config files and will only reinstall this plugin to see if it solves my problem and will let you know.

1 Like

After resetting everything related to krita and updating all my plugins, the problem is fixed ! UI has never been this clean ! Thanks !

2 Likes

Hi tenzin, i’m facing a new bug. It seems that the plugin is hiding the whole toolbar from the animation timeline docker. Using krita 5.2.15 on windows 11. I disabled all other plugins to see if there are incompatibilities but without success !

Also, do you plan to update your plugins to qt6 before krita 5.3/6 release, or should I be sticking to 5.3 upon release ? Can’t live without them now …

Thanks !

ezgif-51ee5e4068670c80

Plugin is a bit aggressive in hiding title bars. Animation Timeline and Animation Curves dockers have custom title bars that should be kept visible.

Little code snippets that should fix the issue (not tested)
Snippet failed to fix the issue → Super Docker Lock - Keep all your dockers in place - #8 by tenzindraws

#### old code in super_docker_lock/functions.py starting at line 222

...
def _set_title_bar_visible(dock_widget, visible):
    title_bar = dock_widget.titleBarWidget()
    if not title_bar:
        return
    ...

#### new replacement code

...
def _set_title_bar_visible(dock_widget, visible):
    title_bar = dock_widget.titleBarWidget()
    if not title_bar:
        return
    # Note: this does not fix the issue
    if (not visible) and (title_bar.metaObject().className() != 'KoDockWidgetTitleBar'):
        return  # only KoDockWidgetTitleBar widgets should be hidden
    ...

Edit: over-lined bad solution.

/AkiR

I tested the snippet and it does not work. The root issue is the fact that Animation Timeline and Animation Curves use KisUtilityTitleBar which has all the necessary buttons needed to use the dockers. This utility titlebar’s buttons only gets hidden by the plugin when the dockers are grouped, isolated Animation dockers are unaffected.

1 Like

Hi w4ldurr, this is a bug that only occurs when the Animation dockers are grouped. It has been fixed in the newly released v.1.0.1 version of the plugin which you can download now.
Fix issue for animation dockers

Also, do you plan to update your plugins to qt6 before krita 5.3/6 release, or should I be sticking to 5.3 upon release ?

Stick to 5.3, I don’t intend to update my plugins to qt6 unless a future stable krita 6.x version has significant improvements/features and if migration to qt6 is forced.

2 Likes

I guess that alone the new Text Tool is worth the change to 5.3/6.

Michelist