Jump to content

Customized OpenCore with additional features


n.d.k
1,348 posts in this topic

Recommended Posts

1 hour ago, meaganmargaret said:

I guess to use your c code menu you have to re-compile opencore.efi?

Correct. run again ./ndk-macbuild.tool after applying the color changes to the Simplebootmenu file.

 

Link to comment
Share on other sites

Simple Ui boot picker is on!  Everything is the same just graphic instead of text. no mouse support yet

 

Don't forget to copy Icons folder EFI\OC\Icons

 

Details:

 

Icon image can be 128x128 pixel in either format icns or png image renamed to icns.

 

Text is auto scaled for 4k resolution screen.  

 

Background, Font text colors are customizable by editing section below. file: OpenCorePkg/edk2/OcSupportPkg/Library/OcBootManagementLib/OcSimpleBootMenu.c

/*============ User's Color Settings Begin ==============*/

EFI_GRAPHICS_OUTPUT_BLT_PIXEL mTan = {0x28, 0x3d, 0x52, 0xff};
EFI_GRAPHICS_OUTPUT_BLT_PIXEL mWhitePixel  = {0xff, 0xff, 0xff, 0xff};
EFI_GRAPHICS_OUTPUT_BLT_PIXEL mBlackPixel  = {0x00, 0x00, 0x00, 0xff};
EFI_GRAPHICS_OUTPUT_BLT_PIXEL mDarkGray = {0x76, 0x81, 0x85, 0xff};
EFI_GRAPHICS_OUTPUT_BLT_PIXEL mLowWhitePixel  = {0xb8, 0xbd, 0xbf, 0xff};
/*
 Example:
 EFI_GRAPHICS_OUTPUT_BLT_PIXEL mNewColor = {0x3d, 0x3c, 0x3b, 0xff}; <- BGRA format
 
 EFI_GRAPHICS_OUTPUT_BLT_PIXEL *mFontColorPixel = &mNewColor;
*/
// Selection and Entry's description font color
EFI_GRAPHICS_OUTPUT_BLT_PIXEL *mFontColorPixel = &mLowWhitePixel;

// Date time, Version, and other color
EFI_GRAPHICS_OUTPUT_BLT_PIXEL *mFontColorPixelAlt = &mDarkGray;

// Background color
EFI_GRAPHICS_OUTPUT_BLT_PIXEL *mBackgroundPixel = &mTan;

/*============= User's Color Settings End ===============*/

 

Edited by n.d.k
  • Like 2
  • Thanks 1
Link to comment
Share on other sites

4 hours ago, n.d.k said:

简单的Ui引导选择器已打开!一切都是相同的,只是图形而不是文本。尚无鼠标支持

 

不要忘记复制Icons文件夹EFI \ OC \ Icons

 

细节:

 

图标图像可以是128x128像素,格式为icns或重命名为icns的png图像。

 

文本会自动缩放为4k分辨率的屏幕。  

 

可以通过下面的编辑部分自定义背景,字体文本颜色。文件:  OpenCorePkg / edk2 / OcSupportPkg / Library / OcBootManagementLib / OcSimpleBootMenu.c



                    

 
 

 

 

 

I recompiled the new version, but why the icon only sees the black and white boxes, but the icon is not visible. The Icons folder has been copied to the OC directory. What options do I need to set to display correctly?

IMG_20200202_102950R.jpg

Link to comment
Share on other sites

5 minutes ago, btwise said:

I recompiled the new version, but why the icon only sees the black and white boxes, but the icon is not visible. The Icons folder has been copied to the OC directory. What options do I need to set to display correctly?

IMG_20200202_102950R.jpg

 

run a DEBUG version and post the log, make sure Icons folder is in the right place..look like it can't read the icon files.

Link to comment
Share on other sites

6 minutes ago, n.d.k said:

 

run a DEBUG version and post the log, make sure Icons folder is in the right place..look like it can't read the icon files.

I'm re-downloading your source code. After compiling it once, the icon path should be correct.image.thumb.png.059f2cad2ad0fa32d9db50e554df6248.png

Link to comment
Share on other sites

1 hour ago, btwise said:

I have redownloaded the build and formatted the EFI partition, but the icons still does not appear correctly

Maybe icons format incorrect something like this PNG-8 or PNG-24

Link to comment
Share on other sites

Icons can not use icons with color elements?

 

No BANNER didn't seem to fit the picture

11 minutes ago, HmO said:

也许图标格式不正确,例如PNG-8或PNG-24

no,Because there are two EFI partitions, the menu does not determine which one is the Mac Os boot partition

Link to comment
Share on other sites

45 minutes ago, btwise said:

Icons can not use icons with color elements?

 

No BANNER didn't seem to fit the picture

no,Because there are two EFI partitions, the menu does not determine which one is the Mac Os boot partition

Log message

OCUI: Failed to locate valid png file - 0!

Link to comment
Share on other sites

25 minutes ago, HmO said:

Log message

OCUI: Failed to locate valid png file - 0!

 

It's the issue with locating the right EFI partition on system with Multiple EFI, I need a better function to find the correct one. For now, just copy the Icons folder to other EFI partition until it show up if there are multiple one.

Link to comment
Share on other sites

Whether the icon can be scaled automatically based on resolution, and the icon should use a standard that automatically adapts to the background color, rather than changing the icon's background color when the background color changes

  • Like 1
Link to comment
Share on other sites

5 minutes ago, MacPato™ said:

a nice feature, better than the text, but not able to get it to work and i have 1 EFI, OCUI: complains it can't locate PNG file and halts. and the icon folder is on the EFI partition.

Oh nevermind i recompiled and all is good, and it seems to boot faster too!, nice job.

Link to comment
Share on other sites

28 minutes ago, n.d.k said:

Just pushed new commit, should fix the icons problem.

 

Great job, thanks :) Is it possible to set resolution for bootpicker somehow?

 

I've a issue with NDK-OC USB and Clover-Catalina HDD connected at the same time: no keyboard to select Catalina, my computer display Clover GUI without showing macOS. Before there is no issue.

 

Sorry for my bad english

Link to comment
Share on other sites

20 minutes ago, darthsian said:

Is it possible to set resolution for bootpicker somehow? On 32" LCD with 2560 x 1440 the icons are large and rough. Thanks.

Try Misc->Boot->ConsoleMode = Blank and Resolution = Max

  • Like 1
Link to comment
Share on other sites

5 minutes ago, n.d.k said:

Try Misc->Boot->ConsoleMode = Blank and Resolution = Max

 

Not working for my 27" 1920x1080.

 

About my keyboard issue, what do you think, please (see my previous post). 

Link to comment
Share on other sites

×
×
  • Create New...