Skip to content

Suggestion: Add rich text capabilities to DragValue #5825

@Daniikk1012

Description

@Daniikk1012

I recently discovered that there is no easy way of creating a DragValue where the suffix is grayed out. It is useful to highlight what the actual numeric value is, and what is just the unit.

It should be possible to solve this by incorporating rich text in DragValue, perhaps by adding a custom_layouter method, or making prefix and suffix accept Into<WidgetText> like Button.

For now, the solution seems to be either to use a TextEdit, which you will no longer be able to drag, or implement your own DragValue, which is a lot of work to do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions