haiku/headers/os
Adrien Destugues 5f603da01a Better shape for submenu arrow
Just use BControLook where appropriate. It already provides a nice arrow
drawing function (also used in DeskBar expander and in scrollbar
buttons).

Fix second part of #8900

Changes by John Scipione:

Update menu mark and submenu arrow color with menu text color

Use text color for checkmark and submenu arrow colors, tint less black.
This means that colored bg/white text menu item will also draw a white
checkmark and submenu arrow.

Break out BMenuItem::Draw functionality into private methods _IsActive,
_LowColor() and _HighColor() methods and use them to set the mark colors.

Scale submenu arrow and checkmark with item height (which scales with
font size.)

does not align shortcuts with submenu arrows... but if you were to do
that you'd add item->Bounds().Height() / 2.

Signed-off-by: John Scipione <jscipione@gmail.com>

Change-Id: I8299094ef88bf227510b116eb1b84c261dc94723
Reviewed-on: https://review.haiku-os.org/c/341
Reviewed-by: Stefano Ceccherini <stefano.ceccherini@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-01-14 15:59:57 +00:00
..
add-ons Tracker: Allow add-ons to dynamically extend popup menu. 2018-07-19 14:00:48 +00:00
app BLooper: API to hijack existing thread. 2018-12-02 21:36:31 +00:00
arch ARM: remove annoying #warning 2014-10-26 23:40:17 +01:00
be_apps be_apps/ServicesDaemon: Remove. 2016-07-29 18:41:30 -04:00
bluetooth bluetooth: ioctls always pass size on Haiku. 2018-11-18 14:42:09 -05:00
codec BCodecRoster: Remove MakeFormatFor 2018-12-28 23:01:02 +01:00
device Revert r42812. As pointed by Michael, one can use 2011-10-24 21:02:14 +00:00
drivers block_cache: Implement cache_has_block_in_transaction function that will check the existence of block in one specific transaction. 2017-12-10 11:02:56 -05:00
game Style fixes to the Game Kit, focus on docs 2014-06-11 16:44:48 -04:00
interface Better shape for submenu arrow 2019-01-14 15:59:57 +00:00
kernel ELF: Ignore PT_EH_FRAME and PT_STACK. 2018-11-24 21:08:31 -05:00
locale BMessageFormat: Rename to BStringFormat. 2018-08-13 20:49:00 -04:00
mail Migrate the BMailComponent docs to the Haiku Book. 2017-12-25 19:43:51 -05:00
media media_kit: Remove most private dependencies from codec_kit 2018-11-27 11:38:05 +01:00
midi B_BIG_SYNTH_FILE and B_LITTLE_SYNTH_FILE are deprecated. 2015-08-24 17:18:26 +02:00
midi2
net BHttpForm: Clang also uses pair<> now. 2017-12-18 17:58:04 -05:00
package Package Kit: Fix -Wmismatched-tags 2018-08-25 18:53:32 +00:00
storage Remove Spurious B_BEOS_DATA_DIRECTORY 2017-05-08 22:17:53 +02:00
support Support : Fixes for Relative URL Handling 2018-09-11 18:39:53 +00:00
translation Minor cleanup of translator roster commit, updated copyright. 2015-11-13 11:37:15 +01:00
AppKit.h
Be.h Patch by Jorma Karvonen: Add LocaleKit.h header and also add it to Be.h. Thanks! 2010-05-16 16:07:55 +00:00
BeBuild.h Versioning: Add BETA_1 and PRE_BETA_2 version constants. 2018-08-28 00:21:13 -04:00
DeviceKit.h
GameKit.h
InterfaceKit.h
KernelKit.h
LocaleKit.h Remove even more Locale Kit cruft. 2017-07-30 14:46:41 -04:00
MailKit.h
MediaKit.h Make BMediaRecorder public 2017-01-10 21:34:20 +01:00
MidiKit.h
NetKit.h
NetworkKit.h Added the new headers to the NetworkKit.h all-in-one header. 2010-10-27 14:16:19 +00:00
StorageKit.h
SupportKit.h
TranslationKit.h