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
This commit is contained in:
Abhishek Raturi 2023-08-27 14:37:55 -04:00 committed by Andrew Kaster
parent 6cfe19e5be
commit 6f85be501d
Notes: sideshowbarker 2024-07-17 03:10:07 +09:00

View file

@ -51,6 +51,8 @@ GitWidget::GitWidget()
show_diff(selected);
};
m_unstaged_files->set_foreground_role(Gfx::ColorRole::Red);
auto& staged = add<GUI::Widget>();
staged.set_layout<GUI::VerticalBoxLayout>();
@ -70,6 +72,7 @@ GitWidget::GitWidget()
m_staged_files = staged.add<GitFilesView>(
[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()