mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
visualizer-view: add SpVisualizerView
This adds a new helper widget SpVisualizerView to simplify using visualizers from applications using libsysprof-ui-2 such as Builder. We can manage the view range, zoom, etc from this widget going forward.
This commit is contained in:
@ -11,17 +11,17 @@ popover scrolledwindow {
|
||||
border-top: 1px solid alpha(@borders, 0.75);
|
||||
}
|
||||
|
||||
list.visualizers {
|
||||
visualizers list {
|
||||
background: @theme_bg_color;
|
||||
}
|
||||
|
||||
list.visualizers row {
|
||||
visualizers list row {
|
||||
background: @content_view_bg;
|
||||
border-bottom: 1px solid alpha(@borders, 0.2);
|
||||
}
|
||||
|
||||
list.visualizers row:backdrop,
|
||||
list.visualizers row:last-child {
|
||||
visualizers list row:backdrop,
|
||||
visualizers list row:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
|
||||
@ -164,38 +164,16 @@
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="visible">true</property>
|
||||
<child>
|
||||
<object class="GtkOverlay" id="visualizer_overlay">
|
||||
<object class="SpVisualizerView" id="visualizers">
|
||||
<property name="visible">true</property>
|
||||
<child type="overlay">
|
||||
<object class="SpVisualizerTicks">
|
||||
<property name="valign">start</property>
|
||||
<property name="hexpand">true</property>
|
||||
<child type="visualizer">
|
||||
<object class="SpCpuVisualizerRow" id="cpu_row">
|
||||
<property name="title" translatable="yes">CPU</property>
|
||||
<property name="height-request">75</property>
|
||||
<property name="selectable">false</property>
|
||||
<property name="visible">true</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScrolledWindow">
|
||||
<property name="min-content-height">75</property>
|
||||
<property name="max-content-height">225</property>
|
||||
<property name="visible">true</property>
|
||||
<child>
|
||||
<object class="SpVisualizerList" id="visualizer_rows">
|
||||
<property name="visible">true</property>
|
||||
<style>
|
||||
<class name="visualizers"/>
|
||||
</style>
|
||||
<child>
|
||||
<object class="SpCpuVisualizerRow" id="cpu_row">
|
||||
<property name="title" translatable="yes">CPU</property>
|
||||
<property name="height-request">75</property>
|
||||
<property name="selectable">false</property>
|
||||
<property name="visible">true</property>
|
||||
<property name="y-lower">0.0</property>
|
||||
<property name="y-upper">100.0</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<property name="y-lower">0.0</property>
|
||||
<property name="y-upper">100.0</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
||||
Reference in New Issue
Block a user