feat(spin-button): support fraction::Decimal as model input
This commit is contained in:
parent
ccc9b60955
commit
046dd49438
2 changed files with 2 additions and 1 deletions
|
|
@ -28,6 +28,7 @@ tokio = { version = "1.24.2", optional = true }
|
|||
cosmic-panel-config = {git = "https://github.com/pop-os/cosmic-panel", optional = true }
|
||||
sctk = { package = "smithay-client-toolkit", git = "https://github.com/Smithay/client-toolkit", optional = true, rev = "3776d4a" }
|
||||
slotmap = "1.0.6"
|
||||
fraction = "0.13.0"
|
||||
|
||||
[dependencies.cosmic-theme]
|
||||
git = "https://github.com/pop-os/cosmic-theme.git"
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ use fraction::{Bounded, Decimal};
|
|||
use std::hash::Hash;
|
||||
use std::ops::{Add, Sub};
|
||||
|
||||
/// A message emitted by the [`SpinButton`] widget.
|
||||
/// A message emitted by the [`SpinButton`](super) widget.
|
||||
#[derive(Clone, Copy, Debug, Hash)]
|
||||
pub enum Message {
|
||||
Increment,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue