mirror of
https://gitlab.freedesktop.org/pipewire/helvum
synced 2026-03-15 03:26:10 +08:00
graph: Redesign nodes and ports
Nodes now have a background using the libadwaita .card style class. Ports now have a circular handle, which is positioned on the edge of the node so that half of the circle sticks out. Ports are also no longer themed like a button and don't receive a color based on the guessed media type, in a future commit, the handle will be colored instead.
This commit is contained in:
@@ -223,8 +223,6 @@ mod imp {
|
||||
let widget = &*self.obj();
|
||||
let alloc = widget.allocation();
|
||||
|
||||
// self.snapshot_background(widget, snapshot);
|
||||
|
||||
// Draw all visible children
|
||||
self.nodes
|
||||
.borrow()
|
||||
@@ -538,7 +536,7 @@ mod imp {
|
||||
});
|
||||
let other_anchor = picked_port_anchor.unwrap_or(drag_cursor);
|
||||
|
||||
let (output_anchor, input_anchor) = match port.direction() {
|
||||
let (output_anchor, input_anchor) = match Direction::from_raw(port.direction()) {
|
||||
Direction::Output => (&port_anchor, &other_anchor),
|
||||
Direction::Input => (&other_anchor, &port_anchor),
|
||||
_ => unreachable!(),
|
||||
|
||||
Reference in New Issue
Block a user