elementary / wingpanel

Stylish top panel that holds indicators and spawns an application launcher
https://elementary.io
GNU General Public License v3.0
137 stars 46 forks source link

Question: How to customize the time widget? #457

Closed cshaa closed 2 years ago

cshaa commented 2 years ago

Question

I would love to modify my wingpanel, so that the date-time widget shows time in a custom format. (Specifically, I'd love to add decimal time there.) However, I couldn't find what part of the source code is responsible for rendering the time. Could you point me in the right direction, please? :)

tintou commented 2 years ago

I'm sorry but we don't and won't support this level of customization.

The code you're looking for is at https://github.com/elementary/wingpanel-indicator-datetime/blob/master/src/Widgets/PanelLabel.vala#L60 also note that:

cshaa commented 2 years ago

Thanks!