-
-
Notifications
You must be signed in to change notification settings - Fork 9
Setup menu color customization #263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dasharo
Are you sure you want to change the base?
Conversation
|
I just wondered recently when someone will dare to touch CustomizedDisplayLib and play with it :) We would have to somehow match the Dasharo green colour (on dasharo.com page the hex color for green is If I color pick the green from the picture you posted, it gives me |
CustomizedDisplayLib only supports a small color palette which looks similar to VGA color palette. There are a total of 8 possible background colors and 16 text colors, so sadly there is little possibilities to play with. There are only two green shades possible for text - green and light green, for backgrounds its only the green you see. I can't tell if it would be feasible to extend the color palette. It might be more challenging than just exposing the colors as PSDs. |
|
I think it will be inevitable to change Also we have to take care of serial terminal colors in Also you may try to change the font to something more close to what we use on dasharo.com (I believe it is oswald font regular-400 or a Font Awesome 6 regular-400) |
|
Colors taken from dasharo.com that I suggest that may be suitable: DARKGRAY - |
Of course it doesn't :) Check out this: https://gist.github.com/viniciusdaniel/53a98cbb1d8cac1bb473da23f5708836 |
|
Couple more suggestions to the color selection:
|
That might be more troublesome than expected 😆 Adding a support for vector fonts might be a little too much for now, but maybe it could be feasible to create a tool that could convert vector fonts into bitmaps like the one defined in |
|
I've been fiddling around with converting the Oswald font to bitmaps. The results seemed promising, but in the end I think it will not be possible to properly display a proper vector font in 19x8 resolution. That's the best results I was able to achieve. While it's possible to do some postprocessing to fix jagged edges, losing detail is inevitable. Creating such a small font requires working with pixel art.
The scripts for the conversion are on a separate branch as I will scrap that idea for now. |
|
Yeah the font does not look great and would require more work. The colors look interesting, though. |
cb616c6 to
145ff2b
Compare
4483433 to
2473d00
Compare
Should be easy with
Yeah, the letters in the top section are far from being white... But hey, it looks neat already. |
DasharoPayloadPkg/vbt.bin
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@philipanda another mistakenly added change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing it out. I've commited some random files before too. I think that I'm commiting some artifacts from the build process that I am unaware of. I certainly did not search&replaced something in a binary file 😆. I'll check twice before adding a whole directory next time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
It looks like whatever exact code prints the graphical version of setup menu correctly uses the code |
The issue was the line With that out of the way I think all issues with this PR are fixed? |
899a8df to
e86d004
Compare
|
The exact pick of the colors is due to subjective feel. I'd suggest first considering only the implementation without defining custom color palette and adding the custom colors later if the one defined in this PR would need some adjustments. I'd very much like to try and get that color customization into the upstream EDK2 next and would be grateful for any tips to improve the chances of that happening. From me, I'm afraid it is not a complete feature if only the setup menu can be colored. I've never checked how other places like the popups behave. Maybe that should be worked on first. Another thing is that this change will make all the terminals that only support the classic 4 bit VGA color escape codes show no colors, like in the xterm example. I can't come up with a realistic scenario where someone would use EDK2 via serial using a terminal that does not support 24b RGB colors escape codes, but maybe some switch or a key combination for restoring the 4b mode would be reasonable. Summing up how this looks like: |
e86d004 to
7cf7c41
Compare
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
7cf7c41 to
c426ae7
Compare
|
*rebased onto the dasharo branch and cleared up the commits a bit |
|
Looks cool. I will not judge the implementation, but definitely having our theme is a nice direction. It gives us some branding alignment. |












Description
Extracting hardcoded colors from setup menu into PCDs allowing for easy customisation.
Added a Dasharo theme as a bonus and PoC.
How This Was Tested
qemu-system-x86_64 -machine q35 -serial telnet:localhost:1345,server,nowait -drive if=pflash,format=raw,unit=0,file=build/coreboot.rom
Integration Instructions