Skip to content

Commit

Permalink
Updated colours
Browse files Browse the repository at this point in the history
  • Loading branch information
evg4b committed Apr 21, 2024
1 parent d1bce16 commit ea20189
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 27 deletions.
16 changes: 9 additions & 7 deletions internal/tui/styles/colors.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package styles

import "github.com/charmbracelet/lipgloss"

const (
yellow = "#FFD400"
red = "#DC0100"
black = "#000000"
green = "#00A86B"
blue = "#0072CE"
grey = "#8c8c8c"
darkGrey = "#4d4d4d"
yellow = lipgloss.Color("#FFD400")
red = lipgloss.Color("#DC0100")
black = lipgloss.Color("#000000")
green = lipgloss.Color("#00A86B")
blue = lipgloss.Color("#0072CE")
grey = lipgloss.Color("#8C8C8C")
darkGrey = lipgloss.Color("#4D4D4D")
)
40 changes: 20 additions & 20 deletions internal/tui/styles/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,70 +5,70 @@ import "github.com/charmbracelet/lipgloss"
// TODO: Replace to adaptive colors.
var (
LogoYellow = lipgloss.NewStyle().
Foreground(lipgloss.Color(yellow))
Foreground(yellow)

LogoRed = lipgloss.NewStyle().
Foreground(lipgloss.Color(red))
Foreground(red)

WarningBlock = lipgloss.NewStyle().
Background(lipgloss.Color(yellow)).
Foreground(lipgloss.Color(black)).
Background(yellow).
Foreground(black).
Padding(0, 1).
Margin(0, 1, 0, 0).
ColorWhitespace(true)

WarningText = lipgloss.NewStyle().
Foreground(lipgloss.Color(yellow))
Foreground(yellow)

InfoBlock = lipgloss.NewStyle().
Background(lipgloss.Color(blue)).
Foreground(lipgloss.Color(black)).
Background(blue).
Foreground(black).
Padding(0, 1).
Margin(0, 1, 0, 0).
ColorWhitespace(true)

InfoText = lipgloss.NewStyle().
Foreground(lipgloss.Color(blue))
Foreground(blue)

SuccessBlock = lipgloss.NewStyle().
Background(lipgloss.Color(green)).
Foreground(lipgloss.Color(black)).
Background(green).
Foreground(black).
Padding(0, 1).
Margin(0, 1, 0, 0).
ColorWhitespace(true)

SuccessText = lipgloss.NewStyle().
Foreground(lipgloss.Color(green)).
Foreground(green).
ColorWhitespace(true)

ErrorBlock = lipgloss.NewStyle().
Background(lipgloss.Color(red)).
Foreground(lipgloss.Color(black)).
Background(red).
Foreground(black).
Padding(0, 1).
Margin(0, 1, 0, 0).
ColorWhitespace(true)

ErrorText = lipgloss.NewStyle().
Foreground(lipgloss.Color(red))
Foreground(red)

DebugBlock = lipgloss.NewStyle().
Background(lipgloss.Color(grey)).
Foreground(lipgloss.Color(black)).
Background(grey).
Foreground(black).
Padding(0, 1).
Margin(0, 1, 0, 0).
ColorWhitespace(true)

DebugText = lipgloss.NewStyle().
Foreground(lipgloss.Color(grey))
Foreground(grey)

DisabledBlock = lipgloss.NewStyle().
Background(lipgloss.Color(darkGrey)).
Foreground(lipgloss.Color(black)).
Background(darkGrey).
Foreground(black).
Padding(0, 1).
Margin(0, 1, 0, 0).
ColorWhitespace(true)

DisabledText = lipgloss.NewStyle().
Foreground(lipgloss.Color(darkGrey)).
Foreground(darkGrey).
ColorWhitespace(true)
)

0 comments on commit ea20189

Please sign in to comment.