mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +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
Notes:
sideshowbarker
2024-07-17 03:10:07 +09:00
Author: https://github.com/asan-sanitizer Commit: https://github.com/SerenityOS/serenity/commit/6f85be501d Pull-request: https://github.com/SerenityOS/serenity/pull/20810 Reviewed-by: https://github.com/ADKaster ✅
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…
Reference in a new issue