Documentation
¶
Overview ¶
Package diff is base/diff's DiffView in ui's colors. It is a package of its own, as base/diff is, so that only apps that show diffs link chroma's lexers. Its types are base/diff's: this package adds the look alone.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RegionActions ¶
type RegionActions struct {
OnStage, OnDiscard func()
}
RegionActions are the actions on a diff.Region, for RenderRegionActions: a small button staging its lines and another discarding them, which OnDiscard confirms. Either is left out when nil.
type View ¶
View is diff.DiffView in ui's look: 12 point text on 18 point lines (FontSize and LineHeight replace them), added and deleted lines tinted across their gutters in MyGo's change colors, in the darker appearance more, the words changed in them over the tint, a solid bar on added lines and a dashed one on deleted lines, and gray rounded separators, buttons that show the lines they collapse. The app's Styles or StylesFunc merge over ui's, part by part.