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

Automatically center PADD output on screen #278

Merged
merged 3 commits into from
Dec 4, 2022
Merged

Conversation

rdwebdesign
Copy link
Member

What does this PR aim to accomplish?:

Add an option to automatically center PADD output on screen

How does this PR accomplish the above?:

Adding code to calculate xOffset and yOffset and using the new code added on #268

Link documentation PRs if any are needed to support this PR:
none


By submitting this pull request, I confirm the following:

  1. I have read and understood the contributors guide, as well as this entire template. I understand which branch to base my commits and Pull Requests against.
  2. I have commented my proposed changes within the code and I have tested my changes.
  3. I am willing to help maintain this change if there are issues with it later.
  4. It is compatible with the EUPL 1.2 license
  5. I have squashed any insignificant commits. (git rebase)
  6. I have checked that another pull request for this purpose does not exist.
  7. I have considered, and confirmed that this submission will be valuable to others.
  8. I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
  9. I give this submission freely, and claim no ownership to its content.

  • I have read the above and my PR is ready for review. Check this box to confirm

@rdwebdesign rdwebdesign marked this pull request as draft December 3, 2022 18:54
@rdwebdesign rdwebdesign marked this pull request as ready for review December 3, 2022 20:38
@yubiuser yubiuser mentioned this pull request Dec 3, 2022
@DL6ER
Copy link
Member

DL6ER commented Dec 4, 2022

My honest option is that centering should be the default with an option to disable centering. Users that just update PADD will probably not look up new options and not realize it. (actually, I doubt more than 1% even ever looks if there are any options at all)

In my feeling, this is a feature for the masses and, as such, it seems to be default-behavior-worthy.

@yubiuser
Copy link
Member

yubiuser commented Dec 4, 2022

I like the idea to make this the new default. We would need options like - coff, coff x and coff y
(Maybe with better names)

@rdwebdesign
Copy link
Member Author

If the center will be the default, we don't need specific options to no centering.

I can change the behavior to not center if -xoff or -yoff are set.

@yubiuser
Copy link
Member

yubiuser commented Dec 4, 2022

I think this is a good idea.

@rdwebdesign rdwebdesign requested a review from yubiuser December 4, 2022 19:53
Copy link
Member

@yubiuser yubiuser left a comment

Choose a reason for hiding this comment

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

This line

PADD/padd.sh

Line 1094 in 30e7aa8

PrintLogo "$1"

need to be

moveXOffset; PrintLogo "$1"

@yubiuser yubiuser changed the title Add option to automatically center PADD output on screen Automatically center PADD output on screen Dec 4, 2022
- reorder steps inside SizeChecker();
- remove unnecessary variables;
- change help text;
- add `moveXOffset` before the `PrintLogo` function

Signed-off-by: RD WebDesign <[email protected]>
@yubiuser yubiuser merged commit 49963a2 into development Dec 4, 2022
@yubiuser yubiuser deleted the center_option branch December 4, 2022 21:00
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