mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +00:00
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:
parent
6cfe19e5be
commit
6f85be501d
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue