Consolidate desktop controls with editable holidays and a running-window tray
This commit is contained in:
1 parent
9908dde9f8
commit
326465952a
55 files changed
+4207
-450
No files matched your search
@@ -40,7 +40,7 @@ impl Default for Profile {
|
||||
expanded_width: 340.,
|
||||
workspaces_height: 176.,
|
||||
media_height: 170.,
|
||||
calendar_height: 230.,
|
||||
calendar_height: 650.,
|
||||
notifications_height: 176.,
|
||||
controls_height: 248.,
|
||||
expanded_radius: 26.,
|
||||
@@ -415,7 +415,7 @@ mod tests {
|
||||
assert!(!hub.active());
|
||||
hub.retarget(Mode::Expanded(Content::Calendar), [800., 600.])
|
||||
.unwrap();
|
||||
assert_eq!(hub.target_size(), [340., 230.]);
|
||||
assert_eq!(hub.target_size(), [340., 600.]); // clipped to the output
|
||||
hub.advance(Duration::from_millis(120), false);
|
||||
assert_eq!(hub.sample().opacity, 0.);
|
||||
assert_eq!(hub.sample().previous_opacity, 0.);
|
||||
@@ -469,7 +469,7 @@ mod tests {
|
||||
}
|
||||
let overshoot = (peak - 340.) / (340. - 150.);
|
||||
assert!((0.04..0.05).contains(&overshoot));
|
||||
assert_eq!(hub.sample().geometry.bounds, Rect::new(0., 0., 340., 230.));
|
||||
assert_eq!(hub.sample().geometry.bounds, Rect::new(0., 0., 340., 600.));
|
||||
assert!(!hub.active());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user