Skip to content

Generic Element Content in Pane Grid TitleBar#657

Merged
hecrj merged 4 commits into
iced-rs:masterfrom
clarkmoody:feature/pane-grid-title-contents
Dec 22, 2020
Merged

Generic Element Content in Pane Grid TitleBar#657
hecrj merged 4 commits into
iced-rs:masterfrom
clarkmoody:feature/pane-grid-title-contents

Conversation

@clarkmoody
Copy link
Copy Markdown
Contributor

Makes the TitleBar more flexible by replacing the basic string + size with a generic Element.

Not quite sure if I've connected all the dots, especially regarding events/interactions on the elements within the title content.

Upgraded the example program to have a colored Pane ID, showing off a Row containing two Text elements.

Screen Shot 2020-12-10 at 1 47 13 PM

@hecrj hecrj added the feature New feature or request label Dec 10, 2020
@hecrj hecrj added this to the 0.3.0 milestone Dec 10, 2020
This is no longer necessary, as we do not render text directly anymore.
Copy link
Copy Markdown
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

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

Looks great! It simplifies a bunch of code, as users can leverage the Text widget and, therefore, we can avoid rendering the title manually.

Thanks 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants