[haiku-bugs] Re: [Haiku] #10780: [WebPositive] scrollbars are not properly aligned

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 31 Jan 2023 10:20:36 -0000

#10780: [WebPositive] scrollbars are not properly aligned
---------------------------+----------------------------
  Reporter:  diver         |      Owner:  pulkomandy
      Type:  bug           |     Status:  new
  Priority:  normal        |  Milestone:  R1
 Component:  Kits/Web Kit  |    Version:  R1/Development
Resolution:                |   Keywords:
Blocked By:                |   Blocking:
  Platform:  All           |
---------------------------+----------------------------
Comment (by nephele):

 I'm mostly talking about stuff like Source/WebCore/platform/haiku Koder
 ScrollbarThemeHaiku.cpp

 For example void ScrollbarThemeHaiku::paintThumb  implements the thumb
 drawing as HaikuControlLook does it roughly, by using the button drawing
 and calling be_control_look->DrawButtonBackground later on after it set up
 everything.

 I think it should instead call be_control_look->DrawScrollBarThumb. It
 would do basically the same If i'm not mistaken, just allow me to
 implement this differently in my controllook.
 Perhaps it's not that much "higher level" but it is more specific i think.

 For colors, there is no way in the codepath for our custom controls to
 respect the colors in the drawing, perhaps they are passed and we ignore
 them? It may be worth investigating.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/10780#comment:6>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: