Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to disable showing the bottom navigation bar #412

Merged
merged 2 commits into from Jun 5, 2023

Conversation

twizmwazin
Copy link
Contributor

This adds a checkbox option to disable the bottom navigation bar throughout the app. Testing locally it seems to work correctly, including migrations.

Copy link
Member

@dessalines dessalines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just that one thing. Thanks for this!

@@ -76,6 +77,7 @@ fun SimpleTopAppBar(
@Composable
fun BottomAppBarAll(
navController: NavController = rememberNavController(),
appSettings: AppSettings? = null,
Copy link
Member

@dessalines dessalines Jun 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since showBottomNav is the only one that's necessary, just pass that in rather than all the settings. If it needs more settings in the future, we can pass in the whole thing.

@dessalines dessalines merged commit f910fd5 into LemmyNet:main Jun 5, 2023
1 check was pending
@dessalines
Copy link
Member

Oops, accidentally merged this early. I'll fix that issue I mentioned.

@twizmwazin
Copy link
Contributor Author

I do plan to keep adding various UI settings to customize the UI to my liking, so I think for the time being passing the whole AppSettings object isn't a bad idea, just to reduce the amount of refractors that are necessary for each incremental option.

@dessalines
Copy link
Member

No problem, we can always change that back then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants