diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index c8adf7b..ac16dbc 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -564,7 +564,7 @@ void pre_init_menus() | |||
564 | // static information | 564 | // static information |
565 | LLColor4 color; | 565 | LLColor4 color; |
566 | color = gColors.getColor( "MenuDefaultBgColor" ); | 566 | color = gColors.getColor( "MenuDefaultBgColor" ); |
567 | LLMenuGL::setDefaultBackgroundColor( color ); | 567 | LLMenuGL::setDefaultBackgroundColor(color); |
568 | color = gColors.getColor( "MenuItemEnabledColor" ); | 568 | color = gColors.getColor( "MenuItemEnabledColor" ); |
569 | LLMenuItemGL::setEnabledColor( color ); | 569 | LLMenuItemGL::setEnabledColor( color ); |
570 | color = gColors.getColor( "MenuItemDisabledColor" ); | 570 | color = gColors.getColor( "MenuItemDisabledColor" ); |
@@ -651,18 +651,8 @@ void init_menus() | |||
651 | color = gColors.getColor( "MenuPopupBgColor" ); | 651 | color = gColors.getColor( "MenuPopupBgColor" ); |
652 | gPopupMenuView->setBackgroundColor( color ); | 652 | gPopupMenuView->setBackgroundColor( color ); |
653 | 653 | ||
654 | // If we are not in production, use a different color to make it apparent. | ||
655 | if (LLViewerLogin::getInstance()->isInProductionGrid()) | ||
656 | { | ||
657 | color = gColors.getColor( "MenuBarBgColor" ); | ||
658 | } | ||
659 | else | ||
660 | { | ||
661 | color = gColors.getColor( "MenuNonProductionBgColor" ); | ||
662 | } | ||
663 | gMenuBarView = (LLMenuBarGL*)LLUICtrlFactory::getInstance()->buildMenu("menu_viewer.xml", gMenuHolder); | 654 | gMenuBarView = (LLMenuBarGL*)LLUICtrlFactory::getInstance()->buildMenu("menu_viewer.xml", gMenuHolder); |
664 | gMenuBarView->setRect(LLRect(0, top, 0, top - MENU_BAR_HEIGHT)); | 655 | gMenuBarView->setRect(LLRect(0, top, 0, top - MENU_BAR_HEIGHT)); |
665 | gMenuBarView->setBackgroundColor( color ); | ||
666 | 656 | ||
667 | // gMenuBarView->setItemVisible("Tools", FALSE); | 657 | // gMenuBarView->setItemVisible("Tools", FALSE); |
668 | gMenuBarView->arrange(); | 658 | gMenuBarView->arrange(); |
@@ -673,8 +663,7 @@ void init_menus() | |||
673 | // flash when an item is triggered (the flash occurs in the holder) | 663 | // flash when an item is triggered (the flash occurs in the holder) |
674 | gViewerWindow->getRootView()->addChild(gMenuHolder); | 664 | gViewerWindow->getRootView()->addChild(gMenuHolder); |
675 | 665 | ||
676 | gViewerWindow->setMenuBackgroundColor(false, | 666 | gViewerWindow->setMenuBackgroundColor(false, LLViewerLogin::getInstance()->isInProductionGrid()); |
677 | LLViewerLogin::getInstance()->isInProductionGrid()); | ||
678 | 667 | ||
679 | // Assume L$10 for now, the server will tell us the real cost at login | 668 | // Assume L$10 for now, the server will tell us the real cost at login |
680 | std::string fee = gHippoGridManager->getConnectedGrid()->getCurrencySymbol() + "10"; | 669 | std::string fee = gHippoGridManager->getConnectedGrid()->getCurrencySymbol() + "10"; |
@@ -723,8 +712,6 @@ void init_menus() | |||
723 | LLRect menuBarRect = gLoginMenuBarView->getRect(); | 712 | LLRect menuBarRect = gLoginMenuBarView->getRect(); |
724 | gLoginMenuBarView->setRect(LLRect(menuBarRect.mLeft, menuBarRect.mTop, gViewerWindow->getRootView()->getRect().getWidth() - menuBarRect.mLeft, menuBarRect.mBottom)); | 713 | gLoginMenuBarView->setRect(LLRect(menuBarRect.mLeft, menuBarRect.mTop, gViewerWindow->getRootView()->getRect().getWidth() - menuBarRect.mLeft, menuBarRect.mBottom)); |
725 | 714 | ||
726 | gLoginMenuBarView->setBackgroundColor( color ); | ||
727 | |||
728 | gMenuHolder->addChild(gLoginMenuBarView); | 715 | gMenuHolder->addChild(gLoginMenuBarView); |
729 | } | 716 | } |
730 | 717 | ||