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

AccompanistのSystemUiControllerを使用しないようにする #198

Merged
merged 3 commits into from
Sep 2, 2023

Conversation

kosenda
Copy link
Owner

@kosenda kosenda commented Sep 2, 2023

Issue

fix #194

Overview

  • AccompanistのSystemUiControllerを取り除いた
  • 代わりのActivityのEdgeToEdge.enableEdgeToEdgeを使用するようにした
  • NowInAndroidが参考になった(リンクは、プルリクだと迷惑かけそうだからXを経由させる)
  • SystemBarStyle.autodetectDarkModeはドキュメント見ると不要そうに見えたが、設定しないとアイコンと背景が同色になってしまったため必要

Reference

Screenshot

Before After
Untitled.1.mp4
Untitled.mp4

@KSNDBOT
Copy link
Collaborator

KSNDBOT commented Sep 2, 2023

JaCoCo Code Coverage 68.2% ✅

Class Covered Meta Status

Generated by 🚫 Danger

detectDarkMode = { isDarkTheme },
),
)
onDispose { }
Copy link
Collaborator

Choose a reason for hiding this comment

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

⚠️ Unnecessary long whitespace

@kosenda kosenda merged commit 5307676 into main Sep 2, 2023
@kosenda kosenda deleted the feature/migrate-enable-system-bar-contoller branch September 2, 2023 07:32
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.

AccompanistのSystemUiControllerを使用しないようにする
2 participants