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

UI Tweaks #19

Merged
merged 2 commits into from
Jan 14, 2025
Merged

UI Tweaks #19

merged 2 commits into from
Jan 14, 2025

Conversation

ISNIT0
Copy link
Member

@ISNIT0 ISNIT0 commented Jan 14, 2025

  • Hide bottom nav by default (so the shutter button is clickable)
  • Implement orientation responsiveness, so landscape photos can be taken

viewModel.pauseRecording()
Icon(
imageVector = Icons.Filled.Pause,
contentDescription = "Pause Recording",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thought: Is it worth starting localisation early? To save work adding it in later. Not suggesting in this PR tho.

Copy link
Member Author

Choose a reason for hiding this comment

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

Agree, there are a bunch of things, including colors and magic numbers that also need to be moved. I'll do some research into localisation techniques in Android

Comment on lines +13 to +16
orientation in 330..360 || orientation in 0..30 -> 0 // Portrait
orientation in 60..120 -> -90 // Landscape (Right)
orientation in 150..210 -> 180 // Upside down
orientation in 240..300 -> 90 // Landscape (Left)
Copy link
Collaborator

Choose a reason for hiding this comment

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

How does this behave when the phone is held between 300 & 330? Are these boundaries added to stop the phone flipping between orientations when the phone is held at weird angles?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, stops it from flickering when close to the edge

WindowCompat.setDecorFitsSystemWindows(window, false)
window.statusBarColor = android.graphics.Color.TRANSPARENT
window.navigationBarColor = android.graphics.Color.TRANSPARENT

// Hide bottom navigation bar by default
Copy link
Collaborator

Choose a reason for hiding this comment

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

as i see most apps don't hide the nav buttons
need to ask people who still use this type of navigation

Copy link
Member Author

Choose a reason for hiding this comment

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

True, let's come back to this in future - keen to get this branch closed

Copy link
Collaborator

@IzaakBH IzaakBH left a comment

Choose a reason for hiding this comment

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

Lgtm

@ISNIT0 ISNIT0 merged commit 861ce33 into main Jan 14, 2025
3 checks passed
@ISNIT0 ISNIT0 deleted the ISNIT0/ui-tweaks branch January 14, 2025 22: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.

3 participants