From 52924c5ef936811b5329e82d983989e1fb10a1e4 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Wed, 3 Jan 2007 07:04:01 +0000 Subject: [PATCH] Removed different menu separators git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19686 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/SeparatorItem.cpp | 46 +++------------------------- 1 file changed, 4 insertions(+), 42 deletions(-) diff --git a/src/kits/interface/SeparatorItem.cpp b/src/kits/interface/SeparatorItem.cpp index 318bcf6667..ba774fe3e4 100644 --- a/src/kits/interface/SeparatorItem.cpp +++ b/src/kits/interface/SeparatorItem.cpp @@ -78,48 +78,10 @@ BSeparatorItem::Draw() BRect bounds = Frame(); rgb_color oldColor = menu->HighColor(); - // TODO: remove superfluous separators - menu_info menuInfo; - get_menu_info(&menuInfo); - switch (menuInfo.separator) { - case 0: - menu->SetHighColor(tint_color(ui_color(B_MENU_BACKGROUND_COLOR), - B_DARKEN_1_TINT)); - menu->StrokeLine(BPoint(bounds.left + 1.0f, bounds.top + 4.0f), - BPoint(bounds.right - 1.0f, bounds.top + 4.0f)); - menu->SetHighColor(tint_color(ui_color(B_MENU_BACKGROUND_COLOR), - B_LIGHTEN_2_TINT)); - menu->StrokeLine(BPoint(bounds.left + 1.0f, bounds.top + 5.0f), - BPoint(bounds.right - 1.0f, bounds.top + 5.0f)); - break; - - case 1: - menu->SetHighColor(tint_color(ui_color(B_MENU_BACKGROUND_COLOR), - B_DARKEN_1_TINT)); - menu->StrokeLine(BPoint(bounds.left + 9.0f, bounds.top + 4.0f), - BPoint(bounds.right - 9.0f, bounds.top + 4.0f)); - menu->SetHighColor(tint_color(ui_color(B_MENU_BACKGROUND_COLOR), - B_LIGHTEN_2_TINT)); - menu->StrokeLine(BPoint(bounds.left + 9.0f, bounds.top + 5.0f), - BPoint(bounds.right - 9.0f, bounds.top + 5.0f)); - break; - - case 2: - menu->SetHighColor(tint_color(ui_color(B_MENU_BACKGROUND_COLOR), - B_DARKEN_1_TINT)); - menu->StrokeLine(BPoint(bounds.left + 9.0f, bounds.top + 4.0f), - BPoint(bounds.right - 9.0f, bounds.top + 4.0f)); - menu->StrokeLine(BPoint(bounds.left + 10.0f, bounds.top + 5.0f), - BPoint(bounds.right - 10.0f, bounds.top + 5.0f)); - menu->SetHighColor(tint_color(ui_color(B_MENU_BACKGROUND_COLOR), - B_LIGHTEN_2_TINT)); - menu->StrokeLine(BPoint(bounds.left + 11.0f, bounds.top + 6.0f), - BPoint(bounds.right - 11.0f, bounds.top + 6.0f)); - break; - - default: - break; - } + menu->SetHighColor(tint_color(ui_color(B_MENU_BACKGROUND_COLOR), B_DARKEN_1_TINT)); + menu->StrokeLine(BPoint(bounds.left + 1.0f, bounds.top + 4.0f), BPoint(bounds.right - 1.0f, bounds.top + 4.0f)); + menu->SetHighColor(tint_color(ui_color(B_MENU_BACKGROUND_COLOR), B_LIGHTEN_2_TINT)); + menu->StrokeLine(BPoint(bounds.left + 1.0f, bounds.top + 5.0f), BPoint(bounds.right - 1.0f, bounds.top + 5.0f)); menu->SetHighColor(oldColor); }