ConfigDialog: fix some gray mismatch in prev commit (#4797)

Remove gray underline on text items (font size items).
Adjust gray color of ButtonProgressWidget to match the
one of ToggleSwitch (just need to invert it, as it's
used to select button, which cause this color to be
inverted).
This commit is contained in:
poire-z
2019-03-14 22:09:55 +01:00
committed by GitHub
parent 2011cf1ad1
commit 9560bc2061
2 changed files with 6 additions and 4 deletions

View File

@@ -75,7 +75,9 @@ function ButtonProgressWidget:update()
if self.thin_grey_style then
button.frame.color = Blitbuffer.COLOR_DARK_GRAY -- no black border around gray squares
if highlighted then
button.frame.background = Blitbuffer.COLOR_DARK_GRAY
-- The button and its frame background will be inverted,
-- so invert the color we want so it gets inverted back
button.frame.background = Blitbuffer.COLOR_DARK_GRAY:invert()
button = FrameContainer:new{ -- add margin back
margin = button_margin,
padding = 0,