Skip to content

Commit

Permalink
Small colour and blend fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jan 26, 2019
1 parent c505b7b commit 0fbdbf9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dialog/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (d *dialog) setButtons(buttons fyne.CanvasObject) {
))
} else {
bgIcon := canvas.NewImageFromResource(d.icon)
bgIcon.Translucency = 0.75
bgIcon.Translucency = 0.9
d.win.SetContent(fyne.NewContainerWithLayout(d,
d.content,
bgIcon,
Expand Down
2 changes: 1 addition & 1 deletion driver/gl/draw.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (c *glCanvas) drawText(text *canvas.Text, pos fyne.Position, frame fyne.Siz
}

points := c.rectCoords(size, pos, frame, canvas.ImageFillStretch, 0.0)
texture := c.newGlTextTexture(text)
texture := getTexture(text, c.newGlTextTexture)

gl.Enable(gl.BLEND)
gl.BlendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA)
Expand Down
2 changes: 1 addition & 1 deletion driver/gl/gl.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ const (
void main() {
vec4 color = texture(tex, fragTexCoord);
if(color.a < 0.01)
if(color.a < 0.001)
discard;
frag_colour = color;
Expand Down
2 changes: 1 addition & 1 deletion theme/theme.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func DarkTheme() fyne.Theme {
background: color.RGBA{0x42, 0x42, 0x42, 0xff},
button: color.RGBA{0x21, 0x21, 0x21, 0xff},
text: color.RGBA{0xff, 0xff, 0xff, 0xff},
placeholder: color.RGBA{0x88, 0x88, 0x88, 0xff},
placeholder: color.RGBA{0xb2, 0xb2, 0xb2, 0xff},
primary: color.RGBA{0x1a, 0x23, 0x7e, 0xff},
}

Expand Down

0 comments on commit 0fbdbf9

Please sign in to comment.