EnsembleUI / ensemble

Build native apps 20x faster than Flutter, RN or any other tech
https://ensembleui.com/
BSD 3-Clause "New" or "Revised" License
124 stars 15 forks source link

Ability to set theme per language #1505

Closed amin-nas closed 1 month ago

amin-nas commented 2 months ago

Currently, I can set font family globally and per widget using fontFamily. I want to be able to set this value for each language supported by my app, along with a default.

Suggested EDL (feel free to come up with a better approach)

MyTheme:
  Styles:
    Text:
       textStyle:
          fontFamily:
             en: Montserrat
             ar: Tajawal
             default: Montserrat

Make it backward compatible, i.e. existing way of setting this should continue to work:

MyTheme:
  Styles:
    Text:
       textStyle:
          fontFamily: Montserrat
kmahmood74 commented 2 months ago

@amin-nas this should be available as inline styles as well right and not just themese?

kmahmood74 commented 2 months ago

assigning to myself as this is urgent and Hemish is busy with stripe integration

kmahmood74 commented 2 months ago

@amin-nas this is merged, I still need to update the schema and the documentation.

amin-nas commented 1 month ago

Done as part of https://github.com/EnsembleUI/ensemble/issues/1576