From ee0bd9ee7679b6d4ebc212fc2127d5f068444234 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Sun, 12 Aug 2012 20:52:57 +0200 Subject: [PATCH] De-uglify graphics preferences --- indra/llui/lltabcontainer.cpp | 2 +- indra/newview/llpaneldisplay.cpp | 2 +- .../default/xui/en-us/floater_preferences.xml | 14 ++--- .../skins/default/xui/en-us/notifications.xml | 25 -------- .../xui/en-us/panel_preferences_graphics1.xml | 57 +++++++++---------- 5 files changed, 37 insertions(+), 63 deletions(-) diff --git a/indra/llui/lltabcontainer.cpp b/indra/llui/lltabcontainer.cpp index 7d3bb20c4..24ccd848f 100644 --- a/indra/llui/lltabcontainer.cpp +++ b/indra/llui/lltabcontainer.cpp @@ -751,7 +751,7 @@ void LLTabContainer::addTabPanel(LLPanel* child, else { tab_panel_top = getRect().getHeight() - getTopBorderHeight(); - tab_panel_bottom = (TABCNTR_TAB_HEIGHT - TABCNTR_BUTTON_PANEL_OVERLAP); // Run to the edge, covering up the border + tab_panel_bottom = (TABCNTR_TAB_HEIGHT + LLPANEL_BORDER_WIDTH*2 - TABCNTR_BUTTON_PANEL_OVERLAP); // Run to the edge, covering up the border } } else diff --git a/indra/newview/llpaneldisplay.cpp b/indra/newview/llpaneldisplay.cpp index d5a888d12..1e2eccdca 100644 --- a/indra/newview/llpaneldisplay.cpp +++ b/indra/newview/llpaneldisplay.cpp @@ -1178,7 +1178,7 @@ void LLPanelDisplay::updateMeterText(LLUICtrl* ctrl, void* user_data) LLTextBox* m1 = panel->getChild("DrawDistanceMeterText1"); LLTextBox* m2 = panel->getChild("DrawDistanceMeterText2"); - // toggle the two text boxes based on whether we have 1 or two digits + // toggle the two text boxes based on whether we have 2 or 3 digits F32 val = slider->getValueF32(); bool two_digits = val < 100; m1->setVisible(two_digits); diff --git a/indra/newview/skins/default/xui/en-us/floater_preferences.xml b/indra/newview/skins/default/xui/en-us/floater_preferences.xml index ea850207c..e737f6144 100644 --- a/indra/newview/skins/default/xui/en-us/floater_preferences.xml +++ b/indra/newview/skins/default/xui/en-us/floater_preferences.xml @@ -1,23 +1,23 @@ - -