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

Provide three options for donation reminder time #1256

Merged
merged 4 commits into from
Jan 27, 2025

Conversation

sunkup
Copy link
Member

@sunkup sunkup commented Jan 21, 2025

Purpose

Provide three options for donation reminder time.

Short description

  • Create RadioButton composable
  • Add new strings
  • Rename and alter logic of setDontShow to handle different number of months

Radio Buttons in Compose: https://developer.android.com/develop/ui/compose/components/radio-button

Checklist

  • The PR has a proper title, description and label.
  • I have self-reviewed the PR.
  • I have added documentation to complex functions and functions that can be used by other modules.
  • I have added reasonable tests or consciously decided to not add tests.

Closes https://github.com/bitfireAT/davx5/issues/636

@sunkup sunkup added the enhancement New feature or request label Jan 21, 2025
@sunkup sunkup requested a review from ArnyminerZ January 21, 2025 15:09
@sunkup sunkup self-assigned this Jan 21, 2025
@sunkup sunkup requested review from rfc2822 and ArnyminerZ and removed request for ArnyminerZ January 21, 2025 15:13
@ArnyminerZ
Copy link
Member

Just a stylistic thing, but have you thought about using segmented buttons?

ArnyminerZ
ArnyminerZ previously approved these changes Jan 22, 2025
Copy link
Member

@ArnyminerZ ArnyminerZ left a comment

Choose a reason for hiding this comment

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

Looks good

@sunkup
Copy link
Member Author

sunkup commented Jan 22, 2025

Just a stylistic thing, but have you thought about using segmented buttons?

Not segmented buttons, but at the start I did have three normal buttons next to each other. The problem I see with that is that some languages might have long words for "month(s)" and then the last button would flow/break into the next line or become ugly in some other way ...

Copy link
Member

@rfc2822 rfc2822 left a comment

Choose a reason for hiding this comment

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

UI suggestions by @devvv4ever

grafik

app/src/main/res/values/strings.xml Outdated Show resolved Hide resolved
@sunkup
Copy link
Member Author

sunkup commented Jan 27, 2025

New look

image

@sunkup sunkup requested a review from rfc2822 January 27, 2025 11:43
Copy link
Member

@rfc2822 rfc2822 left a comment

Choose a reason for hiding this comment

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

Nice 👍🏻

@rfc2822 rfc2822 force-pushed the provide-three-options-for-donation-remind-time branch from 11e3500 to 3e57108 Compare January 27, 2025 16:46
@rfc2822 rfc2822 merged commit c523cbf into main-ose Jan 27, 2025
6 checks passed
@rfc2822 rfc2822 deleted the provide-three-options-for-donation-remind-time branch January 27, 2025 16:46
rfc2822 pushed a commit that referenced this pull request Jan 27, 2025
* Provide three options for donation reminder time

* Move radio buttons to top card; Change strings

* Use padding instead of height for radio elements
@rfc2822
Copy link
Member

rfc2822 commented Jan 27, 2025

There was an update of the ical4android version, I have taken it out

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

Successfully merging this pull request may close these issues.

3 participants