{{ message }}
feat: Add alignment property to labels and implement touch bar background#510
Merged
Merged
Conversation
…und image handling
…es in DeckController and BackgroundVideoCache
Contributor
|
This looks good to me, but I'm not super familiar with this area of the code, so hopefully @Core447 can chime in |
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Pull Request: Add Label Alignment & Touchbar Background Image Support
🎯 Summary
This PR introduces two key features:
✨ Features
Label Alignment Property
Adds horizontal text alignment options for key labels, giving users more control over label positioning.
Changes:
alignmentfield toKeyLabeldataclass with values:"left","center","right"AlignmentButtonswidget in the Label Editor with intuitive toggle buttonsUI:
format-justify-left-symboliciconformat-justify-center-symboliciconformat-justify-right-symboliciconTouchbar Background Image Handling
Enables users to set custom background images for the Stream Deck Plus touchbar/touchscreen.
Changes:
ImageRowinBackgroundEditorfor touchscreen inputs📁 Files Changed
src/backend/DeckManagement/Subclasses/KeyLabel.pyalignmentpropertysrc/backend/DeckManagement/DeckController.pysrc/backend/PageManagement/Page.pyset_label_alignment(),get_background_image(),set_background_image()src/windows/mainWindow/elements/Sidebar/elements/LabelEditor.pyAlignmentButtonswidget and handlerssrc/windows/mainWindow/elements/Sidebar/elements/BackgroundEditor.pyImageRowfor touchscreen backgroundssrc/windows/mainWindow/elements/Sidebar/elements/ScreenEditor.pyBackgroundEditorto touchscreen sidebar🔧 Technical Details
Label Alignment Logic:
Background Image Compositing Order:
🧪 Testing
📝 Notes
"center"(backwards compatible)