Opened 3 years ago

Last modified 3 years ago

#16618 new bug

HaikuControlLook: DrawMenuBarBackground Disabled Flag dont work

Reported by: nhtello Owned by: stippi
Priority: normal Milestone: Unscheduled
Component: User Interface Version: R1/beta2
Keywords: HaikuControlLook Cc:
Blocked By: Blocking:
Platform: All

Description

In the method "DrawMenuBarBackground" seems that the flag "(flags & B_DISABLED) != 0" never come activated (same as B_FOCUSED flag). This causes that some code never execute and is not posible to know if the window has the focus or not.

Attachments (1)

Bitmap Clip.jpg (35.7 KB ) - added by nhtello 3 years ago.

Download all attachments as: .zip

Change History (2)

by nhtello, 3 years ago

Attachment: Bitmap Clip.jpg added

comment:1 by nhtello, 3 years ago

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.

Note: See TracTickets for help on using tickets.