matomo-org / matomo-mobile-2

Matomo Mobile 2 App - The official Git repository! Liberating Web Analytics on the go!
https://matomo.org/mobile
Other
102 stars 31 forks source link

[Feature request] Dark theme #5434

Open KaKi87 opened 2 years ago

KaKi87 commented 2 years ago

Thanks

Hukuma1 commented 2 years ago

Really would be nice. On iOS it's one of the few apps that I have that do not support dark mode.

I found this: https://github.com/matomo-org/matomo-mobile-2/pull/5412

I think forcing users into light theme is a bit outdated. Would love to help test the layout of a proper dark mode for this app?

KaKi87 commented 2 years ago

I'm on Android :)

KaKi87 commented 1 year ago

Hello @tsteur, any news on this ? Thanks

tsteur commented 1 year ago

@KaKi87 sorry I haven't had time yet.

m1ga commented 1 year ago

for a dark mode you create a semantic.colors.json in app/assets/ like this: https://github.com/tidev/titanium_mobile/blob/master/templates/app/default/template/Resources/semantic.colors.json and add some colors.

https://github.com/matomo-org/matomo-mobile-2/blob/master/app/styles/app.tss#LL2C23-L2C30 replace #FFFFFF with backgroundColor (the label from the semantic colors file) and it will automatically switch between dark/light.

Do it for all colors in the TSS files and you are done :smile: