From a7607f1698af5737722deacfb36d387ee9334782 Mon Sep 17 00:00:00 2001 From: IronVeil Date: Mon, 12 Jun 2023 00:08:37 +0100 Subject: [PATCH] Highlight the current screen in bottombar (#531) Signed-off-by: IronVeil --- .../java/com/jerboa/ui/components/common/AppBars.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/jerboa/ui/components/common/AppBars.kt b/app/src/main/java/com/jerboa/ui/components/common/AppBars.kt index 98bd12203..0691f9a08 100644 --- a/app/src/main/java/com/jerboa/ui/components/common/AppBars.kt +++ b/app/src/main/java/com/jerboa/ui/components/common/AppBars.kt @@ -120,7 +120,7 @@ fun BottomAppBarAll( ) } }, - selected = false, + selected = screen == "home", onClick = { navController.navigate("home") }, @@ -144,7 +144,7 @@ fun BottomAppBarAll( onClick = { navController.navigate("communityList") }, - selected = false, + selected = screen == "communityList", ) NavigationBarItem( icon = { @@ -164,7 +164,7 @@ fun BottomAppBarAll( onClick = { onClickInbox() }, - selected = false, + selected = screen == "inbox", ) NavigationBarItem( icon = { @@ -184,7 +184,7 @@ fun BottomAppBarAll( onClick = { onClickSaved() }, - selected = false, + selected = screen == "saved", ) NavigationBarItem( icon = { @@ -202,7 +202,7 @@ fun BottomAppBarAll( } }, onClick = onClickProfile, - selected = false, + selected = screen == "saved", ) } }