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, verticalAlignment = Alignment.CenterVertically,
) { ) {
RepositoriesTabPanel( RepositoriesTabPanel(
modifier = Modifier
.weight(1f),
tabs = tabsInformationList, tabs = tabsInformationList,
selectedTabKey = selectedTabKey.value, selectedTabKey = selectedTabKey.value,
onTabSelected = { newSelectedTabKey -> onTabSelected = { newSelectedTabKey ->
println("New selected tab key $newSelectedTabKey")
selectedTabKey.value = newSelectedTabKey selectedTabKey.value = newSelectedTabKey
}, },
newTabContent = { key ->
val newAppTab = newAppTab(
key = key
)
onAddedTab(newAppTab)
newAppTab
},
onTabClosed = onRemoveTab onTabClosed = onRemoveTab
) ) { key ->
val newAppTab = newAppTab(
key = key
)
onAddedTab(newAppTab)
newAppTab
}
} }
} }

View File

@ -271,14 +271,14 @@ fun ButtonTile(
.size(24.dp), .size(24.dp),
painter = painter, painter = painter,
contentDescription = null, contentDescription = null,
colorFilter = ColorFilter.tint(MaterialTheme.colors.onBackground), colorFilter = ColorFilter.tint(MaterialTheme.colors.onPrimary),
) )
Text( Text(
text = title, text = title,
maxLines = 1, maxLines = 1,
style = MaterialTheme.typography.body1, style = MaterialTheme.typography.body1,
color = MaterialTheme.colors.onBackground, color = MaterialTheme.colors.onPrimary,
) )
} }
} }

View File

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