Accidentally deleted brush preset icon by overwriting default icon when changing default brush size

Hey there!

I accidentally deleted one of the Brush Preset icons in my Krita v5.0 Brush Preset Docker when I overwrote the brush’s settings, and I would like to ask how I can reset that icon or get it back, even if it requires a full reset of the Brush Presets docker, which I don’t mind doing if it’s needed.

It seems to only affect one version of Krita I have installed, v5.0 (whether my paid Steam or freeware Windows desktop installation) and previous versions- I booted up and looked in the Brush Presets of my v4.7 and v4.8 installations- are not affected, so I assume this only affects configuration or default settings of a particular version of Krita that I have installed.

If there’s an answer to my problem to be found, and if a fellow Krita user might have a solution to my problem, I would be very grateful if you’d post me back.

-Stylus.

EDIT: I gave deleting the ‘kritarc’ file in AppData a try as a potential resolution (after making a renamed backup copy of it) and it did not restore the overwritten Brush Preset icon in the Brush preset docker, so that doesn’t seem to be a solution that will help me.

There is a ‘Reset all Settings’ under the settings tab, but I’m not certain that will reset you brushes/libraries…

I’m a little leery of using it (found it under Settings on the toolbar, as you said) if it will have the same effect as deleting the ‘kritarc’ master configuration file, but result in the brush icon still being missing. I appreciate you posting me back about it, tho’, so thank you for that.

Between my last OP edit and my current reply, I downloaded a copy of the Krita v5.0.0 portable version (ZIPped, then exploded to a folder and Krita booted up from within) and the brush icon is still missing in Brush Presets, so it looks like it’s something in 5.0’s saved configuration specifically that is causing this, or retaining the setting of the deleted brush preset icon.

Try Setting > Manage Resources, and select which source your deleted brush (e.g. Local Resources, Krita_3_Bundle, Krita_4_Bundle…etc).
Turn on “Show deleted resources” then find the brush which you delete and select it, then press “Undelete Resources”

1 Like

Good evening, Lesqwe56!

Thank you kindly for posting me back. The problem I’m having isn’t a deleted brush tool, it’s that I changed the diameter of the brush, and overwrote the brush default without realizing that it would overwrite the brush preset’s icon with a blank icon. The Brush Preset is still there and can be used, but it doesn’t have an icon, as in it’s blank now.

However, I may have figured out a possible solution, thanks to your post. Each Brush Preset has its own file, and the preset I overwrote has a filename of ‘b)_Basic-5_Size.0001.kpp’ and in my installation it’s in the directory ‘\AppData\Roaming\krita\paintoppresets’. Some of these files have older backup copies of them, and one of them may be the one I need to replace the Brush Preset I overwrote.

EDIT: The method I had above in mind so far isn’t working (I made a ZIP archive of the ‘paintoppresets’ directory as a backup before I changed anything, just in case I did something to make a mess of the contents); I can delete the brush preset with no icon and undelete it, but the Brush Preset still currently has no icon.

I had a closer look at my Basic-5 Brush presets, and it looks like I have multiple versions with custom settings, one of which has the default diameter I want (15px, as opposed to the default 40px) and is functionally identical to the one with the missing icon. Assuming there is no practical fix for the missing icon on a custom/overwrote brush problem, I can just delete the Brush Preset with the missing icon and use the one that’s already there, with a working icon.

2 Likes

I must read your post too rough :sweat_smile:

Method 1) Delete all the files in ‘\AppData\Roaming\krita’, and start krita, it will generate all the default resources, but it means you lost all your custom resource.

Method 2) Just through my brief testing, not sure if it works.
By default b)_Basic-5_Size will show Location:default which is in ‘\AppData\Roaming\krita\paintoppresets’
If delete all the version of the brush, it will read in ‘\AppData\Roaming\krita\Krita_4_Default_Resources.bundle’
image
And if you overwrite the b)_Basic-5_Size in ‘Krita_4_Default_Resources.bundle’, it will put the modified version in ‘\AppData\Roaming\krita\Krita_4_Default_Resources.bundle_modified’, delete it will make it back to read ‘Krita_4_Default_Resources.bundle’

PS: Moving out a .kpp brush to somewhere else and start krita, krita will remove the .kpp from the resource cache. Close krita and move the .kpp brush back, start krita and it will be put in to resource cache again.

No worries; I’m sorry for not being more clear about my problem, and thank you for your patience and assistance!

I don’t know if I did something wrong or not, but now almost all of the Brush Preset icons look different from what they were before I followed your instructions. I’m going to try reinstalling Krita v5.

EDIT: Reinstalling it didn’t work, and the icons all look wrong now. I may have to delete the entire Krita configuration directory and start from scratch.

EDIT 2: I deleted the ‘krita’ directory under ‘\AppData\Roaming’ and booted up an instance of Krita 5.0 and of Krita 4.8; aside from the Reference Image docker (which I can reinstall) everything is back to normal, with a refreshed ‘krita’ directory created when I ran both instances of Krita again. I also placed the modified copy of the Brush 5 Size (with the proper icon image) with a 15px brush diameter into ‘paintoppresets’, booted up Krita v5.0 and v4.8 instances again, and it was included in my Brush Presets exactly as I’d wanted it to be.

While it wasn’t the route I expected to take to get here, I think my problem has been solved, and I’m going to mark it as such. Thank you again for giving me a hand as you did!

1 Like

I only test on Krita 5, so don’t know if the strange behavior is caused by v5 and v4 share the same resource folder since they handle resource quite different.
Anyway, glad you problem has been solved :grinning:

It was an adventure to find my solution, and I enjoyed troubleshooting it and finding my solution with your help, Lesqwe56 and Kacart both. I looked up the Reference Image docker hosted on Github, added it under Krita’s Python-language plugins, and which had a wonderfully easy installation process.

I’m glad I’ve learned to handle problems logically and not getting upset and depressed when I’ve come up against a technical problem or recurring program setup error, and your encouragement towards solving my problem with Krita was a really big help with keeping my mood positive and productive. Thank you for the Christmas gift of having my Krita installation working as I’d like it to tonight!

3 Likes

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