From 6f85be501d0132ed8c0e7c9cf201e0dba40b8c41 Mon Sep 17 00:00:00 2001 From: Abhishek Raturi Date: Sun, 27 Aug 2023 14:37:55 -0400 Subject: [PATCH] HackStudio: Change fg color of staged/unstaged file list in Git tab Change the foreground color of staged and unstaged file list in the git tab to green and red respectively --- Userland/DevTools/HackStudio/Git/GitWidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Userland/DevTools/HackStudio/Git/GitWidget.cpp b/Userland/DevTools/HackStudio/Git/GitWidget.cpp index 7752ae87b8..9a85a8689a 100644 --- a/Userland/DevTools/HackStudio/Git/GitWidget.cpp +++ b/Userland/DevTools/HackStudio/Git/GitWidget.cpp @@ -51,6 +51,8 @@ GitWidget::GitWidget() show_diff(selected); }; + m_unstaged_files->set_foreground_role(Gfx::ColorRole::Red); + auto& staged = add(); staged.set_layout(); @@ -70,6 +72,7 @@ GitWidget::GitWidget() m_staged_files = staged.add( [this](auto const& file) { unstage_file(file); }, Gfx::Bitmap::load_from_file("/res/icons/16x16/minus.png"sv).release_value_but_fixme_should_propagate_errors()); + m_staged_files->set_foreground_role(Gfx::ColorRole::Green); } bool GitWidget::initialize()