robert
08/09/2023, 3:53 AMfun main() {
application(modules = listOf(
PointerModule,
basicTabbedPanelBehavior(),
Module(name = "AppModule") {
bindSingleton<Animator> { AnimatorImpl(instance(), instance()) }
bindSingleton<PathMetrics> { PathMetricsImpl(instance()) }
})) {
/* Load app */
DoodleApp(
display = instance(),
animator = instance(),
pathMetrics = instance(),
themeManager = instance(),
theme = instance())
}
}
I have a class that holds a reference to the TabbedPanel
val tabbedPanel = TabbedPanel(
visualizer = ScrollPanelVisualizer(),
tabVisualizer = itemVisualizer { item,_,_ -> textVisualizer(mapping[item] ?: "Unknown") },
myAppointments,
available
).apply {
size = Size(1240, 500)
Resizer(this).apply { movable = false}
behavior = BasicTabbedPanelBehavior(BasicTabProducer())
}
It renders the TabbedPanel with white tabs and not text.
Any suggestions or explanations. I did review the thread from stan but fell short on understanding.Nick
08/09/2023, 4:01 AMBehavior
for the `Label`s that will be generated by textVisualizer
. try including the basicLabelBehavior()
module (like you did for the basicTabbedPanelBehavior()
).robert
08/09/2023, 4:08 AM