diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2022-08-11 15:58:53 +0300 |
---|---|---|
committer | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2022-08-11 15:58:53 +0300 |
commit | 64fefa9880a85d333ef4a4479bcb3468cef12f65 (patch) | |
tree | 6465e02947893568d3225dbc5e3f1e7e55e65ca7 /indra | |
parent | 1f53d3abbf612531dd10672127552e189255da01 (diff) |
SL-17670 tweaking simplified outfit snapshot floater
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llfloatersimpleoutfitsnapshot.cpp | 9 | ||||
-rw-r--r-- | indra/newview/skins/default/colors.xml | 6 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/floater_simple_outfit_snapshot.xml | 18 |
3 files changed, 22 insertions, 11 deletions
diff --git a/indra/newview/llfloatersimpleoutfitsnapshot.cpp b/indra/newview/llfloatersimpleoutfitsnapshot.cpp index 181e2ba10e..bab2efbbd5 100644 --- a/indra/newview/llfloatersimpleoutfitsnapshot.cpp +++ b/indra/newview/llfloatersimpleoutfitsnapshot.cpp @@ -182,8 +182,8 @@ BOOL LLFloaterSimpleOutfitSnapshot::postBuild() return TRUE; } -const S32 PREVIEW_OFFSET_X = 2; -const S32 PREVIEW_OFFSET_Y = 63; +const S32 PREVIEW_OFFSET_X = 12; +const S32 PREVIEW_OFFSET_Y = 70; void LLFloaterSimpleOutfitSnapshot::draw() { @@ -216,7 +216,12 @@ void LLFloaterSimpleOutfitSnapshot::draw() gl_draw_scaled_image(offset_x, offset_y, thumbnail_w, thumbnail_h, previewp->getThumbnailImage(), color % alpha); +#if LL_DARWIN + std::string alpha_color = getTransparencyType() == TT_ACTIVE ? "OutfitSnapshotMacMask" : "OutfitSnapshotMacMask2"; +#else std::string alpha_color = getTransparencyType() == TT_ACTIVE ? "FloaterFocusBackgroundColor" : "DkGray"; +#endif + previewp->drawPreviewRect(offset_x, offset_y, LLUIColorTable::instance().getColor(alpha_color)); gGL.pushUIMatrix(); diff --git a/indra/newview/skins/default/colors.xml b/indra/newview/skins/default/colors.xml index 7beb013fba..3dd772ca93 100644 --- a/indra/newview/skins/default/colors.xml +++ b/indra/newview/skins/default/colors.xml @@ -969,4 +969,10 @@ <color name="AddPaymentPanel" value="0.27 0.27 0.27 1" /> + <color + name="OutfitSnapshotMacMask" + value="0.115 0.115 0.115 1"/> + <color + name="OutfitSnapshotMacMask2" + value="0.1 0.1 0.1 1"/> </colors> diff --git a/indra/newview/skins/default/xui/en/floater_simple_outfit_snapshot.xml b/indra/newview/skins/default/xui/en/floater_simple_outfit_snapshot.xml index 765bc54e46..5ece7b85d5 100644 --- a/indra/newview/skins/default/xui/en/floater_simple_outfit_snapshot.xml +++ b/indra/newview/skins/default/xui/en/floater_simple_outfit_snapshot.xml @@ -5,7 +5,7 @@ can_minimize="true" can_resize="false" can_close="true" - height="315" + height="305" layout="topleft" name="simple_outfit_snapshot" single_instance="true" @@ -13,24 +13,24 @@ save_rect="true" save_visibility="false" title="OUTFIT SNAPSHOT" - width="405"> + width="351"> <ui_ctrl layout="topleft" name="thumbnail_placeholder" top="18" - left="2" - width="400" - height="400" + left="22" + width="335" + height="200" follows="top|left"/> <button follows="left|bottom" height="22" layout="topleft" - left="42" + left="29" label="Take photo" name="new_snapshot_btn" bottom="-15" - width="100" /> + width="90" /> <button follows="left|bottom" height="22" @@ -38,7 +38,7 @@ left_pad="10" label="Save (L$[UPLOAD_COST])" name="save_btn" - width="100" /> + width="90" /> <button follows="left|bottom" height="22" @@ -46,5 +46,5 @@ left_pad="10" label="Cancel" name="cancel_btn" - width="100" /> + width="90" /> </floater> |