How to change Default Font in App Designer for ALL Components?

23 vues (au cours des 30 derniers jours)
Michael Jarboe
Michael Jarboe le 23 Août 2022
Modifié(e) : Shivansh le 5 Oct 2022
In App Designer, when you drag a drop any component from the Component Library the default FontName is Helvetica, FontSize is 12. Personaly I am not a big fan of Helvetica so I change it Calibri manually for every component. Is there a way to change this default FontName?
Clicking Preferences --> App Designer --> you can change the 'Editor' Font, but not the Componets...
Also I cannot find a way to change the FontName for the Tab Group component... is it possible to change Font Name for this component?

Réponses (1)

Shivansh
Shivansh le 4 Oct 2022
Modifié(e) : Shivansh le 5 Oct 2022
Presently there is no way to change the default font style of all the components in app designer. But I have passed this issue to the teams concerned, they might consider this for future releases.
Regarding the query of changing the font style of tab group component. I was unable to find the user interface to change the font style.
But I was able to accomplish this by changing the font style from the code view.
For example, I added the line
app.TabGroup.FontName='Roboto Black'
In the startup function of the app to change the font style to “Roboto black”. (Line 17 in screenshot attached below)
Then I was successfully able to convert font style to Roboto black after running the code.
Hope this helps!

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by