Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mandriota committed Jul 17, 2023
1 parent 4753a12 commit 084caf8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions internal/models/gallery/keymap.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ var DefaultKeyMap = KeyMap{
key.WithHelp("ctrl+g", "Toggle Help"),
),
Quit: key.NewBinding(
key.WithKeys("ctrl+c", "ctrl+q"),
key.WithHelp("ctrl+c/ctrl+q", "Quit"),
key.WithKeys("ctrl+c"),
key.WithHelp("ctrl+c", "Quit"),
),
}
13 changes: 7 additions & 6 deletions internal/models/gallery/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ func New(path string) Model {
})),
help: help.New(),
styleDeck: styleBase.Copy().
Border(lipgloss.ThickBorder(), true, false, false, false).
BorderTopForeground(config.Global.Appearance.Border.Foreground).
Height(10).
BorderTopForeground(config.Global.Appearance.Border.Foreground).
BorderStyle(lipgloss.ThickBorder()).
BorderTop(true).
Bold(true),
styleStatePanel: styleBase.Copy().
Align(lipgloss.Center),
Expand All @@ -82,14 +83,14 @@ func New(path string) Model {
am.textInput.Focus()

am.paginator = paginator.New()
am.paginator.KeyMap = am.KeyMap.Paginator
am.paginator.Type = paginator.Dots
am.paginator.ActiveDot = styleBase.Copy().
Bold(true).
Render("•")
am.paginator.KeyMap = am.KeyMap.Paginator
am.paginator.InactiveDot = styleBase.Copy().
Faint(true).
Render("•")
am.paginator.ActiveDot = styleBase.Copy().
Bold(true).
Render("•")

return am
}
Expand Down

0 comments on commit 084caf8

Please sign in to comment.