iced-rs/iced

Additional functionality for sliders

オープン

#900 opened on 2021/05/31

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (1,572 件のフォーク)batch import
featuregood first issuewidget

Repository metrics

Stars
 (30,491 個のスター)
PR merge metrics
 (平均マージ 24d 11h) (30d で 11 merged PRs)

説明

I'm working on an application which mainly consists for sliders for parameter control. For better user experience, it would be nice to offer two features: reset to default and fine control.

On VST plugins this is normally done via double-clicks and/or modifier keys. E.g. double-clicking resets the slider to a default (mostly 0), alternatively Ctrl-/Cmd-Klick also does it. For fine control, often Shift-dragging is used. Fine control is useful in cases where the slider covers a large value range with only little screen space.

Is there a way to add such functionality with the existing code via traits or would that require an update to the widgets?

コントリビューターガイド