parent
97b6a41eb3
commit
62453daa17
|
@ -16,5 +16,6 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
|
sudo apt update
|
||||||
sudo apt install xorg-dev libgl1-mesa-dev
|
sudo apt install xorg-dev libgl1-mesa-dev
|
||||||
DISPLAY=:0 go test -mod=vendor ./...
|
DISPLAY=:0 go test -mod=vendor ./...
|
||||||
|
|
|
@ -35,7 +35,7 @@ var defaultTheme = Theme{
|
||||||
BrightMagenta: "#c397d8",
|
BrightMagenta: "#c397d8",
|
||||||
BrightCyan: "#70c0b1",
|
BrightCyan: "#70c0b1",
|
||||||
BrightWhite: "#eaeaea",
|
BrightWhite: "#eaeaea",
|
||||||
Background: "#1d1f21",
|
Background: "#000000",
|
||||||
Foreground: "#c5c8c6",
|
Foreground: "#c5c8c6",
|
||||||
SelectionBackground: "#33aa33",
|
SelectionBackground: "#33aa33",
|
||||||
SelectionForeground: "#ffffff",
|
SelectionForeground: "#ffffff",
|
||||||
|
|
|
@ -103,7 +103,7 @@ func (g *GUI) watchForUpdate() {
|
||||||
for range g.updateChan {
|
for range g.updateChan {
|
||||||
ebiten.ScheduleFrame()
|
ebiten.ScheduleFrame()
|
||||||
go func() {
|
go func() {
|
||||||
for g.keyState.AnythingPressed() {
|
if g.keyState.AnythingPressed() {
|
||||||
time.Sleep(time.Millisecond * 10)
|
time.Sleep(time.Millisecond * 10)
|
||||||
ebiten.ScheduleFrame()
|
ebiten.ScheduleFrame()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue