Browse Source

[SplitPane] Improve button labels in demo

Improved the button labels in the SplitPane demo to be more descriptive.
"Hide V First" and
 "Show V First" are now "Hide Left Pane" and "Show Left Pane".
"Hide H First" and "Show H First" are now "Hide Top Pane" and "Show Top Pane".
pull/5051/head
Ahmed Hosny 5 months ago
parent
commit
19229cdf4d
  1. 4
      components/SplitPane/demo/src/jvmMain/kotlin/org/jetbrains/compose/splitpane/demo/Main.kt

4
components/SplitPane/demo/src/jvmMain/kotlin/org/jetbrains/compose/splitpane/demo/Main.kt

@ -60,10 +60,10 @@ fun main() = singleWindowApplication(
}
Button(onClick = { splitterState.firstVisible = !splitterState.firstVisible }) {
Text(if (splitterState.firstVisible) "Hide V First" else "Show V First")
Text(if (splitterState.firstVisible) "Hide Left Pane" else "Show Left Pane")
}
Button(onClick = { hSplitterState.firstVisible = !hSplitterState.firstVisible }) {
Text(if (hSplitterState.firstVisible) "Hide H First" else "Show H First")
Text(if (hSplitterState.firstVisible) "Hide Top Pane" else "Show Top Pane")
}
OutlinedTextField(value = delta, onValueChange = { delta = it }, label = { Text("Delta") })

Loading…
Cancel
Save