fix: show active dots

This commit is contained in:
Ashley Wulber 2022-07-20 11:48:51 -04:00
parent 83fc8893ec
commit 29e029d626
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
3 changed files with 10 additions and 3 deletions

View file

@ -50,7 +50,7 @@ impl DockItem {
..set_valign(Align::Center);
..add_css_class("transparent");
};
// TODO dots inverse color of parent with gsk blend modes?
item_box.append(&image);
item_box.append(&dots);
let popover = cascade! {
@ -111,6 +111,7 @@ impl DockItem {
while let Some(c) = dots.first_child() {
dots.remove(&c);
}
for _ in active.0 {
dots.append(&cascade! {
Box::new(Orientation::Horizontal, 0);

View file

@ -57,6 +57,12 @@ button.dock_item:hover {
background: rgba(255, 255, 255, 0.1);
}
box.dock_dots {
background: white;
padding: 2px;
border-radius: 4px;
}
*.transparent {
border-color: transparent;
background: transparent;