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

Add possibility to show scissors and more display options #264

Merged
merged 29 commits into from
Nov 10, 2024

Conversation

sprain
Copy link
Owner

@sprain sprain commented Nov 7, 2024

Based on #258 by @tafel
Closes #180
Closes #212

This pull request adds Output\DisplayOptions, which allows controlling how the separation information on the qr bill is handled:

  • add arrows next to the text – example
  • display scissors instead – example
  • choose to display scissors at the bottom – example

The default variation is also still available – example.

See example code on how to use it.

As a consequence, AbstractOutput::setPrintable() is now deprecated and will be removed in the next major release.

@sprain sprain changed the title Add possibility to show scissors and more print option Add possibility to show scissors and more display options Nov 7, 2024
@sprain
Copy link
Owner Author

sprain commented Nov 8, 2024

@tafel @kohlerdominik
IMO this is now ready to be released. If you wish, you are welcome to take a look before I merge this.

@tafel
Copy link
Contributor

tafel commented Nov 8, 2024

Everything is fine, I think. Maybe making $dislpayOptions property private in AbstractOutput class, so we force the usage of the method getDisplayOptions() . This way, it's impossible to miss the call to consolidate() before using the options (I admit this is a very minor problem ^^ )

@sprain
Copy link
Owner Author

sprain commented Nov 8, 2024

Maybe making $dislpayOptions property private in AbstractOutput class

Good catch, thanks!

@sprain sprain merged commit bc66bbc into master Nov 10, 2024
18 checks passed
@sprain sprain deleted the tafel-scissors-master branch November 10, 2024 10:48
@kohlerdominik
Copy link
Contributor

Sorry, couldn't have a look at it before now. But based on my quick look through it, it's perfect anyway.. Well done!

@kohlerdominik
Copy link
Contributor

BTW: according to github this was the 100th closed pull request 🎉

grafik

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.

Feature proposals: Add some visual options Feature proposal: Add scissors symbol
3 participants