Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Views/SystemView/SystemCPUView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ public class Monitor.SystemCPUView : Monitor.WidgetResource {

public SystemCPUView (CPU _cpu) {
cpu = _cpu;
title = cpu.model_name;

title = _("Processor");
description = cpu.model_name;

set_popover_more_info (new SystemCPUInfoPopover (cpu));

Expand Down
3 changes: 2 additions & 1 deletion src/Views/SystemView/SystemGPUView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public class Monitor.SystemGPUView : Monitor.WidgetResource {
public SystemGPUView (IGPU _gpu) {
gpu = _gpu;

title = gpu.name;
title = (_("Graphics"));
description = gpu.name;

gpu_chart = new Chart (1);
gpu_chart.set_serie_color (0, Utils.Colors.get_rgba_color (Utils.Colors.LIME_500));
Expand Down
6 changes: 6 additions & 0 deletions src/Widgets/WidgetResource/WidgetResource.vala
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ public class Monitor.WidgetResource : Gtk.Box {
}
}

public string description {
set {
_title.secondary_text = value;
}
}

public string main_metric_value {
set {
main_metric_label.label = value;
Expand Down
Loading