Bug 437552 - The color palette is not able to save transparency color (containing alpha). It would be so usefull to save custom palette (replacing the dedault) with colors with alpha/
Summary: The color palette is not able to save transparency color (containing alpha). ...
Status: RESOLVED FIXED
Alias: None
Product: kolourpaint
Classification: Applications
Component: general (other bugs)
Version First Reported In: 19.12
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: kolourpaint-support
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-23 15:33 UTC by fredygamez
Modified: 2021-06-06 12:04 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fredygamez 2021-05-23 15:33:32 UTC
SUMMARY
The color palette is not able to save transparency color (containing alpha). It would be so usefull to save custom palette (replacing the dedault) with colors with alpha/

STEPS TO REPRODUCE
1. Go to color palette
2. Select a custom color, added an alpha setting (transparency)
3. Go to menu Color -> Save As... -> save a new file "custom-palette"
4. The file is saved (includes KDE RGB Palette) only RGB parameters
5. While same session, the transparency can be used. 
6. Close Kolourpaint
7. Open again Kolourpaint, the custom palette now does not have the transparencies, just the pain colors. Seeme the saved fie is not storing the alpha channel

OBSERVED RESULT
When opening again Kolourpaint, the custom palette now does not have the transparencies

EXPECTED RESULT
The custom palette saved before, allows have alpha colors in persisten wasy, I mean when restart again Kolourpaint 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
Windows 

ADDITIONAL INFORMATION
Comment 1 Martin Koller 2021-06-06 12:04:42 UTC
Git commit e42126f99ebca7073603fc5e6bef9c08b7e63477 by Martin Koller.
Committed on 06/06/2021 at 12:00.
Pushed by mkoller into branch 'master'.

Introduce palette file format including alpha value

color palette files saved will now have a new header, stating that
it contains RGBA values instead of only RGB values.
Old format can still be read.

M  +21   -11   lgpl/generic/kpColorCollection.cpp

https://invent.kde.org/graphics/kolourpaint/commit/e42126f99ebca7073603fc5e6bef9c08b7e63477