Bug 116684 - EDITING Refer to document property for color
Summary: EDITING Refer to document property for color
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-28 13:40 UTC by Christ van Willegen
Modified: 2018-04-09 08:47 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of document property window and wanted result (40.14 KB, image/png)
2018-03-28 13:40 UTC, Christ van Willegen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christ van Willegen 2018-03-28 13:40:51 UTC
Created attachment 140940 [details]
Screenshot of document property window and wanted result

I would like to define a document property and either be able to assign a color to a certain element (text, line, area) based on the value of that property, or use the value of the property for the color itself.

A slightly longer explanation:

I would like to define a custom property in an Impress document that holds either

1) Some description, like 'purple' or 'pink' and use some kind of conditional formatting to make the color of a line, area or text #xxyyzz and another element #aabbcc, OR

2) A color value (#xxyyzz) that can be assigned to the color of a line, area or text

I'd prefer the first way, because then different elements in a page can be different colors, but still depend on the same variable.

In the screenshot attached, I would like the arms of the cross and the text underneath it to be #000000 when the 'Color' I specify is "white", and the inside of the arms to be #ffffff
Comment 1 Buovjaga 2018-04-02 15:12:45 UTC
I think this is such a niche thing that it would be better as a macro.

UX: what do you think?
Comment 2 Heiko Tietze 2018-04-03 09:47:51 UTC
Color can be defined as automatic which is black on bright backgrounds or white on dark. If you want it red, yellow, or gray it's your formatting. Ideally you define styles (or templates in case of Impress) for the variants. Or you write a macro, as Buovjaga suggests.
Comment 3 Christ van Willegen 2018-04-09 08:47:49 UTC
Automatic color is not enough in this case, since the color can be from a set of about 5 or 6 colors.

I'll look into creating more templates, although it's a burden to have to update all of them if something needs to be changed.

Perhaps a macro can be used, but not sure how to approach that angle. I'll see...