iced-rs/iced

Additional functionality for sliders

開放

#900 建立於 2021年5月31日

 (3 則留言) (0 個反應) (0 位負責人)Rust (1,572 個分叉)batch import
featuregood first issuewidget

倉庫指標

星標
 (30,491 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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?

貢獻者指南