[haiku-commits] r38122 - in haiku/trunk: headers/os/interface src/bin

  • From: revol@xxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 15 Aug 2010 18:33:00 +0200 (CEST)

Author: mmu_man
Date: 2010-08-15 18:33:00 +0200 (Sun, 15 Aug 2010)
New Revision: 38122
Changeset: http://dev.haiku-os.org/changeset/38122

Modified:
   haiku/trunk/headers/os/interface/InterfaceDefs.h
   haiku/trunk/src/bin/WindowShade.cpp
Log:
Add synonyms for tootip ui_color constants. Fix WindowShade to use the new 
official ones.


Modified: haiku/trunk/headers/os/interface/InterfaceDefs.h
===================================================================
--- haiku/trunk/headers/os/interface/InterfaceDefs.h    2010-08-15 15:49:09 UTC 
(rev 38121)
+++ haiku/trunk/headers/os/interface/InterfaceDefs.h    2010-08-15 16:33:00 UTC 
(rev 38122)
@@ -295,6 +295,8 @@
        // Old name synonyms.
        B_KEYBOARD_NAVIGATION_COLOR = B_NAVIGATION_BASE_COLOR,
        B_MENU_SELECTION_BACKGROUND_COLOR = B_MENU_SELECTED_BACKGROUND_COLOR,
+       B_TOOLTIP_BACKGROUND_COLOR = B_TOOL_TIP_BACKGROUND_COLOR,
+       B_TOOLTIP_TEXT_COLOR = B_TOOL_TIP_TEXT_COLOR,
 
        // These are deprecated -- do not use in new code.  See BScreen for
        // the replacement for B_DESKTOP_COLOR.

Modified: haiku/trunk/src/bin/WindowShade.cpp
===================================================================
--- haiku/trunk/src/bin/WindowShade.cpp 2010-08-15 15:49:09 UTC (rev 38121)
+++ haiku/trunk/src/bin/WindowShade.cpp 2010-08-15 16:33:00 UTC (rev 38122)
@@ -47,8 +47,8 @@
 I(menu_item_text_color, B_MENU_ITEM_TEXT_COLOR),
 I(menu_selected_item_text_color, B_MENU_SELECTED_ITEM_TEXT_COLOR),
 I(menu_selected_border_color, B_MENU_SELECTED_BORDER_COLOR),
-I(tooltip_background_color, B_TOOLTIP_BACKGROUND_COLOR),
-I(tooltip_text_color, B_TOOLTIP_TEXT_COLOR),
+I(tooltip_background_color, B_TOOL_TIP_BACKGROUND_COLOR),
+I(tooltip_text_color, B_TOOL_TIP_TEXT_COLOR),
 I(success_color, B_SUCCESS_COLOR),
 I(failure_color, B_FAILURE_COLOR),
 I(keyboard_navigation_color, B_KEYBOARD_NAVIGATION_COLOR),


Other related posts: