chore(input): remove double click speed

This commit is contained in:
Michael Aaron Murphy 2024-02-19 16:00:09 +01:00 committed by Michael Murphy
parent 147f290bb3
commit 4854cc07cb
12 changed files with 0 additions and 47 deletions

View file

@ -22,8 +22,6 @@ mod touchpad;
crate::cache_dynamic_lazy! {
static ACCELERAION_DESC: String = fl!("acceleration-desc");
static DISABLE_WHILE_TYPING: String = fl!("disable-while-typing");
static DOUBLE_CLICK_SPEED_DESC: String = fl!("double-click-speed", "desc");
static DOUBLE_CLICK_SPEED: String = fl!("double-click-speed");
static PRIMARY_BUTTON: String = fl!("primary-button");
static SCROLLING_NATURAL_DESC: String = fl!("scrolling", "natural-desc");
static SCROLLING_NATURAL: String = fl!("scrolling", "natural");

View file

@ -49,8 +49,6 @@ fn mouse() -> Section<crate::pages::Message> {
MOUSE_SPEED.as_str().into(),
MOUSE_ACCELERATION.as_str().into(),
super::ACCELERAION_DESC.as_str().into(),
super::DOUBLE_CLICK_SPEED.as_str().into(),
super::DOUBLE_CLICK_SPEED_DESC.as_str().into(),
])
.view::<Page>(|binder, _page, section| {
let input = binder.page::<super::Page>().expect("input page not found");
@ -87,13 +85,6 @@ fn mouse() -> Section<crate::pages::Message> {
|x| Message::SetAcceleration(x, false),
),
)
.add(
settings::item::builder(&*super::DOUBLE_CLICK_SPEED)
.description(&*super::DOUBLE_CLICK_SPEED_DESC)
.control(widget::slider(0..=100, 0, |x| {
Message::SetDoubleClickSpeed(x, false)
})),
)
.apply(Element::from)
.map(crate::pages::Message::Input)
})

View file

@ -65,8 +65,6 @@ fn touchpad() -> Section<crate::pages::Message> {
TOUCHPAD_ACCELERAION.as_str().into(),
super::ACCELERAION_DESC.as_str().into(),
super::DISABLE_WHILE_TYPING.as_str().into(),
super::DOUBLE_CLICK_SPEED.as_str().into(),
super::DOUBLE_CLICK_SPEED_DESC.as_str().into(),
])
.view::<Page>(|binder, _page, section| {
let input = binder.page::<super::Page>().expect("input page not found");
@ -109,13 +107,6 @@ fn touchpad() -> Section<crate::pages::Message> {
|enabled| Message::DisableWhileTyping(enabled, true),
),
)
.add(
settings::item::builder(&*super::DOUBLE_CLICK_SPEED)
.description(&*super::DOUBLE_CLICK_SPEED_DESC)
.control(widget::slider(0..=100, 0, |x| {
Message::SetDoubleClickSpeed(x, true)
})),
)
.apply(Element::from)
.map(crate::pages::Message::Input)
})