Documentation ¶
Overview ¶
Package style provides style definitions for UI components.
Package style provides style definitions for UI components.
Index ¶
Constants ¶
View Source
const ( BorderNone BorderStyle = "" BorderSolid BorderStyle = "solid" BorderRaised = "raised" BorderSunken = "sunken" )
Styles for a widget border.
Variables ¶
View Source
var ( DefaultWindow = Window{ ActiveTitleBackground: render.Blue, ActiveTitleForeground: render.White, InactiveTitleBackground: render.DarkGrey, InactiveTitleForeground: render.Grey, ActiveBackground: render.Grey, InactiveBackground: render.Grey, } DefaultLabel = Label{ Background: render.Invisible, Foreground: render.Black, } DefaultButton = Button{ Background: render.RGBA(200, 200, 200, 255), Foreground: render.Black, OutlineColor: render.Black, OutlineSize: 1, HoverBackground: render.RGBA(200, 255, 255, 255), HoverForeground: render.Black, BorderStyle: BorderRaised, BorderSize: 2, } DefaultListBox = ListBox{ Background: render.White, Foreground: render.Black, HoverBackground: render.Cyan, HoverForeground: render.Orange, SelectedBackground: render.Blue, SelectedForeground: render.White, BorderStyle: BorderSunken, BorderSize: 2, } DefaultTooltip = Tooltip{ Background: render.RGBA(0, 0, 0, 230), Foreground: render.White, } )
Default styles for widgets without a theme.
Functions ¶
This section is empty.
Types ¶
type Button ¶
type Button struct { Background render.Color Foreground render.Color // Labels only OutlineColor render.Color OutlineSize int HoverBackground render.Color HoverForeground render.Color BorderStyle BorderStyle BorderSize int }
Button style configuration.
type ListBox ¶
type ListBox struct { Background render.Color Foreground render.Color // Labels only SelectedBackground render.Color SelectedForeground render.Color HoverBackground render.Color HoverForeground render.Color BorderStyle BorderStyle BorderSize int }
ListBox style configuration.
Click to show internal directories.
Click to hide internal directories.