Skip to content

Commit

Permalink
Merge 'main' into multiple-processes-selection
Browse files Browse the repository at this point in the history
  • Loading branch information
nokyan committed Oct 19, 2024
2 parents 3badfba + 5583d7d commit 6974fa9
Show file tree
Hide file tree
Showing 28 changed files with 1,540 additions and 645 deletions.
2 changes: 2 additions & 0 deletions data/resources/icons/npu-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions data/resources/resources.gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<file preprocess="xml-stripblanks" alias="loop-device-symbolic.svg">icons/loop-device-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="mapped-device-symbolic.svg">icons/mapped-device-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="memory-symbolic.svg">icons/memory-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="npu-symbolic.svg">icons/npu-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="nvme-symbolic.svg">icons/nvme-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="options-symbolic.svg">icons/options-symbolic.svg</file>
<file preprocess="xml-stripblanks" alias="processor-symbolic.svg">icons/processor-symbolic.svg</file>
Expand Down Expand Up @@ -55,6 +56,7 @@
<file compressed="true" preprocess="xml-stripblanks">ui/pages/gpu.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/pages/memory.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/pages/network.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/pages/npu.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/pages/processes.ui</file>
<file compressed="true" preprocess="xml-stripblanks" alias="gtk/help-overlay.ui">ui/shortcuts.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/widgets/application_name_cell.ui</file>
Expand Down
120 changes: 120 additions & 0 deletions data/resources/ui/pages/npu.ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="ResNPU" parent="AdwBin">
<property name="child">
<object class="GtkScrolledWindow">
<child>
<object class="AdwClamp">
<property name="maximum-size">768</property>
<child>
<object class="GtkBox">
<property name="margin-top">24</property>
<property name="margin-bottom">24</property>
<property name="margin-start">16</property>
<property name="margin-end">16</property>
<property name="spacing">24</property>
<property name="orientation">vertical</property>
<property name="hexpand">true</property>
<property name="valign">start</property>
<property name="vexpand">true</property>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Usage</property>
<child>
<object class="ResGraphBox" id="npu_usage"/>
</child>
<child>
<object class="ResGraphBox" id="memory_usage"/>
</child>
<child>
<object class="AdwActionRow" id="npu_clockspeed">
<property name="title" translatable="yes">NPU Frequency</property>
<style>
<class name="property"/>
</style>
<property name="subtitle-selectable">true</property>
</object>
</child>
<child>
<object class="AdwActionRow" id="memory_clockspeed">
<style>
<class name="property"/>
</style>
<property name="subtitle-selectable">true</property>
<property name="title" translatable="yes">Memory Frequency</property>
</object>
</child>
<child>
<object class="AdwActionRow" id="power_usage">
<property name="title" translatable="yes">Power Usage</property>
<style>
<class name="property"/>
</style>
<property name="subtitle-selectable">true</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Sensors</property>
<child>
<object class="AdwActionRow" id="temperature">
<property name="title" translatable="yes">Temperature</property>
<style>
<class name="property"/>
</style>
<property name="subtitle-selectable">true</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Properties</property>
<child>
<object class="AdwActionRow" id="manufacturer">
<style>
<class name="property"/>
</style>
<property name="subtitle-selectable">true</property>
<property name="title" translatable="yes">Manufacturer</property>
</object>
</child>
<child>
<object class="AdwActionRow" id="pci_slot">
<style>
<class name="property"/>
</style>
<property name="subtitle-selectable">true</property>
<property name="title" translatable="yes">PCI Slot</property>
</object>
</child>
<child>
<object class="AdwActionRow" id="driver_used">
<style>
<class name="property"/>
</style>
<property name="subtitle-selectable">true</property>
<property name="title" translatable="yes">Driver Used</property>
</object>
</child>
<child>
<object class="AdwActionRow" id="max_power_cap">
<style>
<class name="property"/>
</style>
<property name="subtitle-selectable">true</property>
<property name="title" translatable="yes">Max Power Cap</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</property>
</template>
</interface>
Loading

0 comments on commit 6974fa9

Please sign in to comment.