diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-24 22:21:52 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-24 22:21:52 +0100 |
commit | d8d86ec38d68cff025c474144ed559ed10bc9194 (patch) | |
tree | bd51d9a7510b79d5029d980e66586def238b6d4b /MenuApplets/CPUGraph | |
parent | 7ca759501228350477a26e579f3ad8dc6efccd78 (diff) | |
download | serenity-d8d86ec38d68cff025c474144ed559ed10bc9194.zip |
CPUGraph.MenuApplet: Use a palette color for the graph
Diffstat (limited to 'MenuApplets/CPUGraph')
-rw-r--r-- | MenuApplets/CPUGraph/main.cpp | 3 |
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; } } |