Tweak telega code and pre faces

The 'telega-entity-type-code' is now subject to the value of the user
option 'modus-themes-markup'.  By default, it looks like Org
=verbatim= entities.  The 'telega-entity-type-pre' has the same style
as fenced code blocks in Markdown.

We cannot inherit from Org or another package, as there is no
guarantee it has been loaded by the time the relevant telega buffer is
displayed (in general, we do not let faces inherit from arbitrary face
groups).

Thanks to Pablo Stafforini for the feedback in issue 170 on the GitLab
mirror: <https://gitlab.com/protesilaos/modus-themes/-/issues/170#note_1130421067>.
This commit is contained in:
Protesilaos Stavrou 2022-10-19 05:52:04 +03:00
parent d9e4546031
commit 4c45169b3f
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -7142,9 +7142,9 @@ by virtue of calling either of `modus-themes-load-operandi' and
`(telega-button-active ((,class :box ,blue-intense-bg :background ,blue-intense-bg :foreground ,fg-main)))
`(telega-button-highlight ((,class :inherit modus-themes-subtle-magenta)))
`(telega-chat-prompt ((,class :inherit bold)))
`(telega-entity-type-code ((,class :inherit modus-themes-fixed-pitch)))
`(telega-entity-type-code ((,class :inherit modus-themes-markup-code)))
`(telega-entity-type-mention ((,class :foreground ,cyan)))
`(telega-entity-type-pre ((,class :inherit modus-themes-fixed-pitch)))
`(telega-entity-type-pre ((,class :inherit modus-themes-fixed-pitch :background ,bg-dim :foreground ,fg-special-mild :extend t)))
`(telega-entity-type-spoiler ((,class :background ,fg-main :foreground ,fg-main)))
`(telega-msg-heading ((,class :background ,bg-alt)))
`(telega-msg-self-title ((,class :inherit bold)))