KanvasBuddy - a Minimalist Toolbar

Yeah - I know what a VM is - I meant the UI scaling! :wink:

My monitor is 1920x1200 so imagine it’s standard scaling?

1 Like

Works perfectly. You are a life saver :stuck_out_tongue:

3 Likes

Good to see you here too. Welcome and enjoy :wink:

1 Like

I think you can create a dedicated topic :wink:
Or post it here in this topic Krita UI Redesign as there’s a debate about Qt redesign possibilities… :thinking:

Anyway, thanks for the tip

Grum999

1 Like

I meant to post it in that topic. Wrong Firefox tab. :joy:

:sweat_smile: :+1:

Grum999

Now that I have a good handle on Krita, I thought I might try some of the plugins and your shortcut plugin is really great. I didn’t mind setting up my docker with all the necessities like colour pickers, layers, and pen tip sizes…etc, but its really nice not having to open then so that I can have full access to the canvas. The KanvasBuddy does just that. Thank you this is awesome !

1 Like

I have been using the kanvasbuddy now for a few days and noticed a bug that I found on my machine. When I use the kanvasbuddy as well as the popup palette (the round palette with the brushes) . The popup palette works fine but it appears that the kanvasbuddy does not show any new brush changes or brush sizes that i select in the popup palette. Its a bit of a nuisance because I love both tools. :frowning:

I think this kind of behaviour is normal for plugins. Similar behaviour to what you’ve seen in the pop-up pallete occurs when you use the normal sliders and brush docker to change brush settings – they don’t update in KB. But the dockers do update when you change the settings in KB.

Something similar happens with another community plugin, Pigment.o. The dev for that plugin got around that by using a timed check that syncs the plugin and main krita interface (if I understand it right) a second after a new colour is picked.

This is exactly what ive been looking for for ages. Awesome work! It’s perfect! :metal:

1 Like

This is a known issues :slight_smile:

2 Likes

Hi @Kapyia!

I thought it was better to respond in here than in the other thread. I thought you more were aware of the problem I mentioned (apart from my feedback) - but looking through the thread I recall now you’ve only seen it happen in a VM.

Now we have video upload I can more easily demonstrate:

So it feel like it’s resistant to being moved - you can see it doesn’t keep up with the cursor, shakes around a lot and sometimes it jumps to another position. So it takes some effort to move it where I want it, and there’s no precision. In the video I’m using the mouse, but it jumps around more frequently if I’m moving it with the stylus.

This is on mint 19.3 with cinnamon, and using Nvidia drivers. I’ve just realised there’s a new mint out - so I’ll retest once I’ve switched over.

2 Likes

I’ve now tested KB on Linux Mint 19 and 20, Cinnamon Edition.

It’s working perfectly fine for me on my set up. Fingers crossed upgrading will fix the issue for you. Your issues with the dragging seems incredibly annoying, but I’m afraid that I can’t do much without being able to reproduce the issue :frowning: You’re in a better position to find a solution to this than I am.

1 Like

This only happens to me when I’m sharing the screen in a call on discord.

1 Like

Thanks for looking into it!

I wonder what the cause is - there are so many variables with these things! :man_shrugging:

It always does this for me - there aren’t any special circumstances. I’ve tried turning various things off - including mint effects, widgets and docker. I’ve also started getting an intermittent error popup - something to do with rotation, which also triggers when I change the brush preset.

Hopefully it will resolve once I’ve updated. I’m still getting a lot of use out of it regardless! :+1:

Got a new button ready for y’all! This one just adds a button that toggles eraser mode to Kanvas Buddy. It should look something like this:

How to install:

  1. Navigate to your kanvasbuddy installation. (Go to Settings → Manage Resources → Open Resource Folder. In that folder, navigate through Pykrita → KanvasBuddy.
  2. Copy the provided config.ini and data.json files into this folder. Replace the existing files. Note: This will get rid of your original settings if you changed them, so you will have to house clean after if you had your own set-up going.

DL Link: https://drive.google.com/drive/folders/15HwhhKrgLz50ufINO4uwBDE7ASKikiro?usp=sharing

Alternatively, you can code it in yourself!
In your data.json, add in:

"eraserMode": {
        "id": "erase_action",
        "icon": "light_edit-delete"
    }

under the ā€œcanvasOptionsā€ object. Dont forget a comma before.

In config.ini, add this under canvas options:

eraserMode=1

The place you put this option determines where in kanvasbuddy it ends up.

One final section: It seems possible to make your own canvas actions available for KB as follows:

How to add in a KB action

  • Find the action you want to do.

In the python scripter (tools → scripter), run this:

from krita import *
for i in Krita.instance().actions():
    print(str(i.objectName()), ", " , str(i.text()) )

The output lists actions you can make KB do. Find the action you want to code in by looking through the descriptions after the comma. Once found, you want the phrase before the comma, as that is your action id.

  • Edit data.json

Open data.json and add in something resembling the following template to the object under canvasOptions:

        "<moduleName>": {
        "id": "<the_action_id_from_before>",
        "icon": "<name_of_your_icon>"
    }

The things in <> are what you will change (including the <>). Replace moduleName with anything you want, but remember it as that is what is going into config.ini. Fill in the action id.

For icon, you have to use the name of the Krita gui icon you want to appear. I personally have no clue how to access the list of gui icons like I did with available actions. So far, I’ve just been using the list available from this repository and crossing my fingers! Once you find one, just fill in the icon section and save data.json.

  • Edit config.ini

Open config.ini. Add in the following template under canvasOptions:

<moduleName>=1

is the name you gave your new button back in data.json. Save and restart Krita if open. Reopen Krita and check KanvasBuddy!

Hope this helps!

8 Likes

You can use the eraser icon like the icon in the toolbar.

3 Likes

i agree creating different icons can be confusing for some people.

That’s exactly what I wanted to do, but I couldn’t find the name of that icon anywhere. So I just settled for something like that.

If anyone knows what that icon is called, please let me know (and let me know how you found it out!)

Just a little update - Unfortunately the judder issue didn’t go away with the new OS, or trying on a fresh Krita instance/plugin install. :disappointed_relieved:

I think I figured out what triggers that popup I mentioned though - it seems to happen if I open another file in Krita while it’s activated.