mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 21:01:37 +00:00
Fix bar dark gradient effect.
This commit is contained in:
parent
9b90ad9c0c
commit
90bd3ce3fa
1 changed files with 15 additions and 13 deletions
|
|
@ -106,9 +106,7 @@ static void DrawScanlineBars()
|
||||||
auto& res = ImGui::GetIO().DisplaySize;
|
auto& res = ImGui::GetIO().DisplaySize;
|
||||||
auto drawList = ImGui::GetForegroundDrawList();
|
auto drawList = ImGui::GetForegroundDrawList();
|
||||||
|
|
||||||
SetShaderModifier(IMGUI_SHADER_MODIFIER_SCANLINE);
|
// Top bar fade
|
||||||
|
|
||||||
// Top bar
|
|
||||||
drawList->AddRectFilledMultiColor(
|
drawList->AddRectFilledMultiColor(
|
||||||
{ 0.0f, 0.0f },
|
{ 0.0f, 0.0f },
|
||||||
{ res.x, height },
|
{ res.x, height },
|
||||||
|
|
@ -116,16 +114,8 @@ static void DrawScanlineBars()
|
||||||
FADE_COLOR0,
|
FADE_COLOR0,
|
||||||
FADE_COLOR1,
|
FADE_COLOR1,
|
||||||
FADE_COLOR1);
|
FADE_COLOR1);
|
||||||
|
|
||||||
drawList->AddRectFilledMultiColor(
|
// Bottom bar fade
|
||||||
{ 0.0f, 0.0f },
|
|
||||||
{ res.x, height },
|
|
||||||
COLOR0,
|
|
||||||
COLOR0,
|
|
||||||
COLOR1,
|
|
||||||
COLOR1);
|
|
||||||
|
|
||||||
// Bottom bar
|
|
||||||
drawList->AddRectFilledMultiColor(
|
drawList->AddRectFilledMultiColor(
|
||||||
{ res.x, res.y },
|
{ res.x, res.y },
|
||||||
{ 0.0f, res.y - height },
|
{ 0.0f, res.y - height },
|
||||||
|
|
@ -134,6 +124,18 @@ static void DrawScanlineBars()
|
||||||
FADE_COLOR1,
|
FADE_COLOR1,
|
||||||
FADE_COLOR1);
|
FADE_COLOR1);
|
||||||
|
|
||||||
|
SetShaderModifier(IMGUI_SHADER_MODIFIER_SCANLINE);
|
||||||
|
|
||||||
|
// Top bar
|
||||||
|
drawList->AddRectFilledMultiColor(
|
||||||
|
{ 0.0f, 0.0f },
|
||||||
|
{ res.x, height },
|
||||||
|
COLOR0,
|
||||||
|
COLOR0,
|
||||||
|
COLOR1,
|
||||||
|
COLOR1);
|
||||||
|
|
||||||
|
// Bottom bar
|
||||||
drawList->AddRectFilledMultiColor(
|
drawList->AddRectFilledMultiColor(
|
||||||
{ res.x, res.y },
|
{ res.x, res.y },
|
||||||
{ 0.0f, res.y - height },
|
{ 0.0f, res.y - height },
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue