themes

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package themes keeps default styles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Styles

type Styles struct {
	InitStyle lipgloss.Style
	// text
	MainText     lipgloss.Style
	SelectedText lipgloss.Style
	InactiveText lipgloss.Style
	HelpBar      lipgloss.Style
	// signs
	NamespaceSign lipgloss.Style
	// tabs
	Borders     lipgloss.Style
	InactiveTab lipgloss.Style
	ActiveTab   lipgloss.Style
	TabsGap     lipgloss.Style
	// info bar
	ActiveInfoTab   lipgloss.Style
	InactiveInfoTab lipgloss.Style
	InfoGap         lipgloss.Style
	// list border style
	ListRightBorder lipgloss.Style
	// margin
	TextRightMargin int
	TextLeftMargin  int
	// padding
	ListRightPadding int
}

func GetStyle

func GetStyle(theme Theme) Styles

nolint gomnd: default values

type Theme

type Theme struct {
	MainText      lipgloss.Color `json:"main-text"`
	SelectedText  lipgloss.Color `json:"selected-text"`
	InactiveText  lipgloss.Color `json:"inactive-text"`
	Borders       lipgloss.Color `json:"tab-borders"`
	NamespaceSign lipgloss.Color `json:"namespace-sign"`
}

Theme is a struct to keep all the application styles.

func InitTheme

func InitTheme(ph string) Theme

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL