https://kotlinlang.org logo
n

Nazar Pohonchuk

06/12/2023, 6:57 PM
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
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
.
But first of all - the dark mode support in KVision is based on Bootstrap 5.3.0 color modes.
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?
r

Robert Jaros

06/12/2023, 7:35 PM
Searching for articles perhaps? 🙂
2 Views