LocalMaterialNotes icon indicating copy to clipboard operation
LocalMaterialNotes copied to clipboard

Dark theme: No font change in the app itself

Open uli-on opened this issue 11 months ago • 13 comments

I can't spot any change of the app font (tried with Dancing Script, one that could be perceived sufficiently).

App v1.12.0 from izzy Android 13 Fairphone FP3

uli-on avatar Jan 13 '25 17:01 uli-on

Well that's weird, it works fine on my phone: Screenshot_2025-01-13-20-40-29-812_com.maelchiotti.localmaterialnotes.jpg

Can you send me the logs from Settings > About? Maybe there is something there.

maelchiotti avatar Jan 13 '25 19:01 maelchiotti

Thanks for the logs, there is nothing interesting inside, no error.

You do see in the settings that the new font is selected, right? So it's just that the font doesn't change?

maelchiotti avatar Jan 13 '25 20:01 maelchiotti

Yes, in the Font settings, the subline for the chosen font says Dancing Script (not my font of choice BTW, just to be sure it works ;) but Dancing Script is not in use, it's the standard system font, that's used app wide.

uli-on avatar Jan 13 '25 20:01 uli-on

Oooops?

I thought to myself how i could trigger a screen redraw and chose the light theme. And there it was, the font of choice, in all its beauty. Unfortunately, switching back to dark brought back the standard font. Does that tell you enough about where to look?

uli-on avatar Jan 13 '25 20:01 uli-on

And it's like that with every font. Light theme: font switching works. Dark theme: nope.

uli-on avatar Jan 13 '25 20:01 uli-on

The dark and light themes are indeed generated in different functions, but it worked on my emulator and in works now on my phone 🤨

I'll look into it a bit nonetheless!

maelchiotti avatar Jan 14 '25 07:01 maelchiotti

I honestly have no idea why this is happening and I can't reproduce it.

I'll leave the issue open for a while in case someone else encounters the same bug.

maelchiotti avatar Jan 29 '25 17:01 maelchiotti

I do have the same issue with all the themes and phone restarts. But only the emoji font doesn't change, and it's not even my system font (i changed it on my samsung galaxy, so it might be why)

mooshxvi avatar May 25 '25 20:05 mooshxvi

Hi @mooshxvi ! So you cannot change the font at all, no matter which theme you're using?

I should change the wording for "system font" to "default font", I can't detect the system font so in reality it's just using Roboto (the default font for Android devices).

maelchiotti avatar May 26 '25 06:05 maelchiotti

No the font changes but the emojis used are the default samsung emoji (roboto i guess), despite the fact that I changed the system font. And I don't think you have to detect the system font, maybe if you just don't adress a font for the text, the os put it's font by default. So basically the text font changes but not the emoji font.

mooshxvi avatar May 26 '25 11:05 mooshxvi

Oh okay I understand now, thanks. I'll have to take a look at how emojis are handled.

maelchiotti avatar May 26 '25 12:05 maelchiotti

@maelchiotti The issue changed with v2 (or maybe I had a new chance to discover the following): If I start from scratch I can use any of the proposed fonts (not tested all, but those I tried were working). But as soon as I import my json data the font issue is active again and I can not change the app fonts for the dark theme.

uli-on avatar May 26 '25 13:05 uli-on

Ok so maybe it's related to the import feature, since preferences are included in the exports. I'll try that, thanks for the feedback.

maelchiotti avatar May 26 '25 18:05 maelchiotti