Force opaque UI backgrounds with WhiteBrush
Default SBorder brush is semi-transparent in PIE. Using explicit WhiteBrush (solid 1x1 texture) ensures fully opaque panels everywhere. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -56,7 +56,8 @@ TSharedRef<SWidget> UPS_Editor_MainWidget::RebuildWidget()
|
|||||||
.AutoHeight()
|
.AutoHeight()
|
||||||
[
|
[
|
||||||
SNew(SBorder)
|
SNew(SBorder)
|
||||||
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
.BorderImage(FCoreStyle::Get().GetBrush("WhiteBrush"))
|
||||||
|
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
||||||
.Padding(FMargin(12.0f, 8.0f))
|
.Padding(FMargin(12.0f, 8.0f))
|
||||||
[
|
[
|
||||||
SNew(SHorizontalBox)
|
SNew(SHorizontalBox)
|
||||||
@@ -130,7 +131,8 @@ TSharedRef<SWidget> UPS_Editor_MainWidget::RebuildWidget()
|
|||||||
.Padding(16.0f)
|
.Padding(16.0f)
|
||||||
[
|
[
|
||||||
SNew(SBorder)
|
SNew(SBorder)
|
||||||
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
.BorderImage(FCoreStyle::Get().GetBrush("WhiteBrush"))
|
||||||
|
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
||||||
.Padding(FMargin(16.0f, 6.0f))
|
.Padding(FMargin(16.0f, 6.0f))
|
||||||
[
|
[
|
||||||
SNew(SHorizontalBox)
|
SNew(SHorizontalBox)
|
||||||
@@ -239,7 +241,8 @@ TSharedRef<SWidget> UPS_Editor_MainWidget::BuildToolbar()
|
|||||||
};
|
};
|
||||||
|
|
||||||
return SNew(SBorder)
|
return SNew(SBorder)
|
||||||
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
.BorderImage(FCoreStyle::Get().GetBrush("WhiteBrush"))
|
||||||
|
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
||||||
.Padding(FMargin(8.0f, 4.0f))
|
.Padding(FMargin(8.0f, 4.0f))
|
||||||
[
|
[
|
||||||
SNew(SHorizontalBox)
|
SNew(SHorizontalBox)
|
||||||
@@ -388,7 +391,8 @@ TSharedRef<SWidget> UPS_Editor_MainWidget::BuildPropertiesPanel()
|
|||||||
const FLinearColor BlueZ(0.1f, 0.3f, 0.8f);
|
const FLinearColor BlueZ(0.1f, 0.3f, 0.8f);
|
||||||
|
|
||||||
return SNew(SBorder)
|
return SNew(SBorder)
|
||||||
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
.BorderImage(FCoreStyle::Get().GetBrush("WhiteBrush"))
|
||||||
|
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
||||||
.Padding(FMargin(10.0f, 8.0f))
|
.Padding(FMargin(10.0f, 8.0f))
|
||||||
[
|
[
|
||||||
SNew(SVerticalBox)
|
SNew(SVerticalBox)
|
||||||
@@ -440,7 +444,8 @@ TSharedRef<SWidget> UPS_Editor_MainWidget::BuildPropertiesPanel()
|
|||||||
TSharedRef<SWidget> UPS_Editor_MainWidget::BuildSceneButtons()
|
TSharedRef<SWidget> UPS_Editor_MainWidget::BuildSceneButtons()
|
||||||
{
|
{
|
||||||
return SNew(SBorder)
|
return SNew(SBorder)
|
||||||
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
.BorderImage(FCoreStyle::Get().GetBrush("WhiteBrush"))
|
||||||
|
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
||||||
.Padding(FMargin(8.0f, 4.0f))
|
.Padding(FMargin(8.0f, 4.0f))
|
||||||
[
|
[
|
||||||
SNew(SVerticalBox)
|
SNew(SVerticalBox)
|
||||||
@@ -801,7 +806,8 @@ TSharedRef<SWidget> UPS_Editor_MainWidget::BuildSpawnCatalog()
|
|||||||
];
|
];
|
||||||
|
|
||||||
return SNew(SBorder)
|
return SNew(SBorder)
|
||||||
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
.BorderImage(FCoreStyle::Get().GetBrush("WhiteBrush"))
|
||||||
|
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
||||||
.Padding(FMargin(10.0f, 8.0f))
|
.Padding(FMargin(10.0f, 8.0f))
|
||||||
[
|
[
|
||||||
SNew(SBox)
|
SNew(SBox)
|
||||||
@@ -1349,7 +1355,8 @@ void UPS_Editor_MainWidget::ApplyTransformFromUI()
|
|||||||
TSharedRef<SWidget> UPS_Editor_MainWidget::BuildOutliner()
|
TSharedRef<SWidget> UPS_Editor_MainWidget::BuildOutliner()
|
||||||
{
|
{
|
||||||
return SNew(SBorder)
|
return SNew(SBorder)
|
||||||
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
.BorderImage(FCoreStyle::Get().GetBrush("WhiteBrush"))
|
||||||
|
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
||||||
.Padding(FMargin(10.0f, 8.0f))
|
.Padding(FMargin(10.0f, 8.0f))
|
||||||
[
|
[
|
||||||
SNew(SVerticalBox)
|
SNew(SVerticalBox)
|
||||||
|
|||||||
Reference in New Issue
Block a user