mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user