Topic: Themes; get font_color
kaputtnik Topic Opener |
Posted at: 2023-12-22, 13:02
Is there a possibility to get the font color currently set by a theme? Background:
I have tried to find something in the documentation but it looks like there is no possibility to get any information about the currently used theme. Edited: 2023-12-22, 13:04
Top Quote |
tothxa |
Posted at: 2023-12-22, 15:10
As you're using a predefined alternate colour, I think you could just set the font style, and inside the font tag override the colour, or in your example:
However, if you really want to adapt to themes, you should derive the alternate colour from the theme's text colour, so it would still be desirable to be able to get it. IIRC from the time I did the paragraph style PR, it's not possible currently. Top Quote |
kaputtnik Topic Opener |
Posted at: 2023-12-22, 18:08
Yes with a single line of text this is possible without much coding. But if the text consists of more text lines this becomes tedious:
Anyway, thanks for your answer! So i am glad that i didn't overlooked something in the big documentation and have to live with that Top Quote |