Dirk Hoffmann
06/01/2021, 7:26 PMfun defaultScrollbarStyle() = ScrollbarStyle(
minimalHeight = 16.dp,
thickness = 8.dp,
shape = RectangleShape,
hoverDurationMillis = 0,
unhoverColor = Color.Black.copy(alpha = 0.12f),
hoverColor = Color.Black.copy(alpha = 0.12f)
)
that it passes down via a
val LocalScrollbarStyle = staticCompositionLocalOf { defaultScrollbarStyle() }
now on dynamically changing dark/light themes whilst Runtime,
what is "the" supposed way that hover related Colors are dependant on MaterialTheme.colors
and the recomposition honours them even when changing the theme whilst runtime ?Kirill Grouchnikov
06/01/2021, 7:30 PMDirk Hoffmann
06/01/2021, 7:33 PMKirill Grouchnikov
06/01/2021, 8:13 PMIgor Demin
06/02/2021, 9:59 AMMaterialTheme
(there is also DesktopMaterialTheme
- shortcut for MaterialTheme { DesktopTheme { } }
)
P.S. Not sure yet, but before CfD 1.0 we can change it, and try to integrate DesktopTheme into MaterialTheme