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,
|
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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user