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

Time picker changes (closes #103) #107

Merged
merged 1 commit into from
Jul 20, 2023
Merged

Conversation

M00NJ
Copy link
Member

@M00NJ M00NJ commented Jul 20, 2023

Also there is an unused import directive in TimerScreen.kt. I left this unchanged for now.

- Fixed time picker being pinned to the top
- Increased number size (closes you-apps#103)
- Small tweaks to the divider color, thickness and padding values to better match the increased number size
@M00NJ
Copy link
Member Author

M00NJ commented Jul 20, 2023

Forgot to include screenshots. Here we go :)

Before
Screenshot_20230720-125028

After
Screenshot_20230720-125022

Copy link
Member

@Bnyro Bnyro left a comment

Choose a reason for hiding this comment

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

Thank you!

value = timerModel.getHours(),
onValueChanged = timerModel::addHours,
range = 0..24
)
NumberPicker(
modifier = Modifier
.weight(1f)
.padding(horizontal = 10.dp),
textStyle = MaterialTheme.typography.headlineMedium,
.padding(start = 16.dp, end = 16.dp),
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
.padding(start = 16.dp, end = 16.dp),
.padding(horizontal = 16.dp),

Copy link
Member

Choose a reason for hiding this comment

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

Just noticed, not that important.

Copy link
Member Author

Choose a reason for hiding this comment

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

You're right. I can change this in the next PR :)

@Bnyro Bnyro merged commit 2e93e26 into you-apps:main Jul 20, 2023
@M00NJ M00NJ deleted the time-picker-changes branch July 20, 2023 11:25
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.

Please, might you increasing the buttons dimensions?
2 participants