mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
SystemMonitor: Use system color themes for graph widgets
This commit is contained in:
parent
feb66564d2
commit
e47af3044a
3 changed files with 10 additions and 16 deletions
|
@ -27,7 +27,9 @@
|
|||
#include "GraphWidget.h"
|
||||
#include <LibGUI/Painter.h>
|
||||
#include <LibGfx/Font.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
#include <LibGfx/Path.h>
|
||||
#include <LibGfx/SystemTheme.h>
|
||||
|
||||
GraphWidget::GraphWidget()
|
||||
{
|
||||
|
@ -49,7 +51,7 @@ void GraphWidget::paint_event(GUI::PaintEvent& event)
|
|||
GUI::Painter painter(*this);
|
||||
painter.add_clip_rect(event.rect());
|
||||
painter.add_clip_rect(frame_inner_rect());
|
||||
painter.fill_rect(event.rect(), m_background_color);
|
||||
painter.fill_rect(event.rect(), palette().base());
|
||||
|
||||
auto inner_rect = frame_inner_rect();
|
||||
float scale = (float)inner_rect.height() / (float)m_max;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue