Use gradient for top bar

This commit is contained in:
EnderIce2 2024-02-04 03:47:45 +02:00
parent fc8027a377
commit f0ea4e3afb
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -123,9 +123,26 @@ namespace CrashHandler
Video::Font *f = Display->GetCurrentFont();
Video::FontInfo fi = f->GetInfo();
// for (uint32_t i = 0; i < sb->Width; i++)
// {
// for (uint32_t j = 0; j < fi.Height + 8; j++)
// {
// uint32_t grayValue = (j < 0x505050 / 0x040404) ? 0x505050 - (j * 0x040404) : 0;
// Display->SetPixel(i, j, grayValue, SBIdx);
// }
// }
for (uint32_t i = 0; i < sb->Width; i++)
{
for (uint32_t j = 0; j < fi.Height + 8; j++)
Display->SetPixel(i, j, 0x282828, SBIdx);
{
uint32_t grayValue = 0x505050 - (j * 0x020202);
Display->SetPixel(i, j, grayValue, SBIdx);
}
}
for (uint32_t i = 0; i < sb->Width; i++)
Display->SetPixel(i, fi.Height + 8, 0x404040, SBIdx);
Display->SetBufferCursor(SBIdx, 8, (fi.Height + 8) / 6);
switch (SBIdx)