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

Added 12-clock (AM/PM) support #5

Merged
merged 2 commits into from
Oct 1, 2023
Merged

Added 12-clock (AM/PM) support #5

merged 2 commits into from
Oct 1, 2023

Conversation

syorito-hatsuki
Copy link
Contributor

No description provided.

Copy link
Owner

@Iru21 Iru21 left a comment

Choose a reason for hiding this comment

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

Sorry for such a late review. Just small changes. Thank you for your contribution!

Comment on lines +16 to +23
* Why is this?
* ```
* Collections.sort(linesData, Comparator.comparing(String::length))
* linesData = linesData.reversed()
* ```
* If left that part:
* 1. When switch between 24 and 12 clock modes it moves lines because line length change.
* 2. When someone add localization, it's also going to move lines because words is diff length in different locale
Copy link
Owner

Choose a reason for hiding this comment

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

Intended behaviour. It sorts lines so the longest one is at the top. Wastes less screen space

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Intended behaviour. It sorts lines so the longest one is at the top. Wastes less screen space

Maybe that can be also configurable? I'm ready to contribute it as another PR

Copy link
Owner

Choose a reason for hiding this comment

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

Sure, call it something like "Sort lines by length"

src/main/resources/assets/timedisplay/lang/en_us.json Outdated Show resolved Hide resolved
@Iru21 Iru21 merged commit 01deb93 into Iru21:master Oct 1, 2023
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.

None yet

3 participants