The constructor is internal so you can't create it...
# doodle
n
The constructor is internal so you can't create it yourself. The
application()
is the only way to get one. What's your use case?
c
We wanna theme Label, where-by it'll be themed before being added to the App
We thought since themes can be passed into the application so is TextMetrics.
n
Are you using the ThemeManager? Setting a theme will ensure any View added to the app, even if the all has already been running, will be themed (if the theme has the right behavior for the view).
TextMetrics can be passed in as well.
c
As a module??
Like we inject
Modules.PointerModule
n
No need for an additional module. It is available for injection just like Display. Simply do:
Copy code
application() {
    YourApp(
        //…
        textMetrics = instance(),
        // …
    )
}