Bug 159406 - Possibility to define Styles for lightmode or darkmode
Summary: Possibility to define Styles for lightmode or darkmode
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks: Dark-Mode
  Show dependency treegraph
 
Reported: 2024-01-28 01:23 UTC by amadeus@paulussen.id
Modified: 2024-01-31 08:34 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
lightmode and darkmode in Impress (914.59 KB, image/png)
2024-01-28 01:27 UTC, amadeus@paulussen.id
Details

Note You need to log in before you can comment on or make changes to this bug.
Description amadeus@paulussen.id 2024-01-28 01:23:44 UTC
Description:
I think it would be wonderful if you could define styles for darkmode and lightmode in Impress, Writer, Calc & Co. Then presentations and documents, in addition to the user interface of LibreOffice, the operating system and numerous websites, would follow the user's settings and be displayed in light or dark mode depending on them.

Steps to Reproduce:
1. Create a document
2. Modify a Style and have the ability to define whether it should be applicable global or only for darkmode or lightmode.

Actual Results:
-

Expected Results:
Have your documents follow the host's system setting for darkmode or lightmode.


Reproducible: Always


User Profile Reset: No

Additional Info:
-
Comment 1 amadeus@paulussen.id 2024-01-28 01:27:47 UTC
Created attachment 192201 [details]
lightmode and darkmode in Impress

This is just as an example how the outcome could look like for an Impress presentation. In my case the turquoise Style would be for lightmode whereas the green one would be for darkmode accordingly.
Comment 2 V Stuart Foote 2024-01-28 13:23:33 UTC
Assume the styles could be made os/DE color theme aware, and no issue to statically record that final style pick into resulting ODF. That would be just additional set of styles.

But how far would the detection need to go, would this just be to make a selection when authoring a document? Or, should this be implemented to support a "reflow" in styling of a document depending on the os/DE color theme on opening. I.e. both style "sets" recorded to ODF.
Comment 3 amadeus@paulussen.id 2024-01-29 10:23:05 UTC
I'm not sure I'm interpreting your question correctly.

As far as I understand, it should be straight forward for LO to detect the OS/DE color theme, since LO already reacts to this setting by displaying the user interface as light or dark respectively.

As for the actual styles, I was thinking that users would per default edit the light style in a document, but could also configure a dark style. Other users who would open a document with both light and dark styles configured would get the style that corresponds to their OS/DE.

Does this answer your question?
Comment 4 Heiko Tietze 2024-01-29 10:38:46 UTC
The document color are rather not related to the UI color. Fonts are colored automatically, by default, so a dark canvas background make them appear white (the printout would be black on white, of course). System colors such as highlight or accent are meant for interactions and are not suited for styling a document. => WF

However, there is some effort ongoing to get document themes working, see bug 107331 ([META] Document themes bugs and enhancements), bug 90497 (Implementing document themes), or bug 151507 (Themed color palette).
Comment 5 amadeus@paulussen.id 2024-01-30 09:52:26 UTC
(In reply to Heiko Tietze from comment #4)
> The document color are rather not related to the UI color. Fonts are colored
> automatically, by default, so a dark canvas background make them appear
> white (the printout would be black on white, of course). System colors such
> as highlight or accent are meant for interactions and are not suited for
> styling a document. => WF
> 
> However, there is some effort ongoing to get document themes working, see
> bug 107331 ([META] Document themes bugs and enhancements), bug 90497
> (Implementing document themes), or bug 151507 (Themed color palette).

Interesting, thanks for sharing!
Comment 6 Heiko Tietze 2024-01-31 08:34:36 UTC
So let's resolve this ticket as WF. Feel free to reopen.