chore(input): typo in static variable name
This commit is contained in:
parent
a940bef647
commit
1bf1b39bff
3 changed files with 5 additions and 6 deletions
|
|
@ -20,7 +20,7 @@ mod mouse;
|
||||||
mod touchpad;
|
mod touchpad;
|
||||||
|
|
||||||
crate::cache_dynamic_lazy! {
|
crate::cache_dynamic_lazy! {
|
||||||
static ACCELERAION_DESC: String = fl!("acceleration-desc");
|
static ACCELERATION_DESC: String = fl!("acceleration-desc");
|
||||||
static DISABLE_WHILE_TYPING: String = fl!("disable-while-typing");
|
static DISABLE_WHILE_TYPING: String = fl!("disable-while-typing");
|
||||||
static PRIMARY_BUTTON: String = fl!("primary-button");
|
static PRIMARY_BUTTON: String = fl!("primary-button");
|
||||||
static SCROLLING_NATURAL_DESC: String = fl!("scrolling", "natural-desc");
|
static SCROLLING_NATURAL_DESC: String = fl!("scrolling", "natural-desc");
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ fn mouse() -> Section<crate::pages::Message> {
|
||||||
super::PRIMARY_BUTTON.as_str().into(),
|
super::PRIMARY_BUTTON.as_str().into(),
|
||||||
MOUSE_SPEED.as_str().into(),
|
MOUSE_SPEED.as_str().into(),
|
||||||
MOUSE_ACCELERATION.as_str().into(),
|
MOUSE_ACCELERATION.as_str().into(),
|
||||||
super::ACCELERAION_DESC.as_str().into(),
|
super::ACCELERATION_DESC.as_str().into(),
|
||||||
])
|
])
|
||||||
.view::<Page>(|binder, _page, section| {
|
.view::<Page>(|binder, _page, section| {
|
||||||
let input = binder.page::<super::Page>().expect("input page not found");
|
let input = binder.page::<super::Page>().expect("input page not found");
|
||||||
|
|
@ -75,7 +75,7 @@ fn mouse() -> Section<crate::pages::Message> {
|
||||||
)
|
)
|
||||||
.add(
|
.add(
|
||||||
settings::item::builder(&*MOUSE_ACCELERATION)
|
settings::item::builder(&*MOUSE_ACCELERATION)
|
||||||
.description(&*super::ACCELERAION_DESC)
|
.description(&*super::ACCELERATION_DESC)
|
||||||
.toggler(
|
.toggler(
|
||||||
input
|
input
|
||||||
.input_default
|
.input_default
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
use cosmic::iced::Length;
|
|
||||||
use cosmic::widget::{self, settings, text};
|
use cosmic::widget::{self, settings, text};
|
||||||
use cosmic::{Apply, Element};
|
use cosmic::{Apply, Element};
|
||||||
use cosmic_comp_config::input::{AccelProfile, ScrollMethod};
|
use cosmic_comp_config::input::{AccelProfile, ScrollMethod};
|
||||||
|
|
@ -63,7 +62,7 @@ fn touchpad() -> Section<crate::pages::Message> {
|
||||||
super::PRIMARY_BUTTON.as_str().into(),
|
super::PRIMARY_BUTTON.as_str().into(),
|
||||||
TOUCHPAD_SPEED.as_str().into(),
|
TOUCHPAD_SPEED.as_str().into(),
|
||||||
TOUCHPAD_ACCELERAION.as_str().into(),
|
TOUCHPAD_ACCELERAION.as_str().into(),
|
||||||
super::ACCELERAION_DESC.as_str().into(),
|
super::ACCELERATION_DESC.as_str().into(),
|
||||||
super::DISABLE_WHILE_TYPING.as_str().into(),
|
super::DISABLE_WHILE_TYPING.as_str().into(),
|
||||||
])
|
])
|
||||||
.view::<Page>(|binder, _page, section| {
|
.view::<Page>(|binder, _page, section| {
|
||||||
|
|
@ -91,7 +90,7 @@ fn touchpad() -> Section<crate::pages::Message> {
|
||||||
)
|
)
|
||||||
.add(
|
.add(
|
||||||
settings::item::builder(&*TOUCHPAD_ACCELERAION)
|
settings::item::builder(&*TOUCHPAD_ACCELERAION)
|
||||||
.description(&*super::ACCELERAION_DESC)
|
.description(&*super::ACCELERATION_DESC)
|
||||||
.toggler(
|
.toggler(
|
||||||
input
|
input
|
||||||
.input_touchpad
|
.input_touchpad
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue