From 35bf40259bffd77a0d8fcfb16a31b9ee70bf6299 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Fri, 8 Dec 2023 14:50:01 +0100 Subject: [PATCH] Fix the inventory thumbnail tooltip appearing randomly different and ugly --- indra/newview/llinspecttexture.cpp | 33 ++++++++++++++++++------------ 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/indra/newview/llinspecttexture.cpp b/indra/newview/llinspecttexture.cpp index da4e3c0949..3efbbd1003 100644 --- a/indra/newview/llinspecttexture.cpp +++ b/indra/newview/llinspecttexture.cpp @@ -191,8 +191,10 @@ LLTextureToolTip::LLTextureToolTip(const LLToolTip::Params& p) mMaxWidth = llmax(mMaxWidth, mPreviewSize); // Currently has to share params with LLToolTip, override values - setBackgroundColor(LLColor4::black); - setTransparentColor(LLColor4::black); + // Make the texture tooltip not look ugly + //setBackgroundColor(LLColor4::black); + //setTransparentColor(LLColor4::black); + // setBorderVisible(true); } @@ -226,22 +228,27 @@ void LLTextureToolTip::initFromParams(const LLToolTip::Params& p) // Currently has to share params with LLToolTip, override values manually // Todo: provide from own params instead, may be like object inspector does it - LLViewBorder::Params border_params; - border_params.border_thickness(LLPANEL_BORDER_WIDTH); - border_params.highlight_light_color(LLColor4::white); - border_params.highlight_dark_color(LLColor4::white); - border_params.shadow_light_color(LLColor4::white); - border_params.shadow_dark_color(LLColor4::white); - addBorder(border_params); - setBorderVisible(true); + // Make the texture tooltip not look ugly + //LLViewBorder::Params border_params; + //border_params.border_thickness(LLPANEL_BORDER_WIDTH); + //border_params.highlight_light_color(LLColor4::white); + //border_params.highlight_dark_color(LLColor4::white); + //border_params.shadow_light_color(LLColor4::white); + //border_params.shadow_dark_color(LLColor4::white); + //addBorder(border_params); + //setBorderVisible(true); + // - setBackgroundColor(LLColor4::black); + // Make the texture tooltip not look ugly + // setBackgroundColor(LLColor4::black); setBackgroundVisible(true); setBackgroundOpaque(true); - setBackgroundImage(nullptr); + // Make the texture tooltip not look ugly + //setBackgroundImage(nullptr); setTransparentImage(nullptr); - mTextBox->setColor(LLColor4::white); + // Make the texture tooltip not look ugly + //mTextBox->setColor(LLColor4::white); snapToChildren(); }