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,6 +56,7 @@ TSharedRef<SWidget> UPS_Editor_MainWidget::RebuildWidget()
|
||||
.AutoHeight()
|
||||
[
|
||||
SNew(SBorder)
|
||||
.BorderImage(FCoreStyle::Get().GetBrush("WhiteBrush"))
|
||||
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
||||
.Padding(FMargin(12.0f, 8.0f))
|
||||
[
|
||||
@@ -130,6 +131,7 @@ TSharedRef<SWidget> UPS_Editor_MainWidget::RebuildWidget()
|
||||
.Padding(16.0f)
|
||||
[
|
||||
SNew(SBorder)
|
||||
.BorderImage(FCoreStyle::Get().GetBrush("WhiteBrush"))
|
||||
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
||||
.Padding(FMargin(16.0f, 6.0f))
|
||||
[
|
||||
@@ -239,6 +241,7 @@ TSharedRef<SWidget> UPS_Editor_MainWidget::BuildToolbar()
|
||||
};
|
||||
|
||||
return SNew(SBorder)
|
||||
.BorderImage(FCoreStyle::Get().GetBrush("WhiteBrush"))
|
||||
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
||||
.Padding(FMargin(8.0f, 4.0f))
|
||||
[
|
||||
@@ -388,6 +391,7 @@ TSharedRef<SWidget> UPS_Editor_MainWidget::BuildPropertiesPanel()
|
||||
const FLinearColor BlueZ(0.1f, 0.3f, 0.8f);
|
||||
|
||||
return SNew(SBorder)
|
||||
.BorderImage(FCoreStyle::Get().GetBrush("WhiteBrush"))
|
||||
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
||||
.Padding(FMargin(10.0f, 8.0f))
|
||||
[
|
||||
@@ -440,6 +444,7 @@ TSharedRef<SWidget> UPS_Editor_MainWidget::BuildPropertiesPanel()
|
||||
TSharedRef<SWidget> UPS_Editor_MainWidget::BuildSceneButtons()
|
||||
{
|
||||
return SNew(SBorder)
|
||||
.BorderImage(FCoreStyle::Get().GetBrush("WhiteBrush"))
|
||||
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
||||
.Padding(FMargin(8.0f, 4.0f))
|
||||
[
|
||||
@@ -801,6 +806,7 @@ TSharedRef<SWidget> UPS_Editor_MainWidget::BuildSpawnCatalog()
|
||||
];
|
||||
|
||||
return SNew(SBorder)
|
||||
.BorderImage(FCoreStyle::Get().GetBrush("WhiteBrush"))
|
||||
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
||||
.Padding(FMargin(10.0f, 8.0f))
|
||||
[
|
||||
@@ -1349,6 +1355,7 @@ void UPS_Editor_MainWidget::ApplyTransformFromUI()
|
||||
TSharedRef<SWidget> UPS_Editor_MainWidget::BuildOutliner()
|
||||
{
|
||||
return SNew(SBorder)
|
||||
.BorderImage(FCoreStyle::Get().GetBrush("WhiteBrush"))
|
||||
.BorderBackgroundColor(FLinearColor(0.05f, 0.05f, 0.05f, 1.0f))
|
||||
.Padding(FMargin(10.0f, 8.0f))
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user