Fixed welcome page buttons colors in light theme
This commit is contained in:
parent
fdbf92083a
commit
b2812648d3
@ -194,24 +194,20 @@ class App {
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
) {
|
||||
RepositoriesTabPanel(
|
||||
modifier = Modifier
|
||||
.weight(1f),
|
||||
tabs = tabsInformationList,
|
||||
selectedTabKey = selectedTabKey.value,
|
||||
onTabSelected = { newSelectedTabKey ->
|
||||
println("New selected tab key $newSelectedTabKey")
|
||||
selectedTabKey.value = newSelectedTabKey
|
||||
},
|
||||
newTabContent = { key ->
|
||||
val newAppTab = newAppTab(
|
||||
key = key
|
||||
)
|
||||
|
||||
onAddedTab(newAppTab)
|
||||
newAppTab
|
||||
},
|
||||
onTabClosed = onRemoveTab
|
||||
)
|
||||
) { key ->
|
||||
val newAppTab = newAppTab(
|
||||
key = key
|
||||
)
|
||||
|
||||
onAddedTab(newAppTab)
|
||||
newAppTab
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -271,14 +271,14 @@ fun ButtonTile(
|
||||
.size(24.dp),
|
||||
painter = painter,
|
||||
contentDescription = null,
|
||||
colorFilter = ColorFilter.tint(MaterialTheme.colors.onBackground),
|
||||
colorFilter = ColorFilter.tint(MaterialTheme.colors.onPrimary),
|
||||
)
|
||||
|
||||
Text(
|
||||
text = title,
|
||||
maxLines = 1,
|
||||
style = MaterialTheme.typography.body1,
|
||||
color = MaterialTheme.colors.onBackground,
|
||||
color = MaterialTheme.colors.onPrimary,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -40,7 +40,6 @@ import kotlin.io.path.name
|
||||
|
||||
@Composable
|
||||
fun RepositoriesTabPanel(
|
||||
modifier: Modifier = Modifier,
|
||||
tabs: List<TabInformation>,
|
||||
selectedTabKey: Int,
|
||||
onTabSelected: (Int) -> Unit,
|
||||
|
Loading…
Reference in New Issue
Block a user