Skip to content

Commit a461d44

Browse files
committed
Assign appropriate background colours to ConceptPreview browser in GraphOutput
1 parent 12c7ad0 commit a461d44

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

view/output/GraphOutput.kt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,7 +1979,9 @@ internal object GraphOutput : RunOutput() {
19791979
override val isActive: Boolean = true
19801980
override var buttons: List<Form.IconButtonArg> = emptyList()
19811981

1982-
private val placeholderPadding = 20.dp
1982+
companion object {
1983+
private val MESSAGE_PADDING = 20.dp
1984+
}
19831985

19841986
@Composable
19851987
override fun BrowserLayout() {
@@ -1990,9 +1992,10 @@ internal object GraphOutput : RunOutput() {
19901992

19911993
@Composable
19921994
private fun SelectVertexMessage() {
1993-
Box(Modifier.fillMaxSize().padding(placeholderPadding), Alignment.Center) {
1994-
Form.Text(Label.GRAPH_CONCEPT_PREVIEW_PLACEHOLDER, align = TextAlign.Center, softWrap = true)
1995-
}
1995+
Box(
1996+
modifier = Modifier.fillMaxSize().background(Theme.studio.backgroundLight).padding(MESSAGE_PADDING),
1997+
contentAlignment = Alignment.Center
1998+
) { Form.Text(Label.GRAPH_CONCEPT_PREVIEW_PLACEHOLDER, align = TextAlign.Center, softWrap = true) }
19961999
}
19972000
}
19982001

@@ -2003,7 +2006,7 @@ internal object GraphOutput : RunOutput() {
20032006

20042007
@Composable
20052008
fun Layout() {
2006-
Column {
2009+
Column(Modifier.fillMaxSize().background(Theme.studio.backgroundMedium)) {
20072010
TitleSection()
20082011
if (props.isNotEmpty()) Table()
20092012
}

0 commit comments

Comments
 (0)