mirror of
https://github.com/EnumeratedDev/Typer.git
synced 2025-07-01 07:48:20 +00:00
Change default color scheme
This commit is contained in:
parent
6b3ef29515
commit
f086463373
@ -50,13 +50,13 @@ func ClearDropdowns() {
|
||||
}
|
||||
|
||||
func drawDropdowns(window *Window) {
|
||||
dropdownStyle := tcell.StyleDefault.Foreground(tcell.ColorBlack).Background(tcell.ColorWhite)
|
||||
dropdownStyle := tcell.StyleDefault.Foreground(tcell.ColorWhite).Background(tcell.Color236)
|
||||
for _, d := range dropdowns {
|
||||
drawBox(window.screen, d.PosX, d.PosY, d.PosX+d.Width+1, d.PosY+len(d.Options)+1, dropdownStyle)
|
||||
line := d.PosY
|
||||
for i, option := range d.Options {
|
||||
if d.Selected == i {
|
||||
drawText(window.screen, d.PosX+1, d.PosY+line, d.PosX+d.Width+1, d.PosY+line, dropdownStyle.Background(tcell.Color250), option)
|
||||
drawText(window.screen, d.PosX+1, d.PosY+line, d.PosX+d.Width+1, d.PosY+line, dropdownStyle.Background(tcell.Color240), option)
|
||||
} else {
|
||||
drawText(window.screen, d.PosX+1, d.PosY+line, d.PosX+d.Width+1, d.PosY+line, dropdownStyle, option)
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ func drawInputBar(window *Window) {
|
||||
|
||||
screen := window.screen
|
||||
|
||||
inputBarStyle := tcell.StyleDefault.Foreground(tcell.ColorBlack).Background(tcell.ColorWhite)
|
||||
inputBarStyle := tcell.StyleDefault.Foreground(tcell.ColorWhite).Background(tcell.Color236)
|
||||
|
||||
sizeX, sizeY := screen.Size()
|
||||
|
||||
|
@ -10,7 +10,7 @@ func drawLineIndex(window *Window) {
|
||||
screen := window.screen
|
||||
buffer := window.textArea.CurrentBuffer
|
||||
|
||||
lineIndexStyle := tcell.StyleDefault.Foreground(tcell.ColorDimGray).Background(tcell.Color236)
|
||||
lineIndexStyle := tcell.StyleDefault.Foreground(tcell.ColorDimGray).Background(tcell.Color237)
|
||||
|
||||
_, sizeY := screen.Size()
|
||||
|
||||
|
@ -33,7 +33,7 @@ func PrintMessage(window *Window, message string) {
|
||||
func drawMessageBar(window *Window) {
|
||||
screen := window.screen
|
||||
|
||||
messageBarStyle := tcell.StyleDefault.Foreground(tcell.ColorBlack).Background(tcell.ColorWhite)
|
||||
messageBarStyle := tcell.StyleDefault.Foreground(tcell.ColorWhite).Background(tcell.Color236)
|
||||
|
||||
sizeX, sizeY := screen.Size()
|
||||
|
||||
|
@ -160,7 +160,7 @@ func initTopMenu() {
|
||||
func drawTopMenu(window *Window) {
|
||||
screen := window.screen
|
||||
|
||||
topMenuStyle := tcell.StyleDefault.Foreground(tcell.ColorBlack).Background(tcell.ColorWhite)
|
||||
topMenuStyle := tcell.StyleDefault.Foreground(tcell.ColorWhite).Background(tcell.Color236)
|
||||
|
||||
sizeX, _ := screen.Size()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user