Hi! I downloaded RealWorld example application. I want to add a Dark mode to this project using this information Dark mode documentation. I added dependency in build.gragle.kts (screenshot below). But when I try to import theme manager
import io.kvision.theme.ThemeManager
it says 'Unresolved reference: theme'. Could you help me, please?
r
Robert Jaros
06/12/2023, 7:18 PM
Hello
Robert Jaros
06/12/2023, 7:22 PM
The realworld example is a bit outdated, it's currently using KVision 5.13 from July 2022. You would have to upgrade the project to the current version (6.4.0) to use
ThemeManager
.
Robert Jaros
06/12/2023, 7:24 PM
But first of all - the dark mode support in KVision is based on Bootstrap 5.3.0 color modes.
Robert Jaros
06/12/2023, 7:25 PM
Realworld example doesn't use Bootstrap at all, so it will not work.
n
Nazar Pohonchuk
06/12/2023, 7:30 PM
@Robert Jaros thank you for the answers. Could you suggest some other easy feature, that I can implement?