stuartlangridge / gnome-shell-clock-override

Override the Gnome Shell clock with a new time format or text of your choice. Works with new versions of Shell such as 3.18
MIT License
89 stars 33 forks source link

[REQUEST] Support of Pango markup #3

Open ghost opened 7 years ago

ghost commented 7 years ago

Hello, thank you for this nice extension :)

I would love to see support of Pango to customize text. https://developer.gnome.org/pango/stable/PangoMarkupFormat.html

Example: (<)span font_family="comfortaa" font_size="x-large" font_weight="bold">fedora</span(>) -- nb: remove () It's what I use in "Activities Configurator" extension, which offers Pango formatting.

stuartlangridge commented 7 years ago

I'm afraid not; I've just tried to do this. The clock is an St.Label; it seems that if I have markup in my clock override string and retrieve the inner ClutterText from this St.Label and set use_markup to true then Gnome Shell hangs. I don't know why this is, but debugging it is really annoying because it hangs Shell all the time. So, I won't close this issue (because having markup be allowed in the override string is a good idea) but I personally don't plan to work on it. If someone else does work on it though I'd be happy to take a pull request!

ghost commented 7 years ago

I'm sad to hear that but I totally understand, keep up the good work man!