Skip to content

Conversation

@alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented May 26, 2025

Mode Before After
Dark dark_before dark_after
Light light_before light_after

@AndyScherzinger
Copy link
Member

AndyScherzinger commented May 30, 2025

@alperozturk96 While the coloring is correct now, where does the top-padding/margin come from between bar and search widget?

@alperozturk96
Copy link
Collaborator Author

alperozturk96 commented Jun 2, 2025

@AndyScherzinger Padding shouldn't be added on Android 14 and below. However, on Android 15 the new edge to edge support causes the status bar to overlap with our app’s content.

To fix this, we need to use insets, but only for Android 15 and above. Padding value comes from WindowInsets class.

Handle overlaps

No padding Android 15

before_android_15_oe

With padding Android 15+

after_android_15_oe

After this commit should be good for all Android versions.

@AndyScherzinger AndyScherzinger added this to the 0.26.0 milestone Jun 2, 2025
mahibi

This comment was marked as resolved.

alperozturk96 and others added 4 commits June 11, 2025 06:13
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
…ns/AppCompatActivityExtensions.kt

Signed-off-by: Alper Öztürk <67455295+alperozturk96@users.noreply.github.com>
Signed-off-by: Alper Öztürk <67455295+alperozturk96@users.noreply.github.com>
@alperozturk96 alperozturk96 force-pushed the feature/add-set-status-bar-color-functionality branch from a2bc726 to 88654d1 Compare June 11, 2025 04:13
@alperozturk96 alperozturk96 merged commit 1b77964 into main Jun 11, 2025
12 checks passed
@alperozturk96 alperozturk96 deleted the feature/add-set-status-bar-color-functionality branch June 11, 2025 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants