How to use ThemeService in Uno Platform? #2793
-
|
I’m following the official Uno Platform documentation to use ThemeService: Issue :When resolving IThemeService, it consistently throws "service not found" errors. I tried adding .UseToolkit() to enable ThemeService support, but it resolves to ScopedThemeService instead of ThemeService, which causes this exception: It seems ScopedThemeService requires dependencies like ILogger, Window, IDispatcher, and ISettings, but I’m stuck because I don’t know which types implement these interfaces. Goal :Get the current app theme. Additional Context :Documentation hints ThemeService might be deprecated in favor of ScopedThemeService, but I can’t confirm this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
The Calculator workshop provides an example of how you can use the ThemeService - https://platform.uno/docs/articles/external/uno.samples/reference/SimpleCalc/README.html |
Beta Was this translation helpful? Give feedback.
The Calculator workshop provides an example of how you can use the ThemeService - https://platform.uno/docs/articles/external/uno.samples/reference/SimpleCalc/README.html