Skip to content

Commit

Permalink
fixes to button transitions (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmoulton authored Oct 29, 2024
1 parent 160811b commit 56e95cd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub(crate) fn default_theme() -> Theme {
s.background(active_bg_color)
.color(Color::WHITE.multiply_alpha(0.9))
})
.transition(Background, Transition::linear(400.millis()))
.transition(Background, Transition::linear(100.millis()))
.focus(|s| s.hover(|s| s.background(focus_hover_bg_color)))
.hover(|s| s.background(hover_bg_color))
.padding(padding)
Expand All @@ -86,7 +86,7 @@ pub(crate) fn default_theme() -> Theme {
.height(20.)
.background(Color::WHITE)
.active(|s| s.background(active_bg_color))
.transition(Background, Transition::linear(400.millis()))
.transition(Background, Transition::linear(100.millis()))
.hover(|s| s.background(hover_bg_color))
.focus(|s| s.hover(|s| s.background(focus_hover_bg_color)))
.apply(border_style.clone())
Expand All @@ -100,7 +100,7 @@ pub(crate) fn default_theme() -> Theme {
.row_gap(padding)
.hover(|s| s.background(hover_bg_color))
.padding(padding)
.transition(Background, Transition::linear(400.millis()))
.transition(Background, Transition::linear(100.millis()))
.border_radius(border_radius)
.active(|s| s.class(CheckboxClass, |s| s.background(active_bg_color)))
.focus(|s| {
Expand All @@ -123,7 +123,7 @@ pub(crate) fn default_theme() -> Theme {
.justify_center()
.background(Color::WHITE)
.active(|s| s.background(active_bg_color))
.transition(Background, Transition::linear(400.millis()))
.transition(Background, Transition::linear(100.millis()))
.hover(|s| s.background(hover_bg_color))
.focus(|s| s.hover(|s| s.background(focus_hover_bg_color)))
.apply(border_style.clone())
Expand All @@ -149,7 +149,7 @@ pub(crate) fn default_theme() -> Theme {
.row_gap(padding)
.hover(|s| s.background(hover_bg_color))
.padding(padding)
.transition(Background, Transition::linear(400.millis()))
.transition(Background, Transition::linear(100.millis()))
.border_radius(border_radius)
.active(|s| s.class(RadioButtonClass, |s| s.background(active_bg_color)))
.focus(|s| {
Expand Down

0 comments on commit 56e95cd

Please sign in to comment.