mirror of
https://github.com/charmbracelet/gum.git
synced 2024-09-11 06:16:03 +03:00
docs: group style flags so that they appear at the bottom
This commit is contained in:
parent
7190822247
commit
912157521c
@ -9,26 +9,26 @@ import (
|
||||
// It corresponds to the available options in the lipgloss.Style struct.
|
||||
type Styles struct {
|
||||
// Colors
|
||||
Background string `help:"Background color of the ${name=element}" default:"${defaultBackground}" hidden:""`
|
||||
Foreground string `help:"color of the ${name=element}" default:"${defaultForeground}"`
|
||||
Background string `help:"Background color of the ${name=element}" default:"${defaultBackground}" hidden:"" group:"Style Flags"`
|
||||
Foreground string `help:"color of the ${name=element}" default:"${defaultForeground}" group:"Style Flags"`
|
||||
|
||||
// Border
|
||||
Border string `help:"Border style to apply" enum:"none,hidden,normal,rounded,thick,double" default:"none" hidden:""`
|
||||
BorderBackground string `help:"Border background color" hidden:""`
|
||||
BorderForeground string `help:"Border foreground color" hidden:""`
|
||||
Border string `help:"Border style to apply" enum:"none,hidden,normal,rounded,thick,double" default:"none" hidden:"" group:"Style Flags"`
|
||||
BorderBackground string `help:"Border background color" hidden:"" group:"Style Flags"`
|
||||
BorderForeground string `help:"Border foreground color" hidden:"" group:"Style Flags"`
|
||||
|
||||
// Layout
|
||||
Align string `help:"Text alignment" enum:"left,center,right,bottom,middle,top" default:"left" hidden:""`
|
||||
Height int `help:"Height of output" hidden:""`
|
||||
Width int `help:"Width of output" hidden:""`
|
||||
Margin string `help:"Margin to apply around the text." default:"0 0" hidden:""`
|
||||
Align string `help:"Text alignment" enum:"left,center,right,bottom,middle,top" default:"left" hidden:"" group:"Style Flags"`
|
||||
Height int `help:"Height of output" hidden:"" group:"Style Flags"`
|
||||
Width int `help:"Width of output" hidden:"" group:"Style Flags"`
|
||||
Margin string `help:"Margin to apply around the text." default:"0 0" hidden:"" group:"Style Flags"`
|
||||
Padding string `help:"Padding to apply around the text." default:"0 0" hidden:""`
|
||||
|
||||
// Format
|
||||
Bold bool `help:"Apply bold formatting" hidden:""`
|
||||
Faint bool `help:"Apply faint formatting" hidden:""`
|
||||
Italic bool `help:"Apply italic formatting" hidden:""`
|
||||
Strikethrough bool `help:"Apply strikethrough formatting" hidden:""`
|
||||
Bold bool `help:"Apply bold formatting" hidden:"" group:"Style Flags"`
|
||||
Faint bool `help:"Apply faint formatting" hidden:"" group:"Style Flags"`
|
||||
Italic bool `help:"Apply italic formatting" hidden:"" group:"Style Flags"`
|
||||
Strikethrough bool `help:"Apply strikethrough formatting" hidden:"" group:"Style Flags"`
|
||||
}
|
||||
|
||||
// ToLipgloss takes a Styles flag set and returns the corresponding
|
||||
|
Loading…
Reference in New Issue
Block a user