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: -
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.
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.
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?
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).
(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!
So let's resolve this ticket as WF. Feel free to reopen.