Change the default background of scrollbars.

- Also hacked the cursor row highlighting to not highlight the
  scrollbar. Highlighting the widget inside the view widget is
  much more difficult.
This commit is contained in:
Andrew Hamilton 2018-07-20 08:57:18 +10:00
parent 07ffb403f5
commit dd0b763dab
4 changed files with 19 additions and 12 deletions

View file

@ -74,7 +74,8 @@ class WidgetTests(unittest.TestCase):
def assert_string2(self, appearance, expected_string):
self.assertEqual(
("\n".join(line.data for line in appearance),
"".join("i" if style.fg_color==termstr.Color.black else " "
"".join("i" if style.fg_color==
fill3.ScrollBar.DEFAULT_BACKGROUND_COLOR else " "
for line in appearance for style in line.style)),
expected_string)