libsysprof-gtk: add specialized symbol label for descendants

This allows us to provide a bit more context to things in the descendants
callgraph based on the symbol. Context switches get specialized highlight
as well as All Processes and Processes nodes.
This commit is contained in:
Christian Hergert
2023-06-14 12:09:27 -07:00
parent 2a65bf30af
commit 8edab49028
6 changed files with 269 additions and 8 deletions

View File

@ -30,5 +30,33 @@ progresscell label.in-progress {
color: @accent_fg_color;
}
callgraphview {
font-size: .9em;
}
callgraphview treeexpander indent { -gtk-icon-size: 8px; }
callgraphview treeexpander indent:nth-child(n+20) { -gtk-icon-size: 0px; }
callgraphview symbol {
margin: -1px -3px;
padding: 1px 6px;
}
callgraphview symbol.context-switch,
callgraphview symbol.process,
callgraphview symbol.root,
callgraphview symbol.unwindable {
font-weight: 600;
}
callgraphview row:not(:selected) treeexpander expander:checked+box symbol.process,
callgraphview row:not(:selected) treeexpander expander:checked+box symbol.root {
border-radius: 9999px;
background-color: alpha(currentColor, .05);
}
callgraphview row:not(:selected) treeexpander symbol.context-switch {
border-radius: 9999px;
background-color: alpha(@warning_color, .1);
}
callgraphview row:not(:selected) treeexpander symbol.unwindable {
border-radius: 9999px;
background-color: alpha(@error_color, .1);
}