Skip to content

Commit

Permalink
refactor: move ui to internal
Browse files Browse the repository at this point in the history
  • Loading branch information
dhth committed Jun 4, 2024
1 parent 3499723 commit e447bd6
Show file tree
Hide file tree
Showing 14 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strconv"

jira "github.com/andygrunwald/go-jira/v2/onpremise"
"github.com/dhth/punchout/ui"
"github.com/dhth/punchout/internal/ui"
)

func die(msg string, args ...any) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 8 additions & 8 deletions ui/styles.go → internal/ui/styles.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (

const (
trackingColor = "#fabd2f"
ActiveIssueKeyColor = "#d3869b"
ActiveIssueSummaryColor = "#8ec07c"
IssueStatusColor = "#665c54"
AggTimeSpentColor = "#928374"
activeIssueKeyColor = "#d3869b"
activeIssueSummaryColor = "#8ec07c"
issueStatusColor = "#665c54"
aggTimeSpentColor = "#928374"
helpMsgColor = "#83a598"
helpViewTitleColor = "#83a598"
helpHeaderColor = "#83a598"
Expand Down Expand Up @@ -69,11 +69,11 @@ var (

activeIssueKeyMsgStyle = trackingStyle.Copy().
PaddingLeft(1).
Foreground(lipgloss.Color(ActiveIssueKeyColor))
Foreground(lipgloss.Color(activeIssueKeyColor))

activeIssueSummaryMsgStyle = trackingStyle.Copy().
PaddingLeft(1).
Foreground(lipgloss.Color(ActiveIssueSummaryColor))
Foreground(lipgloss.Color(activeIssueSummaryColor))

issueTypeColors = []string{"#928374", "#d3869b", "#fabd2f", "#8ec07c", "#83a598", "#b8bb26", "#fe8019"}

Expand Down Expand Up @@ -116,11 +116,11 @@ var (

issueStatusStyle = lipgloss.NewStyle().
PaddingLeft(1).
Foreground(lipgloss.Color(IssueStatusColor))
Foreground(lipgloss.Color(issueStatusColor))

aggTimeSpentStyle = lipgloss.NewStyle().
PaddingLeft(2).
Foreground(lipgloss.Color(AggTimeSpentColor))
Foreground(lipgloss.Color(aggTimeSpentColor))

helpTitleStyle = baseStyle.Copy().
Bold(true).
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e447bd6

Please sign in to comment.