[haiku-bugs] Re: [Haiku] #16618: HaikuControlLook: DrawMenuBarBackground Disabled Flag dont work

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Thu, 10 Dec 2020 20:28:36 -0000

#16618: HaikuControlLook: DrawMenuBarBackground Disabled Flag dont work
-----------------------------+------------------------------
  Reporter:  nhtello         |      Owner:  stippi
      Type:  bug             |     Status:  new
  Priority:  normal          |  Milestone:  Unscheduled
 Component:  User Interface  |    Version:  R1/beta2
Resolution:                  |   Keywords:  HaikuControlLook
Blocked By:                  |   Blocking:
  Platform:  All             |
-----------------------------+------------------------------
Comment (by nhtello):

 After the commit: https://git.haiku-
 os.org/haiku/commit/?id=2db8ba2c8df9c505a2d5840d68682455982682cf
 , the problem persist. In the method ::DrawMenuBarBackground(xxxx) this
 block of code never is true:

         bool isEnabled = (flags & B_FOCUSED) != 0;

         if(isEnabled){
                 customColor = tint_color(ui_color(B_WINDOW_TAB_COLOR),
 1.0);
                 ...

 This causes that the background color of the menu cannot change if the
 window is focused or not.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16618#comment:1>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: