1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:38:10 +00:00

ResourceGraph.MenuApplet: Make these a little bit smaller

This commit is contained in:
Andreas Kling 2021-03-30 23:42:10 +02:00
parent 87b2725b1f
commit de2bf8d232

View file

@ -49,7 +49,7 @@ class GraphWidget final : public GUI::Frame {
C_OBJECT(GraphWidget);
public:
static constexpr size_t history_size = 30;
static constexpr size_t history_size = 24;
GraphWidget(GraphType graph_type, Optional<Gfx::Color> graph_color, Optional<Gfx::Color> graph_error_color)
: m_graph_type(graph_type)
@ -254,7 +254,7 @@ int main(int argc, char** argv)
auto window = GUI::Window::construct();
window->set_title(name);
window->set_window_type(GUI::WindowType::MenuApplet);
window->resize(GraphWidget::history_size + 2, 16);
window->resize(GraphWidget::history_size + 2, 15);
window->set_main_widget<GraphWidget>(graph_type, graph_color, graph_error_color);
window->show();