jesseduffield.lazygit/pkg/gui
Jesse Duffield c2218133bc
Show file names in default colour (#3081)
Fixes https://github.com/jesseduffield/lazygit/issues/3077

Show unstaged file names in default colour

Previously, we had the following rules:
* file names were in red when unstaged or partially staged
* directory names were in red if unstaged, yellow if partially staged,
and
  green if fully staged

Red text on a black background can be hard to read, so instead I'm
changing it
so that unstaged files have their names in the default text colour.
I'm also making it so that partially staged files are in yellow, just
like how
partially staged directories are yellow (same deal with the commit files
view
when adding to a custom patch).

So the new rules are:
* unstaged files/directories use the default colour
* partially staged files/directories are in yellow
* fully staged files/directories are in green

I've also done a refactor on the code clean up some dead code from when
the file tree
outline was drawn with box characters, and I've made it so that the
indentation in
each line is handled inside the function that draws the line rather than
in the recursive
parent function. This makes it easier to experiment with things like
showing the file
status characters on the left edge of the view (admittedly after
experimenting with it,
I decided I didn't like it). Apologies for having a refactor and a
functional change
in the one commit but by the time I was done, I couldn't be bothered
going back and
retroactively splitting it into two halves.
2024-01-22 13:40:19 +11:00
..
context Show file names in default colour (#3081) 2024-01-22 13:40:19 +11:00
controllers Keep same branch selected when refreshing branches 2024-01-19 09:25:07 +01:00
filetree Add SetSelection function for list contexts and use it in most places 2024-01-19 10:47:21 +11:00
keybindings Add range selection ability on list contexts 2024-01-19 10:47:21 +11:00
mergeconflicts Standardise display of range selection across views 2024-01-19 10:47:21 +11:00
modes Add a "Mark commit as base commit for rebase" command 2023-07-31 08:41:41 +02:00
patch_exploring Standardise display of range selection across views 2024-01-19 10:47:21 +11:00
popup Add ErrorToast function 2024-01-14 17:45:35 +01:00
presentation Show file names in default colour (#3081) 2024-01-22 13:40:19 +11:00
services/custom_commands Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
status Double the duration of error toasts 2024-01-14 17:45:35 +01:00
style Stop hiding underscores for VSCode 2023-06-01 20:12:20 +10:00
types Keep same branch selected when refreshing branches 2024-01-19 09:25:07 +01:00
background.go Ensure background refreshes don't bunch up 2023-07-10 17:30:44 +10:00
command_log_panel.go Introduce filtered list view model 2023-07-03 12:54:13 +10:00
context.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
context_config.go move some methods 2023-04-30 13:19:53 +10:00
controllers.go Add command to find base commit for creating a fixup 2024-01-10 09:11:40 +01:00
dummies.go Make it possible to handle toasts in integration tests 2024-01-14 17:42:03 +01:00
editors.go Add emacs-keybinds for word navigation 2023-08-15 12:22:17 +02:00
extras_panel.go Extract a SaveAppStateAndLogError function 2023-09-04 17:50:49 +02:00
global_handlers.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
gui.go Add SetSelection function for list contexts and use it in most places 2024-01-19 10:47:21 +11:00
gui_common.go Add WithInlineStatus helper function 2023-10-08 18:45:36 +02:00
gui_driver.go Show unacknowledged toast message upon integration test failure 2024-01-19 10:50:49 +11:00
information_panel.go If OpenLink errors, show a dialog instead 2023-08-09 13:12:40 +01:00
keybindings.go Enforce single-item selection in various actions 2024-01-19 10:50:49 +11:00
layout.go Standardise display of range selection across views 2024-01-19 10:47:21 +11:00
main_panels.go Return only visible views from TopViewInWindow 2023-12-10 15:57:51 +01:00
menu_panel.go Add SetSelection function for list contexts and use it in most places 2024-01-19 10:47:21 +11:00
options_map.go Add demo test variant 2023-07-31 22:33:04 +10:00
pty.go Use a PTY when calling external diff command 2023-11-22 12:08:05 +01:00
pty_windows.go Format code to pass lint 2021-09-16 21:38:43 +08:00
recent_repos_panel.go Use forward-slashes on windows 2023-07-30 18:35:24 +10:00
tasks_adapter.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
test_mode.go Add ErrorToast function 2024-01-14 17:45:35 +01:00
view_helpers.go Log duration of post-refresh-update call 2023-07-29 09:39:22 +10:00
views.go Standardise display of range selection across views 2024-01-19 10:47:21 +11:00