Bug 92354 - Add UI to load / import .ase & .gpl color palettes (Tools -> Options -> Colors -> Load Color List)
Summary: Add UI to load / import .ase & .gpl color palettes (Tools -> Options -> Color...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
4.4.0.3 release
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords: needsDevEval
Depends on:
Blocks: Color-Palettes
  Show dependency treegraph
 
Reported: 2015-06-26 14:57 UTC by Gerry
Modified: 2017-01-04 08:05 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerry 2015-06-26 14:57:16 UTC
Since LibreOffice 4.4 and 5.0, it is possible to import/load .gpl and .ase color palettes. However, there is no UI for this, so that the user needs to manually copy the color palettes into the correct folder (see [1]).

It seems to be very easy to add this to the existing Tools -> Options -> Colors -> Load Color List option, which currently can only load *.soc color palettes.

Enhancement request: Please add .ase and .gpl also to the "Load Color List" option. Thanks.




[1] http://ask.libreoffice.org/en/question/46259/how-can-i-import-gimp-palette/
Comment 1 Cor Nouws 2015-06-26 17:19:36 UTC
Thanks Gerry!
Comment 2 Julien Nabet 2015-06-27 09:32:44 UTC
About ase palette, it should be ok from 5.0.0 according to tdf#84002
except lab colors, see http://cgit.freedesktop.org/libreoffice/core/commit/?id=797c48f0f74501def9f47444538c0e110fcfcca1

About gpl palette, I saw codepointer here:
http://opengrok.libreoffice.org/xref/core/svx/source/tbxctrls/Palette.cxx#170

However, indeed only "soc" is proposed when using Tools -> Options -> Colors -> Load Color List option

Chris/Tomaz: thought you might be interested in this one.
Comment 3 Chris Laplante 2015-06-27 19:01:51 UTC
(In reply to Julien Nabet from comment #2)

> Chris/Tomaz: thought you might be interested in this one.

Thanks Julien, I'll take a look!
Comment 4 Philipp Weissenbacher 2015-06-27 21:46:56 UTC
I just noticed this too, when trying to test the .ase loading feature developed by Chris. 

Great to see you're looking into this!
Comment 5 Tomaz Vajngerl 2015-06-28 06:45:17 UTC
Yes, the Options->Colors page doesn't support palettes at all. It would be nice to modify the dialog so that you can browse the available palettes and modify the colors (same as it is done now for standard palette) and add (copy into LO config folder) new palettes from an arbitrary location. 

The issue is however what to do when the ase or gpl palette is modified as we don't support saving for this two formats. I guess we can only allow saving when the palette is soc (for now). I don't think users will be doing this very often or at all.

Chris, great if you have time to work on this!
Comment 6 Chris Laplante 2015-06-30 00:35:09 UTC
(In reply to Tomaz Vajngerl from comment #5)

> Chris, great if you have time to work on this!

No guarantees but I'll try to take a look :)
Comment 7 Robinson Tryon (qubit) 2015-12-13 11:20:52 UTC Comment hidden (obsolete)
Comment 8 Mike Kaganski 2015-12-15 01:26:37 UTC
(In reply to Tomaz Vajngerl from comment #5)
> The issue is however what to do when the ase or gpl palette is modified as
> we don't support saving for this two formats. I guess we can only allow
> saving when the palette is soc (for now). I don't think users will be doing
> this very often or at all.

I'm not familiar with the code (nor with palette, so please excuse me if this is dumb), but in case the palette is imported (loaded to memory) into native format, isn't that natural when loading from arbitrary location to browse for a .ase/.gpl, then save its copy to LO config folder as .soc right away?
Comment 9 Heiko Tietze 2017-01-04 08:05:41 UTC
Adobe Swatch Files (.ASE) were requested again here https://design.blog.documentfoundation.org/2016/12/30/new-color-palettes-in-libreoffice/#comment-1881