Skip to content

Commit

Permalink
Add some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewLester committed Jul 12, 2023
1 parent ee81fdc commit 1dd3ea0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmd/ntpal/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type ntpalUIModel struct {

table table.Model
daemonKillStatus string
association *ntp.Association
RPCInfo
}

Expand Down Expand Up @@ -159,13 +160,13 @@ func setupTable() table.Model {
{Title: "Offset (ms)", Width: 15},
{Title: "Reach", Width: 15},
{Title: "Error", Width: 15},
{Title: "Last Update", Width: 25},
{Title: "Last Update", Width: 20},
}

t := table.New(
table.WithColumns(columns),
table.WithFocused(true),
table.WithHeight(7),
table.WithHeight(4),
)

s := table.DefaultStyles()
Expand All @@ -175,8 +176,8 @@ func setupTable() table.Model {
BorderBottom(true).
Bold(true)
s.Selected = s.Selected.
Foreground(lipgloss.Color("218")).
Background(lipgloss.Color("70")).
Foreground(lipgloss.Color("230")).
Background(lipgloss.Color("34")).
Bold(false)
t.SetStyles(s)

Expand Down

0 comments on commit 1dd3ea0

Please sign in to comment.