Bug 399095 - Make it possible to add an entry to the palette class directly without constructing a kocolorsetentry
Summary: Make it possible to add an entry to the palette class directly without constr...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Scripting (show other bugs)
Version: 4.1.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: wolthera
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-26 09:17 UTC by Larpon
Modified: 2020-08-18 15:20 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Larpon 2018-09-26 09:17:00 UTC
As in title.

Make it possible to add an entry to the palette class directly without constructing a kocolorsetentry
Comment 1 wolthera 2018-09-26 15:53:11 UTC
Seems this was forgotten when setting up the palette.
Comment 2 Scott Petrovic 2020-08-03 12:05:06 UTC
Is this still valid? With the palette class, it seems you only need to provide a Swatch object and a group string.

https://api.kde.org/appscomplete-api/krita-apidocs/libs/libkis/html/classPalette.html#aef8a606c04b86c08ec7f0583a9c9ffea

Maybe I just don't understand this -- or maybe it was fixed at some point. I am not seeing kocolorset much when adding entries.
Comment 3 wolthera 2020-08-03 12:16:57 UTC
I honestly don't remember. I do remember we fixed something...
Comment 4 Scott Petrovic 2020-08-05 12:16:16 UTC
This might have been fixed, or this might not be the case any more since you do not need a kocolorsetentry to add things to a palette. If there is still any issues, please open up another ticket and we can discuss.
Comment 5 Larpon 2020-08-18 11:42:55 UTC
I remember it was not possible to add colors to palettes from python scripts - and this was part of that problem.

So do you happen to know if colors can be added to palettes now somehow?
Comment 6 Scott Petrovic 2020-08-18 15:20:04 UTC
You can add entries to palettes this way
https://api.kde.org/appscomplete-api/krita-apidocs/libs/libkis/html/classPalette.html

The GUI version to see the palette is here
https://api.kde.org/appscomplete-api/krita-apidocs/libs/libkis/html/classPaletteView.html