Documentation ¶
Index ¶
- type Header
- func (h *Header) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
- func (h *Header) LoadEnvs(data []*domain.Environment)
- func (h *Header) LoadWorkspaces(data []*domain.Workspace)
- func (h *Header) SetSelectedEnvironment(env *domain.Environment)
- func (h *Header) SetSelectedWorkspace(ws *domain.Workspace)
- func (h *Header) SetTheme(isDark bool)
- type SideBarButton
- type Sidebar
- type UI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header struct { OnSelectedEnvChanged func(env *domain.Environment) error OnSelectedWorkspaceChanged func(env *domain.Workspace) error OnThemeSwitched func(isLight bool) error // contains filtered or unexported fields }
func NewHeader ¶
func NewHeader(envState *state.Environments, workspacesState *state.Workspaces, theme *chapartheme.Theme) *Header
func (*Header) Layout ¶
func (h *Header) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
func (*Header) LoadEnvs ¶
func (h *Header) LoadEnvs(data []*domain.Environment)
func (*Header) LoadWorkspaces ¶
func (*Header) SetSelectedEnvironment ¶
func (h *Header) SetSelectedEnvironment(env *domain.Environment)
func (*Header) SetSelectedWorkspace ¶
type SideBarButton ¶
type Sidebar ¶
type Sidebar struct { Theme *chapartheme.Theme Buttons []*SideBarButton // contains filtered or unexported fields }
func NewSidebar ¶
func NewSidebar(theme *chapartheme.Theme) *Sidebar
func (*Sidebar) Layout ¶
func (s *Sidebar) Layout(gtx layout.Context, theme *chapartheme.Theme) layout.Dimensions
func (*Sidebar) SelectedIndex ¶
Click to show internal directories.
Click to hide internal directories.