Comments (4)
An interim solution for this is to let the user pass their own multi-line string as a slice
from go-streamdeck.
Is this library still being maintained? If a PR is likely to be accepted, I'll spend a bit of time restoring backwards-compat
I've been working on adding support for multiline text (plus x and y margins, and also justification).
I'm not sure a fully featured wordwrap is that useful given the very small dimensions. I chose to just allow \n
in mulitline text, instead of passing a slice of strings.
(excuse the crappy iphone photo, I didn't feel like dumping the image for each button)
from go-streamdeck.
from go-streamdeck.
Thanks, that's good to know
I'll do a bit more testing and submit a PR
Cheers
from go-streamdeck.
Related Issues (16)
- Use errors properly
- Error handling on missing images HOT 1
- [BUG] Contributing guidelines HOT 1
- [FEATURE] Support multiple Streamdeck models HOT 2
- [BUG] Can't remove a decorator
- [BUG] Image file button sometimes crashes when applying a decorator HOT 1
- Check with various image formats
- [BUG] sd.UnsetDecorator doesn't work for imagefile buttons
- [BUG] Border decorator only works for the XL HOT 4
- Support animated gifs
- [BUG] Images not scaled exactly to 80x80 pixels, Stream Deck Mini will not display HOT 1
- Make a way to detach the button callback HOT 1
- Text on a button HOT 1
- Reset the USB HID comms on Open()
- Support multiple button press listeners
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-streamdeck.