summaryrefslogtreecommitdiff
path: root/internal/client/ui/core
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-25 17:15:22 +0200
committerKyren223 <Kyren223@proton.me>2024-11-25 17:15:22 +0200
commit8e0d77b4c72673d366999c17a857f634b3ca8cba (patch)
treeb7ef280fad1b8b11277bf7c66f227a6c0198808f /internal/client/ui/core
parent66e39ff2f64153efed919610097efcb9cd42b10f (diff)
Made colors package for coherent styling and migrated existing styles to
it
Diffstat (limited to 'internal/client/ui/core')
-rw-r--r--internal/client/ui/core/networkcreation/networkcreation.go22
1 files changed, 12 insertions, 10 deletions
diff --git a/internal/client/ui/core/networkcreation/networkcreation.go b/internal/client/ui/core/networkcreation/networkcreation.go
index 08f85a3..b6324e0 100644
--- a/internal/client/ui/core/networkcreation/networkcreation.go
+++ b/internal/client/ui/core/networkcreation/networkcreation.go
@@ -4,25 +4,27 @@ import (
"github.com/charmbracelet/bubbles/textinput"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
+ "github.com/kyren223/eko/internal/client/ui/colors"
"github.com/kyren223/eko/internal/client/ui/field"
)
var (
- style = lipgloss.NewStyle().Border(lipgloss.ThickBorder())
- focusColor = lipgloss.Color("#5874FF")
-
- focusedStyle = lipgloss.NewStyle().Foreground(focusColor)
+ style = lipgloss.NewStyle().Border(lipgloss.ThickBorder())
+ focusedStyle = lipgloss.NewStyle().Foreground(colors.Focus)
+ headerStyle = lipgloss.NewStyle().Foreground(colors.Turquoise)
fieldBlurredStyle = lipgloss.NewStyle().
PaddingLeft(1).
Border(lipgloss.RoundedBorder()).
- BorderForeground(lipgloss.Color("#007E8A"))
- fieldFocusedStyle = fieldBlurredStyle.BorderForeground(focusedStyle.GetForeground()).Border(lipgloss.ThickBorder())
-
- headerStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#54D7A9"))
+ BorderForeground(colors.DarkCyan)
+ fieldFocusedStyle = fieldBlurredStyle.
+ BorderForeground(colors.Focus).
+ Border(lipgloss.ThickBorder())
- blurredUnderlineStyle = lipgloss.NewStyle().Border(lipgloss.ThickBorder(), false, false, true, false).BorderForeground(lipgloss.Color("240"))
- focusedUnderlineStyle = blurredUnderlineStyle.BorderForeground(focusColor)
+ blurredUnderlineStyle = lipgloss.NewStyle().
+ Border(lipgloss.ThickBorder(), false, false, true, false).
+ BorderForeground(colors.Gray)
+ focusedUnderlineStyle = blurredUnderlineStyle.BorderForeground(colors.Focus)
)
const (