Ellybz Posted January 30, 2020 Share Posted January 30, 2020 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 More sharing options...
n.d.k Posted February 1, 2020 Author Share Posted February 1, 2020 (edited) 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 February 2, 2020 by n.d.k 2 1 Link to comment Share on other sites More sharing options...
btwise Posted February 2, 2020 Share Posted February 2, 2020 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? Link to comment Share on other sites More sharing options...
n.d.k Posted February 2, 2020 Author Share Posted February 2, 2020 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? 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 More sharing options...
btwise Posted February 2, 2020 Share Posted February 2, 2020 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. Link to comment Share on other sites More sharing options...
n.d.k Posted February 2, 2020 Author Share Posted February 2, 2020 1 minute ago, btwise said: I'm re-downloading your source code. After compiling it once, the icon path should be correct. That looks correct! Link to comment Share on other sites More sharing options...
btwise Posted February 2, 2020 Share Posted February 2, 2020 32 minutes ago, n.d.k said: 看起来很正确! Icons are normal, but the display in DEBUG LOG is invalid. Why? opencore-2020-02-02-030536.txt Link to comment Share on other sites More sharing options...
btwise Posted February 2, 2020 Share Posted February 2, 2020 I have redownloaded the build and formatted the EFI partition, but the icons still does not appear correctly Link to comment Share on other sites More sharing options...
HmO Posted February 2, 2020 Share Posted February 2, 2020 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 More sharing options...
btwise Posted February 2, 2020 Share Posted February 2, 2020 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 More sharing options...
HmO Posted February 2, 2020 Share Posted February 2, 2020 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 More sharing options...
n.d.k Posted February 2, 2020 Author Share Posted February 2, 2020 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 More sharing options...
matgeo Posted February 2, 2020 Share Posted February 2, 2020 3 hours ago, btwise said: I have redownloaded the build and formatted the EFI partition, but the icons still does not appear correctly Same here. Icons look empty. Link to comment Share on other sites More sharing options...
Ellybz Posted February 2, 2020 Share Posted February 2, 2020 Confirmed. Icons are empty when system has multiple EFIs. Icons are visible when icons Folder are copied across.. Link to comment Share on other sites More sharing options...
btwise Posted February 2, 2020 Share Posted February 2, 2020 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 1 Link to comment Share on other sites More sharing options...
n.d.k Posted February 2, 2020 Author Share Posted February 2, 2020 Just pushed new commit, should fix the icons problem. 1 Link to comment Share on other sites More sharing options...
darthsian Posted February 2, 2020 Share Posted February 2, 2020 (edited) Is it possible to set resolution for bootpicker somehow? On 32" LCD with 2560 x 1440 the icons are large and rough. Thanks. Edited February 2, 2020 by darthsian 1 Link to comment Share on other sites More sharing options...
Hackintosh Tech Posted February 2, 2020 Share Posted February 2, 2020 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. Link to comment Share on other sites More sharing options...
Hackintosh Tech Posted February 2, 2020 Share Posted February 2, 2020 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 More sharing options...
Matgen84 Posted February 2, 2020 Share Posted February 2, 2020 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 More sharing options...
n.d.k Posted February 2, 2020 Author Share Posted February 2, 2020 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 1 Link to comment Share on other sites More sharing options...
Matgen84 Posted February 2, 2020 Share Posted February 2, 2020 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 More sharing options...
Hackintosh Tech Posted February 2, 2020 Share Posted February 2, 2020 6 minutes ago, n.d.k said: Try Misc->Boot->ConsoleMode = Blank and Resolution = Max I can confirm this works, and I'm really impressed, knocked 15 seconds off my boot time with this build. i was sceptical at first but interested to see how this develops 1 Link to comment Share on other sites More sharing options...
btwise Posted February 2, 2020 Share Posted February 2, 2020 1 hour ago, n.d.k said: 刚推送新的提交,应该修复图标问题。 It has been recompiled and the Icons folder can be found correctly! 1 Link to comment Share on other sites More sharing options...
btwise Posted February 2, 2020 Share Posted February 2, 2020 Is it possible to reserve some switches to allow users to control whether the DATETIME, VERSION and AUTODEFAULT are displayed?Sometimes these contents are better if they are not displayed! 1 Link to comment Share on other sites More sharing options...
Recommended Posts