Fixed welcome page buttons colors in light theme

This commit is contained in:
Abdelilah El Aissaoui 2022-10-19 23:17:36 +02:00
parent fdbf92083a
commit b2812648d3
3 changed files with 10 additions and 15 deletions

View File

@ -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 ->
onTabClosed = onRemoveTab
) { key ->
val newAppTab = newAppTab(
key = key
)
onAddedTab(newAppTab)
newAppTab
},
onTabClosed = onRemoveTab
)
}
}
}

View File

@ -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,
)
}
}

View File

@ -40,7 +40,6 @@ import kotlin.io.path.name
@Composable
fun RepositoriesTabPanel(
modifier: Modifier = Modifier,
tabs: List<TabInformation>,
selectedTabKey: Int,
onTabSelected: (Int) -> Unit,