package
0.0.0-20240817140251-aa2fb5bc486d
Repository: https://github.com/diamondburned/gotkit.git
Documentation: pkg.go.dev

# Functions

Attrs is a way to declaratively create a pango.AttrList.
ColorIsDark determines if the given RGB colors are dark or not.
ErrorLabel makes a new label with the class `.error'.
ErrorMarkup formats the given message red using Pango markup.
HashTag creates a tag inside the text tag table using the hash of the text tag attributes as the name.
IsDarkTheme returns true if we're inside an application with a dark theme.
LinkTags gets the text tags with colors for a, a:hover and a:visited.
LookupColor looks up the color from a global StyleContext.
NewAttrOpacity creates a new AttrForegroundAlpha.
RGBHex converts the given color to a HTML hex color string.
SetTabSize sets the given TextView's tab size.

# Constants

Constants for LookupColor.
Constants for LookupColor.

# Variables

TabWidth is the width of a tab character in regular monospace characters.

# Type aliases

TextTag describes a map of attribute/property name to its value for a TextTag.
TextTagsMap describes a map of tag names to its attributes.