Versions in this module Expand all Collapse all v0 v0.6.0 Mar 24, 2026 v0.5.0 Mar 23, 2026 Changes in this version + type DiffPopup struct + Colors PopupColors + Hunk *providers.DiffHunk + MaxHeight unit.Dp + ShowStageButton bool + TextSize unit.Sp + func NewDiffPopup(hunk *providers.DiffHunk, textSize unit.Sp, popupLine int) *DiffPopup + func (p *DiffPopup) Layout(gtx layout.Context, th *material.Theme) layout.Dimensions + func (p *DiffPopup) PopupLine() int + func (p *DiffPopup) Update(gtx layout.Context) (PopupEvent, bool) + type GitDiff struct + func NewGitDiff(filePath string) *GitDiff + func (d *GitDiff) ParseDiff(content []byte) []*providers.DiffHunk + type PopupAction int + const ActionClose + const ActionNone + const ActionRevert + const ActionStage + type PopupColors struct + AddedBackground gvcolor.Color + AddedText gvcolor.Color + Background gvcolor.Color + Border gvcolor.Color + ButtonBackground gvcolor.Color + ButtonText gvcolor.Color + DeletedBackground gvcolor.Color + DeletedText gvcolor.Color + HeaderText gvcolor.Color + func DefaultPopupColors() PopupColors + type PopupEvent struct + Action PopupAction + Hunk *providers.DiffHunk