Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nitisht committed Aug 6, 2024
1 parent 20c9a32 commit 131404c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pkg/model/credential/credential.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func New() Model {
var t textinput.Model
for i := range m.inputs {
t = textinput.New()
t.Cursor.Style = focusedStyle.Copy()
t.Cursor.Style = focusedStyle
t.CharLimit = 32

switch i {
Expand Down
8 changes: 4 additions & 4 deletions pkg/model/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ import (
var (
commonStyle = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "#FFFFFF", Dark: "#000000"})

titleStyle = commonStyle.Copy().
titleStyle = commonStyle.
Background(lipgloss.AdaptiveColor{Light: "#134074", Dark: "#FFADAD"}).
Padding(0, 1)

hostStyle = commonStyle.Copy().
hostStyle = commonStyle.
Background(lipgloss.AdaptiveColor{Light: "#13315C", Dark: "#FFD6A5"}).
Padding(0, 1)

infoStyle = commonStyle.Copy().
infoStyle = commonStyle.
Background(lipgloss.AdaptiveColor{Light: "#212529", Dark: "#CAFFBF"}).
AlignHorizontal(lipgloss.Right)

errorStyle = commonStyle.Copy().
errorStyle = commonStyle.
Background(lipgloss.AdaptiveColor{Light: "#5A2A27", Dark: "#D4A373"}).
AlignHorizontal(lipgloss.Right)
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/model/timerange.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ func NewTimeRangeModel() list.Model {
list.SetShowHelp(false)
list.SetShowFilter(false)
list.SetShowTitle(true)
list.Styles.TitleBar = baseStyle.Copy()
list.Styles.Title = baseStyle.Copy().MarginBottom(1)
list.Styles.TitleBar = baseStyle
list.Styles.Title = baseStyle.MarginBottom(1)
list.Styles.TitleBar.Align(lipgloss.Left)
list.Title = "Select Time Range"
list.SetShowStatusBar(false)
Expand Down

0 comments on commit 131404c

Please sign in to comment.