common

package
v0.0.0-...-346da1c Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	COLOR_GREY      = "241"
	COLOR_MAGENTA   = "170"
	COLOR_LIGHTBLUE = "69"
	COLOR_PURPLE    = "#7D56F4"
)

Variables

View Source
var (
	HelpStyle    = lipgloss.NewStyle().Foreground(lipgloss.Color(COLOR_GREY)).Padding(2)
	CaptionStyle = lipgloss.NewStyle().Foreground(lipgloss.Color(COLOR_MAGENTA)).Padding(2)
)

Functions

func DefaultCreateNoteWidth

func DefaultCreateNoteWidth(width int) int

func DefaultListHeight

func DefaultListHeight(height int) int

func DefaultListWidth

func DefaultListWidth(width int) int

func DefaultWindowHeight

func DefaultWindowHeight(heigth int) int

func DefaultWindowWidth

func DefaultWindowWidth(width int) int

Types

type SessionState

type SessionState uint
const (
	CreateNoteView SessionState = iota
	ListNotesView
	CreateUserView
	UpdateNoteList
)

Jump to

Keyboard shortcuts

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