summaryrefslogtreecommitdiffstats
path: root/style/src/scrollable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'style/src/scrollable.rs')
-rw-r--r--style/src/scrollable.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/style/src/scrollable.rs b/style/src/scrollable.rs
index 64ed8462..a3f3db20 100644
--- a/style/src/scrollable.rs
+++ b/style/src/scrollable.rs
@@ -45,6 +45,11 @@ pub trait StyleSheet {
self.hovered(style)
}
+ /// Produces the style of a scrollbar when mouse is over the scrollable area.
+ fn focused(&self, style: &Self::Style) -> Scrollbar {
+ self.active(style)
+ }
+
/// Produces the style of an active horizontal scrollbar.
fn active_horizontal(&self, style: &Self::Style) -> Scrollbar {
self.active(style)
@@ -59,4 +64,9 @@ pub trait StyleSheet {
fn dragging_horizontal(&self, style: &Self::Style) -> Scrollbar {
self.hovered_horizontal(style)
}
+
+ /// Produces the style of a horizontal scrollbar when mouse is over the scrollable area.
+ fn focused_horizontal(&self, style: &Self::Style) -> Scrollbar {
+ self.active_horizontal(style)
+ }
}