[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #3247: Scrollbar on texteditor is too faint.


http://gambaswiki.org/bugtracker/edit?object=BUG.3247&from=L21haW4-

Comment #1 by Bruce STEERS:

I've worked around it now in my program...

  Dim iCol As Integer = Color.White
  Dim hView As Object = TextEditor1.Children[0]
  hView = hView.Children[0]
  Dim hCtrl As Object
  If Color[TextEditor1.Background].Luminance > 180 Then iCol = Color.DarkGray
  If Color[TextEditor1.Background].Luminance < 120 Then iCol = Color.LightGray
  For Each hCtrl In hView._Children
    If hCtrl Is ScrollBar Then hCtrl.Foreground = iCol
  Next


The problem seems bad the lighter the background is.
when the background is darker i can make out the light grey handle, when it's light i cannot.

i think ScrollBar should automatically check it's background color to see if it needs to adapt.



----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----