fix: show active dots
This commit is contained in:
parent
83fc8893ec
commit
29e029d626
3 changed files with 10 additions and 3 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
|
@ -2141,7 +2141,7 @@ checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244"
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "relm4"
|
name = "relm4"
|
||||||
version = "0.5.0-beta.1"
|
version = "0.5.0-beta.1"
|
||||||
source = "git+https://github.com/Relm4/Relm4.git?branch=next#746d244004e23764294b23519f6f8be1002c1ceb"
|
source = "git+https://github.com/relm4/relm4?branch=next#746d244004e23764294b23519f6f8be1002c1ceb"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-broadcast",
|
"async-broadcast",
|
||||||
"async-oneshot",
|
"async-oneshot",
|
||||||
|
|
@ -2158,7 +2158,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "relm4-macros"
|
name = "relm4-macros"
|
||||||
version = "0.5.0-beta.1"
|
version = "0.5.0-beta.1"
|
||||||
source = "git+https://github.com/Relm4/Relm4.git?branch=next#746d244004e23764294b23519f6f8be1002c1ceb"
|
source = "git+https://github.com/relm4/relm4?branch=next#746d244004e23764294b23519f6f8be1002c1ceb"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ impl DockItem {
|
||||||
..set_valign(Align::Center);
|
..set_valign(Align::Center);
|
||||||
..add_css_class("transparent");
|
..add_css_class("transparent");
|
||||||
};
|
};
|
||||||
// TODO dots inverse color of parent with gsk blend modes?
|
|
||||||
item_box.append(&image);
|
item_box.append(&image);
|
||||||
item_box.append(&dots);
|
item_box.append(&dots);
|
||||||
let popover = cascade! {
|
let popover = cascade! {
|
||||||
|
|
@ -111,6 +111,7 @@ impl DockItem {
|
||||||
while let Some(c) = dots.first_child() {
|
while let Some(c) = dots.first_child() {
|
||||||
dots.remove(&c);
|
dots.remove(&c);
|
||||||
}
|
}
|
||||||
|
|
||||||
for _ in active.0 {
|
for _ in active.0 {
|
||||||
dots.append(&cascade! {
|
dots.append(&cascade! {
|
||||||
Box::new(Orientation::Horizontal, 0);
|
Box::new(Orientation::Horizontal, 0);
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,12 @@ button.dock_item:hover {
|
||||||
background: rgba(255, 255, 255, 0.1);
|
background: rgba(255, 255, 255, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
box.dock_dots {
|
||||||
|
background: white;
|
||||||
|
padding: 2px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
*.transparent {
|
*.transparent {
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue