make it so default bg is used as canvas bg behind the image

pull/1/head
Ondřej Hruška 7 years ago
parent 80f0ca7202
commit 9e62a8ddbb
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 3
      js/term/screen_renderer.js
  2. 6
      sass/pages/_term.scss

@ -92,6 +92,9 @@ module.exports = class ScreenRenderer {
this.defaultFgNum = fg
this.defaultBgNum = bg
this.scheduleDraw('default-colors')
// full bg with default color (goes behind the image)
this.screen.canvas.style.backgroundColor = this.getColor(bg)
}
}

@ -25,6 +25,12 @@ body.term {
cursor: default;
canvas {
background-repeat: no-repeat;
background-position: center center;
background-size: contain;
}
canvas.selectable {
cursor: text;
}

Loading…
Cancel
Save