summaryrefslogtreecommitdiffstats
path: root/pkg/theme
AgeCommit message (Collapse)Author
2024-04-07pkg: fix some commenthongkuang
Signed-off-by: hongkuang <liurenhong@outlook.com>
2024-01-19Standardise display of range selection across viewsJesse Duffield
We're not fully standardising here: different contexts can store their range state however they like. What we are standardising on is that now the view is always responsible for highlighting the selected lines, meaning the context/controller needs to tell the view where the range start is. Two convenient benefits from this change: 1) we no longer need bespoke code in integration tests for asserting on selected lines because we can just ask the view 2) line selection in staging/patch-building/merge-conflicts views now look the same as in list views i.e. the highlight applies to the whole line (including trailing space) I also noticed a bug with merge conflicts not rendering the selection on focus though I suspect it wasn't a bug with any real consequences when the view wasn't displaying the selection. I'm going to scrap the selectedRangeBgColor config and just let it use the single line background color. Hopefully nobody cares, but there's really no need for an extra config.
2023-07-31Add a "Mark commit as base commit for rebase" commandStefan Haller
This allows to do the equivalent of "git rebase --onto <target> <base>", by first marking the <base> commit with the new command, and then selecting the target branch and invoking the usual rebase command there.
2023-07-03Color view frame differently when searching/filteringJesse Duffield
Given that we now persist search/filter states even after a side context loses focus, we need to make it really clear to the user that the context is currently being searched/filtered
2023-06-01Set defaults colours to 'default', not 'white'Jesse Duffield
'white' is great on dark themes, and terrible on light themes.
2023-05-21Support strikethrough text styleJesse Duffield
2023-03-03Fix setting gui.selectedRangeBgColor as a hex valueStefan Haller
2023-03-03Add some tests for GetTextStyleStefan Haller
The tests show that setting a hex color doesn't work; we'll fix that in the next commit.
2022-11-21[#2279] defaultFgColor entry in theme configArnaud PERALTA
2022-11-12use better colour defaultsJesse Duffield
2022-03-16Add unstagedChangesColor config optionDaniel Kiss
2021-09-30Fix text formattingSam Burville
2021-09-30Update pkg/theme/theme.goJesse Duffield
2021-09-30Update pkg/theme/theme.goJesse Duffield
2021-09-30Use simpler short variable declarationsamburville
Co-authored-by: Jesse Duffield <jessedduffield@gmail.com>
2021-09-30Make cherry pick commit color customisableSam Burville
Two new settings in the config, which allow the cherry picked foreground and background to be custom colors. Issue #856
2021-08-09Add color functions to templates funcMapsElwardi
2021-08-07Support match colors in `labelFormat` entry in menuFromCommand promptsElwardi
2021-07-31refactorJesse Duffield
2021-07-31more efficientJesse Duffield
2021-07-31simplify code a bitJesse Duffield
2021-07-30Switch to github.com/gookit/color for terminal colorsmjarkk
2021-07-26Allow hex theme colorsmjarkk
2020-10-10remove viperJesse Duffield
WIP
2020-05-15prevent flicker from bolding background of selected lineJesse Duffield
2020-05-13standardise how we handle background coloursv0.20.3Jesse Duffield
2020-03-29add new diff modeJesse Duffield
WIP WIP WIP WIP WIP WIP WIP
2020-02-24support searching in side panelsJesse Duffield
For now we're just doing side panels, because it will take more work to support this in the various main panel contexts
2020-02-23allow customizing background color in staging modeJesse Duffield
2019-11-05support split view in staging panel and staging rangesJesse Duffield
2019-10-20Removed the pkg/gui/theme.go filemjarkk
Moved most functions to the new theme/theme.go
2019-10-20Added light theme option to the settingsmjarkk