Skip to content

Commit

Permalink
revert dim colors for previews
Browse files Browse the repository at this point in the history
  • Loading branch information
gokcehan committed Dec 24, 2022
1 parent aa78b26 commit b47cf6d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,17 +341,13 @@ const LineNumberColor = tcell.ColorOlive
const SelectionColor = tcell.ColorPurple
const YankColor = tcell.ColorOlive
const CutColor = tcell.ColorMaroon
const DimCursorColor = tcell.ColorGrey

func (win *win) printDir(screen tcell.Screen, dir *dir, context *dirContext, dirStyle *dirStyle) {
if win.w < 5 || dir == nil {
return
}

messageStyle := tcell.StyleDefault.Reverse(true)
if dirStyle.previewing {
messageStyle = messageStyle.Foreground(DimCursorColor)
}

if dir.noPerm {
win.print(screen, 2, 0, messageStyle, "permission denied")
Expand Down Expand Up @@ -438,9 +434,6 @@ func (win *win) printDir(screen tcell.Screen, dir *dir, context *dirContext, dir

if i == dir.pos {
st = st.Reverse(true)
if dirStyle.previewing {
st = st.Foreground(DimCursorColor)
}
}

var s []rune
Expand Down

0 comments on commit b47cf6d

Please sign in to comment.