-
Notifications
You must be signed in to change notification settings - Fork 499
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
btn: macro should add a background to the button #451
Comments
…or btn: Currently just a test commit to trigger feedback how to set the background colof a text element
…or btn: Currently just a test commit to trigger feedback how to set the background colof a text element
…or btn: Currently just a test commit to trigger feedback how to set the background color a text element
Test PR #452 |
Currently blocked by #350. @mojavelinux Any change to merge #350 for the next alpha? @fap- FYI |
Ideally, the theme should be able to control the appearance of the button. There will be some limitations, since we can't do things like a shadow, but if we support background color and border in addition to the normal font settings, it should provide a lot of flexibility. While #350 has some nice ideas, that's not exactly how I plan to implement it. I don't like the hardcoded colors. |
…und and border - add support for background-color, border-color, border-width, and border-radius styles for formatted text - allow button style to be configured by theme - move default content for button into theme
It would be nice if the PDF output would add a themeable background color to a button. I think the relevant macro is convert_inline_button node.
I put up a proof of concept patch very soon but unforunately can't find an example in the existing inline macros for that. The other macros seem to follow another approach for styling so advice or update of my little proof of concept patch would be helpful.
Once this is fixed for buttons, I think a fix for improved kbd: support with a background color and a border should be trivial.
The text was updated successfully, but these errors were encountered: