jesseduffield.lazygit/pkg/gui
Stefan Haller cb36455f87 Define PR colors as hex colors to make them the same as GitHub's
This is so that they look the same no matter what color palette the terminal is
using. (One user complained that the text for the Open state is barely readable,
because they are using a palette that has a very pale green.)

GitHub uses slightly different colors depending on light vs. dark mode;
fortunately they are very close, so hopefully we can ignore this. I picked the
ones for dark mode here, on the assumption that this is more common.

Also, not all terminals support true hex colors; for example, Terminal.app on
macOS doesn't, so it maps the colors to the closest ones in the Xterm-256
palette. This shouldn't be a huge problem, but for some reason it displays draft
PRs as something closer to Cyan than grey, and I don't understand why.
2026-04-26 17:00:43 +02:00
..
context Preserve whitespace when remembering a commit message 2026-04-21 18:51:17 +02:00
controllers Define PR colors as hex colors to make them the same as GitHub's 2026-04-26 17:00:43 +02:00
filetree Make file sort order and case sensitivity configurable 2026-03-30 17:53:25 +02:00
keybindings Make LabelFromKey return an empty string for unset keys 2025-07-27 12:25:16 +02:00
mergeconflicts Enable revive linter, and fix a bunch of warnings 2025-06-30 19:13:20 +02:00
modes Make Commit.Hash a getter for an unexported hash field 2025-04-29 14:57:15 +02:00
patch_exploring Fix selection after staging an added line 2026-03-19 16:57:53 +01:00
popup Strip leading/trailing whitespace from prompt input 2025-11-15 15:38:24 +01:00
presentation Define PR colors as hex colors to make them the same as GitHub's 2026-04-26 17:00:43 +02:00
services/custom_commands Add condition field to custom command prompts 2026-04-06 19:14:51 +02:00
status Move Loader to presentation package 2025-05-06 09:52:53 +02:00
style Modernize all codes 2025-11-15 10:46:23 +01:00
types Add OnQuit hook for controllers 2026-04-21 11:25:29 +02:00
background.go Add pull requests to lazygit's model and refresh them 2026-04-01 09:13:55 +02:00
command_log_panel.go Add merge options menu 2025-10-09 08:45:58 +02:00
context.go Bump gocui (and tcell) 2025-12-23 16:49:16 +01:00
context_config.go Remove some unused code 2025-07-08 15:14:45 +02:00
controllers.go Preserve whitespace when remembering a commit message 2026-04-21 18:51:17 +02:00
dummies.go Move NewDummyCommon to pkg/common 2025-05-06 09:43:26 +02:00
editors.go Call gocui's SimpleEditor instead of duplicating its code 2025-12-23 16:49:16 +01:00
extras_panel.go feat: add keys for command log menu items 2025-12-14 17:12:47 +01:00
global_handlers.go Refactor: add a separate Prompt view 2025-09-05 10:42:03 +02:00
gui.go Add OnQuit hook for controllers 2026-04-21 11:25:29 +02:00
gui_common.go Implement suspending the app using ctrl-z 2025-08-14 20:41:46 +02:00
gui_driver.go Fix clicking multiple times in an integration test 2024-10-18 10:06:52 +02:00
information_panel.go Rename ModeStatus.Description to InfoLabel 2025-08-14 17:59:38 +02:00
keybindings.go Use new ShouldHandleMouseEvent hook to prevent clicks in views behind panels 2026-03-08 17:32:09 +01:00
layout.go Bump gocui and adapt lazygit code 2025-06-05 13:20:38 +02:00
main_panels.go Fix race with PTYs in integration tests 2025-03-28 11:16:04 +01:00
menu_panel.go Add an optional onCancel hook for menus 2026-04-01 09:13:55 +02:00
options_map.go Avoid duplicate key bindings in options map 2025-08-14 17:59:38 +02:00
pty.go Use a PTY when using external diff command from git config 2025-11-01 09:33:52 +01:00
pty_windows.go Export a LAZYGIT_COLUMNS variable to "pty" tasks on Windows 2025-10-09 10:04:29 +02:00
recent_repos_panel.go Remove unused field gui.IsNewRepo 2024-12-01 10:44:26 +01:00
tasks_adapter.go Close a task's stdout pipe when we are done with it 2025-08-01 10:32:46 +02:00
test_mode.go Don't use "HEADLESS" environment variable for running tests 2025-11-28 12:06:42 +01:00
view_helpers.go Avoid scrolling the selection into view on refresh 2025-12-23 15:34:38 +01:00
views.go Bump gocui 2026-01-28 20:57:09 +01:00