eclipsesource / tabris-js

Create native mobile apps in JavaScript or TypeScript.
https://tabrisjs.com
BSD 3-Clause "New" or "Revised" License
1.4k stars 170 forks source link

No custom font for Popup subclasses #1987

Open ishigo1987 opened 4 years ago

ishigo1987 commented 4 years ago

It's impossible to apply a custom font to the popup subclasses like alertDialog, dialogSheet, dateDialog ect... when they show up it's always the default system font (example roboto for android)

mpost commented 4 years ago

That is correct. Atm it is not possible to change those.

jokorivai commented 4 years ago

@mpost It seems like the Action widget doesn’t support custom font too. Is it corect?

mpost commented 4 years ago

You can not change its font via Tabris.js code at the moment but you can use a custom Android theme to alter its appearance.

ishigo1987 commented 4 years ago

@mpost can you explain please what do you want to say by use a custom Android Theme to alter its appearance, with custom theme we can just change the color of text or button text right?

mpost commented 4 years ago

I am referring to https://docs.tabris.com/3.3/theming-android.html

jokorivai commented 4 years ago

You can not change its font via Tabris.js code at the moment but you can use a custom Android theme to alter its appearance.

@mpost Yes. But it’d be good if custom fonts can replace images for Action’s icons.