Editing Quick Settings Docker

Hi! I wanted to change the options from the quick settings docker so that it only has the sizes that I would use and I found this post but I don’t understand how to do what they say they did. It also says they’ll try to add that feature in 5.2 but it looks like they didn’t have time to so I want to edit the python thing but I suck at that so I need help haha

how do I delete the sizes I don’t use from my Quick Settings Docker (for dummies)?

thank you!

Hmm looks like sizes and opacity are hard coded to docker, but you can edit them directly from source code sizes and opacity lists

How to edit:

  1. Find correct file. Find where Krita is installed and inside of that folder there should be
    ./share/krita/pykrita/quick_settings_docker/quick_settings_docker.py (you should make a back copy of that file, so that you can restore original when something goes wrong in editing)
  2. Open quick_settings_docker.py file in code editor, you can use Krita’s (Tools → Scripts → Scripter)
  3. Edit code, locate following segment in code and edit self.sizesList = [...]and self.opacityList = [...]
        # Sizes and opacity lists. The former is half-way copied from
        # ptsai, the latter is based on personal experience of useful
        # opacities.
        self.sizesList = [
            0.7, 1.0, 1.5, 2, 2.5, 3, 3.5, 4, 5, 6, 7, 8, 9, 10, 12, 14, 16,
            20, 25, 30, 35, 40, 50, 60, 70, 80, 100, 120, 160, 200, 250, 300,
            350, 400, 450, 500]
        self.opacityList = [
            0.1, 0.5, 1, 5, 10, 15, 20, 30, 40, 50, 60, 70, 80, 90, 100]
  1. Save edited file and restart Krita to see edited quick_settings_docker or an error message :slight_smile: . If something did go wrong you can re-edit code or restore original quick_settings_docker.py file that you did save at step 1.

Happy hacking.

/AkiR

3 Likes

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