Skip to content

Commit

Permalink
fix: inconsitencies in background colors
Browse files Browse the repository at this point in the history
  • Loading branch information
DeeStarks committed Jun 21, 2022
1 parent 9002610 commit 01324e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/editor/bars.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
type LineNumbering struct {
number int
yAxis int
}
}

func (e *Editor) showBars() { // Display title, numbering... bars
sw, sh := e.screen.GetScreen().Size() // Get screen size
Expand Down
8 changes: 4 additions & 4 deletions internal/highlighters/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
)

var (
INT_HIGHLIGHTER = utils.CreateStyle(tcell.ColorReset, tcell.ColorSkyblue)
STRING_HIGHLIGHTER = utils.CreateStyle(tcell.ColorReset, tcell.ColorLightYellow)
COMMENT_HIGHLIGHTER = utils.CreateStyle(tcell.ColorReset, tcell.ColorDimGray)
INT_HIGHLIGHTER = utils.CreateStyle(tcell.ColorBlack, tcell.ColorSkyblue)
STRING_HIGHLIGHTER = utils.CreateStyle(tcell.ColorBlack, tcell.ColorLightYellow)
COMMENT_HIGHLIGHTER = utils.CreateStyle(tcell.ColorBlack, tcell.ColorDimGray)
)

type Highlighter struct {
Expand Down Expand Up @@ -43,7 +43,7 @@ func (h *Highlighter) GetStyle(word string) tcell.Style {
if style, ok := h.scheme[word]; ok {
return style
}
return utils.CreateStyle(tcell.ColorReset, tcell.ColorWhite)
return utils.CreateStyle(tcell.ColorBlack, tcell.ColorWhite)
}

func (h *Highlighter) GetCommentIndicator() string {
Expand Down

0 comments on commit 01324e1

Please sign in to comment.