revert dim colors for previews

cc #924 #1038
This commit is contained in:
Gokcehan committed 2022-12-24 23:15:46 +03:00
1 parent aa78b26e44
commit b47cf6d5a5
1 file changed
-7
-7
View File
@@ -341,7 +341,6 @@ const LineNumberColor = tcell.ColorOlive
const SelectionColor = tcell.ColorPurple const SelectionColor = tcell.ColorPurple
const YankColor = tcell.ColorOlive const YankColor = tcell.ColorOlive
const CutColor = tcell.ColorMaroon const CutColor = tcell.ColorMaroon
const DimCursorColor = tcell.ColorGrey
func (win *win) printDir(screen tcell.Screen, dir *dir, context *dirContext, dirStyle *dirStyle) { func (win *win) printDir(screen tcell.Screen, dir *dir, context *dirContext, dirStyle *dirStyle) {
if win.w < 5 || dir == nil { if win.w < 5 || dir == nil {
@@ -349,9 +348,6 @@ func (win *win) printDir(screen tcell.Screen, dir *dir, context *dirContext, dir
} }
messageStyle := tcell.StyleDefault.Reverse(true) messageStyle := tcell.StyleDefault.Reverse(true)
if dirStyle.previewing {
messageStyle = messageStyle.Foreground(DimCursorColor)
}
if dir.noPerm { if dir.noPerm {
win.print(screen, 2, 0, messageStyle, "permission denied") win.print(screen, 2, 0, messageStyle, "permission denied")
@@ -438,9 +434,6 @@ func (win *win) printDir(screen tcell.Screen, dir *dir, context *dirContext, dir
if i == dir.pos { if i == dir.pos {
st = st.Reverse(true) st = st.Reverse(true)
if dirStyle.previewing {
st = st.Foreground(DimCursorColor)
}
} }
var s []rune var s []rune