Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FieldSecondary = &unison.IndirectFont{Font: unison.FieldFont.Face().Font(unison.FieldFont.Size() - 1)} PageFieldPrimary = &unison.IndirectFont{Font: unison.MatchFontFace(unison.DefaultSystemFamilyName, weight.Medium, spacing.Standard, slant.Upright).Font(7)} PageFieldSecondary = &unison.IndirectFont{Font: unison.MatchFontFace(unison.DefaultSystemFamilyName, weight.Regular, spacing.Standard, slant.Upright).Font(6)} PageLabelPrimary = &unison.IndirectFont{Font: unison.MatchFontFace(unison.DefaultSystemFamilyName, weight.Regular, spacing.Standard, slant.Upright).Font(7)} PageLabelSecondary = &unison.IndirectFont{Font: unison.MatchFontFace(unison.DefaultSystemFamilyName, weight.Regular, spacing.Standard, slant.Upright).Font(6)} BaseMarkdown = &unison.IndirectFont{Font: unison.LabelFont.Face().Font(unison.LabelFont.Size())} )
Additional fonts over and above what unison provides by default.
Functions ¶
This section is empty.
Types ¶
type Fonts ¶
type Fonts struct {
// contains filtered or unexported fields
}
Fonts holds a set of themed fonts.
func NewFromFS ¶
NewFromFS creates a new set of fonts from a file. Any missing values will be filled in with defaults.
func (*Fonts) MakeCurrent ¶
func (f *Fonts) MakeCurrent()
MakeCurrent applies these fonts to the current theme font set and updates all windows.
func (*Fonts) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (*Fonts) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type ThemedFont ¶
type ThemedFont struct { ID string Title string Font *unison.IndirectFont }
ThemedFont holds a themed font.
func FactoryFonts ¶
func FactoryFonts() []*ThemedFont
FactoryFonts returns the original theme before any modifications.
Click to show internal directories.
Click to hide internal directories.