Skip to content

Commit

Permalink
chore: use borders theme from ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
prgres committed May 17, 2024
1 parent 53977eb commit cc1cbf0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions ui/components/views-tabs/viewstabs.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
}

func (m Model) View() string {
bColor := lipgloss.Color("#FFF")
bColor := m.ctx.Theme.BordersColorInactive
if m.Focused {
bColor = lipgloss.Color("#8909FF")
bColor = m.ctx.Theme.BordersColorActive
}

borderMargin := 0
Expand Down
4 changes: 2 additions & 2 deletions ui/widgets/navigator/widget.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
}

func (m Model) View() string {
bColor := lipgloss.Color("#FFF")
bColor := m.ctx.Theme.BordersColorInactive
if m.Focused {
bColor = lipgloss.Color("#8909FF")
bColor = m.ctx.Theme.BordersColorActive
}

borderMargin := 0
Expand Down
4 changes: 2 additions & 2 deletions ui/widgets/tasks-sidebar/tasksidebar.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ func (m Model) renderTask(task clickup.Task) string {
}

func (m Model) View() string {
bColor := lipgloss.Color("#FFF")
bColor := m.ctx.Theme.BordersColorInactive
if m.Focused {
bColor = lipgloss.Color("#8909FF")
bColor = m.ctx.Theme.BordersColorActive
}

return lipgloss.NewStyle().
Expand Down
4 changes: 2 additions & 2 deletions ui/widgets/tasks-table/taskstable.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ func (m Model) Update(msg tea.Msg) (common.Widget, tea.Cmd) {
}

func (m Model) View() string {
bColor := lipgloss.Color("#FFF")
bColor := m.ctx.Theme.BordersColorInactive
if m.Focused {
bColor = lipgloss.Color("#8909FF")
bColor = m.ctx.Theme.BordersColorActive
}

return lipgloss.NewStyle().
Expand Down
4 changes: 2 additions & 2 deletions ui/widgets/tasks-tabs/taskstabs.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ func (m Model) View() string {
}
}

bColor := lipgloss.Color("#FFF")
bColor := m.ctx.Theme.BordersColorInactive
if m.Focused {
bColor = lipgloss.Color("#8909FF")
bColor = m.ctx.Theme.BordersColorActive
}

return lipgloss.NewStyle().
Expand Down
4 changes: 2 additions & 2 deletions ui/widgets/tasks/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ func (m *Model) SetTasks(tasks []clickup.Task) {
}

func (m Model) View() string {
bColor := lipgloss.Color("#FFF")
bColor := m.ctx.Theme.BordersColorInactive
if m.Focused {
bColor = lipgloss.Color("#8909FF")
bColor = m.ctx.Theme.BordersColorActive
}

borderMargin := 0
Expand Down

0 comments on commit cc1cbf0

Please sign in to comment.