summaryrefslogtreecommitdiff
path: root/MenuApplets/CPUGraph
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-24 22:21:52 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-24 22:21:52 +0100
commitd8d86ec38d68cff025c474144ed559ed10bc9194 (patch)
treebd51d9a7510b79d5029d980e66586def238b6d4b /MenuApplets/CPUGraph
parent7ca759501228350477a26e579f3ad8dc6efccd78 (diff)
downloadserenity-d8d86ec38d68cff025c474144ed559ed10bc9194.zip
CPUGraph.MenuApplet: Use a palette color for the graph
Diffstat (limited to 'MenuApplets/CPUGraph')
-rw-r--r--MenuApplets/CPUGraph/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/MenuApplets/CPUGraph/main.cpp b/MenuApplets/CPUGraph/main.cpp
index ed6744bdfd..a7fe74d525 100644
--- a/MenuApplets/CPUGraph/main.cpp
+++ b/MenuApplets/CPUGraph/main.cpp
@@ -1,5 +1,6 @@
#include <AK/CircularQueue.h>
#include <LibCore/CProcessStatisticsReader.h>
+#include <LibDraw/Palette.h>
#include <LibGUI/GApplication.h>
#include <LibGUI/GPainter.h>
#include <LibGUI/GWidget.h>
@@ -41,7 +42,7 @@ private:
painter.draw_line(
{ i, rect().bottom() },
{ i, (int)(height() - (cpu_usage * (float)height())) },
- Color::from_rgb(0xaa6d4b));
+ palette().menu_selection());
++i;
}
}