gemini-browser

A text-based gemini browser
git clone git://git.laack.co/gemini-browser.git
Log | Files | Refs | README

styles.go (1684B)


      1 package tview
      2 
      3 import "github.com/gdamore/tcell/v2"
      4 
      5 // Theme defines the colors used when primitives are initialized.
      6 type Theme struct {
      7 	PrimitiveBackgroundColor    tcell.Color // Main background color for primitives.
      8 	ContrastBackgroundColor     tcell.Color // Background color for contrasting elements.
      9 	MoreContrastBackgroundColor tcell.Color // Background color for even more contrasting elements.
     10 	BorderColor                 tcell.Color // Box borders.
     11 	TitleColor                  tcell.Color // Box titles.
     12 	GraphicsColor               tcell.Color // Graphics.
     13 	PrimaryTextColor            tcell.Color // Primary text.
     14 	SecondaryTextColor          tcell.Color // Secondary text (e.g. labels).
     15 	TertiaryTextColor           tcell.Color // Tertiary text (e.g. subtitles, notes).
     16 	InverseTextColor            tcell.Color // Text on primary-colored backgrounds.
     17 	ContrastSecondaryTextColor  tcell.Color // Secondary text on ContrastBackgroundColor-colored backgrounds.
     18 }
     19 
     20 // Styles defines the theme for applications. The default is for a black
     21 // background and some basic colors: black, white, yellow, green, cyan, and
     22 // blue.
     23 var Styles = Theme{
     24 	PrimitiveBackgroundColor:    tcell.ColorBlack,
     25 	ContrastBackgroundColor:     tcell.ColorBlue,
     26 	MoreContrastBackgroundColor: tcell.ColorGreen,
     27 	BorderColor:                 tcell.ColorWhite,
     28 	TitleColor:                  tcell.ColorWhite,
     29 	GraphicsColor:               tcell.ColorWhite,
     30 	PrimaryTextColor:            tcell.ColorWhite,
     31 	SecondaryTextColor:          tcell.ColorYellow,
     32 	TertiaryTextColor:           tcell.ColorGreen,
     33 	InverseTextColor:            tcell.ColorBlue,
     34 	ContrastSecondaryTextColor:  tcell.ColorNavy,
     35 }