Jump to content

Customized OpenCore with additional features


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

Recommended Posts

16 minutes ago, Matgen84 said:

 

Thanks again for your EFI folder :) Can you share your OcSettingsMenu file? I don't know how to modify the background color: I prefer your Gray Background. Please.

Should I submit the compiled file or do I submit the source code to you?

  • Like 1
Link to comment
Share on other sites

1 hour ago, btwise said:

No deviation!Just modify the background color value in the source code, put it in your icon file, and then recompile!

Changing background to any color is easy. The tricky part is to have the black color outside the icon  match the color of the background. the RGB Values are not identical.

Edited by Ellybz
Link to comment
Share on other sites

8 minutes ago, btwise said:

Should I submit the compiled file or do I submit the source code to you?

 

Can you submit both files: compiled and source code! Please. I've got some issue to be solved for compiling, this morning. :)

Link to comment
Share on other sites

 

Let's say you want to add a Color purple to the background :RGB : 129, 66, 245

Add this line to the OcSimpleBootMenu :

EFI_GRAPHICS_OUTPUT_BLT_PIXEL mPurple  = {0x245, 0x66, 0x129, 0xff}; 
where 245 is B; 66 IS G; 129  IS R :


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};

EFI_GRAPHICS_OUTPUT_BLT_PIXEL mPurple  = {0x245, 0x66, 0x129, 0xff};

---------------

And replace with the Color with mPurple int his section:
// Background color

EFI_GRAPHICS_OUTPUT_BLT_PIXEL *mBackgroundPixel = &mPurple;


Save & Recompile. Done.
 

Edited by Ellybz
Link to comment
Share on other sites

When i play video 1920x1080 60fps with quicktime player the screen flickering black

When i play video 1920x1080 30fps or 25fps video worked  fine no flickering

What is this issue 

anyone can tell me about this issue i think this issue is related shiki or quicktime player

 

I m running kabylake i5 IntelHDGraphic 620 ram 4gb

Link to comment
Share on other sites

1 hour ago, Matgen84 said:

 

Thanks again for your EFI folder :) Can you share your OcSettingsMenu file? I don't know how to modify the background color: I prefer your Gray Background. Please.

This is the real effect after compilation, as long as the icon background color and the overall background color are the same, the effect will be good!

 

ScreenShot-2020-02-14-084950.thumb.png.613e8712ea1bc3f2c1e3e15e104fc41e.png

 

ScreenShot-2020-02-14-084955.thumb.png.596f5dfdfc53d189af03795203bf683d.png

 

image.thumb.png.c7e1fc5df8b4c838a6bcf50eeb60a9a6.png

OcSimpleBootMenu.c

OpenCore-0.5.6-RELEASE.zip

1581670886474.jpg

58 minutes ago, Matgen84 said:

 

Can you submit both files: compiled and source code! Please. I've got some issue to be solved for compiling, this morning. :)

This is my own gray-style menu source code and compiled complete file!

OpenCore-0.5.6-RELEASE.zip

OcSimpleBootMenu.c

  • Like 1
  • Thanks 2
Link to comment
Share on other sites

1 hour ago, Ellybz said:

 

Let's say you want to add a Color purple to the background :RGB : 129, 66, 245

Add this line to the OcSimpleBootMenu :

EFI_GRAPHICS_OUTPUT_BLT_PIXEL mPurple  = {0x245, 0x66, 0x129, 0xff}; 
where 245 is B; 66 IS G; 129  IS R :


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};

EFI_GRAPHICS_OUTPUT_BLT_PIXEL mPurple  = {0x245, 0x66, 0x129, 0xff};

---------------

And replace with the Color with mPurple int his section:
// Background color

EFI_GRAPHICS_OUTPUT_BLT_PIXEL *mBackgroundPixel = &mPurple;


Save & Recompile. Done.
 

Okay,it is righit!

Link to comment
Share on other sites

1 hour ago, btwise said:

This is the real effect after compilation, as long as the icon background color and the overall background color are the same, the effect will be good!

 

ScreenShot-2020-02-14-084950.thumb.png.613e8712ea1bc3f2c1e3e15e104fc41e.png

 

ScreenShot-2020-02-14-084955.thumb.png.596f5dfdfc53d189af03795203bf683d.png

 

image.thumb.png.c7e1fc5df8b4c838a6bcf50eeb60a9a6.png

OcSimpleBootMenu.c

OpenCore-0.5.6-RELEASE.zip

1581670886474.jpg

This is my own gray-style menu source code and compiled complete file!

OpenCore-0.5.6-RELEASE.zip

OcSimpleBootMenu.c

 

Thanks a lot for your help :)

Link to comment
Share on other sites

I am unable to get with the Radeon RX 560 resolution of 1920x1080 on the Opencore Boot Sceen at my Desktop.

 

Settings in Opencore config.plist:

708168416_Bildschirmfoto2020-02-14um19_39_30.png.a7cc36c52dec99718476880d1ea0e098.png

 

If I use the latest original OpenCore from Acidanthera with the same config.plist resolution of 1920x1080  works perfekt.

 

Spoiler

05:403 00:272 OCC: Installing GOP (Unsupported) on ConsoleOutHandle...
05:463 00:060 OC: Requested resolution is 0x0@0 (max: 1) from Max
05:523 00:060 OCC: Requesting 0x0@0 (max: 1) resolution, curr 4, total 5
05:794 00:271 OCC: Mode 0 - 640x480:1
05:854 00:059 OCC: Mode 1 - 800x600:1
06:129 00:274 OCC: Mode 2 - 1024x768:1
06:187 00:058 OCC: Mode 3 - 1280x1024:1
06:247 00:060 OCC: Mode 4 - 1920x1080:1
06:522 00:274 OCC: Current mode matches desired mode 4
06:583 00:060 OC: Changed resolution to 0x0@0 (max: 1) from Max - Success
06:644 00:060 OCC: Using builtin text renderer with 1 scale
07:004 00:360 OCC: Install console control (78A1E070/0/0), current - Success
07:252 00:248 OC: Requested console mode is 0x0 (max: 0) from 
07:527 00:274 OC: OcLoadNvramSupport...

 

Link to comment
Share on other sites

Here's some new improvement with cosmetic customization, no need to edit the source code. Have a nice weekend all!

 

Colors are now customized by the optional small 16x16 pixels png color example files in Icons folder (Can be any size only 1st pixels will be used for color setting).

 

font_color.png (Entry description color and selection color)

font_color_alt.png (All other text on screen)

background_color.png (Background color)

Background.png (Wallpaper background instead, need matching with screen resolution setting.)

 

Background.png will be checked first, will use it if found in Icons folder, if not found, then background_color.png will be checked, if not found then 1st pixel color (top/left pixel) of icon.

 

ScreenShot-2020-02-15-014749.thumb.png.f7afce49937012bcb67b8a72d197080f.png

 

 

ScreenShot-2020-02-15-014813.thumb.png.a6a5c49334b6094c8a4ee567c7879b11.png

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

19 minutes ago, n.d.k said:

Here's some new improvement with cosmetic customization, no need to edit the source code. Have a nice weekend all!

 

Colors are now customized by the optional small 16x16 pixels png color example files in Icons folder (Can be any size only 1st pixels will be used for color setting).

 

font_color.png (Entry discription color and selection color)

font_color_alt.png (All other text on screen)

background_color.png (Background color)

Background.png (Wallpaper bacground instead, preferly matching with screen resolution setting.)

 

Background.png will be checked first, will use it if found in Icons foler, if not found, then background_color.png will be checked, if not found then 1st pixel color (top/left pixel) of icon.

 

ScreenShot-2020-02-15-014749.thumb.png.f7afce49937012bcb67b8a72d197080f.png

 

 

ScreenShot-2020-02-15-014813.thumb.png.a6a5c49334b6094c8a4ee567c7879b11.png

This feature that can use background images is very good. I am recompiling. There was a problem before. If the icon background is transparent, it will be filled with white. In this way, if you change the background, you must redraw the icon file. Has this been fixed? 

  • Like 1
Link to comment
Share on other sites

4 minutes ago, btwise said:

This feature that can use background images is very good. I am recompiling. There was a problem before. If the icon background is transparent, it will be filled with white. In this way, if you change the background, you must redraw the icon file. Has this been fixed? 

 

Icon with transparent should work fine now.. as you can see in the pictures above, the background show through the transparency.  

  • Thanks 1
Link to comment
Share on other sites

8 hours ago, anonymous writer said:

I am unable to get with the Radeon RX 560 resolution of 1920x1080 on the Opencore Boot Sceen at my Desktop.

 

Settings in Opencore config.plist:

708168416_Bildschirmfoto2020-02-14um19_39_30.png.a7cc36c52dec99718476880d1ea0e098.png

 

If I use the latest original OpenCore from Acidanthera with the same config.plist resolution of 1920x1080  works perfekt.

 

  Reveal hidden contents

05:403 00:272 OCC: Installing GOP (Unsupported) on ConsoleOutHandle...
05:463 00:060 OC: Requested resolution is 0x0@0 (max: 1) from Max
05:523 00:060 OCC: Requesting 0x0@0 (max: 1) resolution, curr 4, total 5
05:794 00:271 OCC: Mode 0 - 640x480:1
05:854 00:059 OCC: Mode 1 - 800x600:1
06:129 00:274 OCC: Mode 2 - 1024x768:1
06:187 00:058 OCC: Mode 3 - 1280x1024:1
06:247 00:060 OCC: Mode 4 - 1920x1080:1
06:522 00:274 OCC: Current mode matches desired mode 4
06:583 00:060 OC: Changed resolution to 0x0@0 (max: 1) from Max - Success
06:644 00:060 OCC: Using builtin text renderer with 1 scale
07:004 00:360 OCC: Install console control (78A1E070/0/0), current - Success
07:252 00:248 OC: Requested console mode is 0x0 (max: 0) from 
07:527 00:274 OC: OcLoadNvramSupport...

 

 

Oh never mind, i'll fix it on next commit...didn't see your log until now.

 

PS.  It should be fixed now..

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

1 minute ago, btwise said:

Why do I only display background pixels instead of background images when I update it and compile it? The background image file already exists in the icons folder

I forgot I uploaded 4k resolution Background.png earlier, now just uploaded the 2k 1080p...change it to your screen resolution.

Link to comment
Share on other sites

7 minutes ago, n.d.k said:

I forgot I uploaded 4k resolution Background.png earlier, now just uploaded the 2k 1080p...change it to your screen resolution.

I've thought about that. The background image has been photoshopped to my resolution(2556x1440), but it doesn't seem to be working. Is it a bad format?

Link to comment
Share on other sites

46 minutes ago, n.d.k said:

 

Icon with transparent should work fine now.. as you can see in the pictures above, the background show through the transparency.  

On a pixel background, the transparent background icon is still filled with white!

Link to comment
Share on other sites

26 minutes ago, btwise said:

On a pixel background, the transparent background icon is still filled with white!

You meant the inner transparent thing?...Like the Apple above...ya.it's always white..regardless of what i do..

The outer part of the icon that used to show black is now gone though.

Link to comment
Share on other sites

Link to comment
Share on other sites

6 minutes ago, n.d.k said:

You meant the inner transparent thing?...Like the Apple above...ya.it's always white..regardless of what i do..

The outer part of the icon that used to show black is now gone though.

I updated the source code you just modified again. After compiling, I still see the pixel background display and cannot load the background image. The 2556x1440 png image drawn by myself cannot be loaded, and the icon transparent background is always filled with white background!

 

ScreenShot-2020-02-15-033218.thumb.png.2d961c44473dc6586ee65a858cd37b45.png

The white part of the second icon in the picture was originally transparent, but now it is white!

 

Background.thumb.png.0b208022d52097068f662f34887f7fe8.png

This picture is a background picture drawn by myself, but it also fails to load. Is there a problem with png decoding?

 

Link to comment
Share on other sites

15 minutes ago, btwise said:

I updated the source code you just modified again. After compiling, I still see the pixel background display and cannot load the background image. The 2556x1440 png image drawn by myself cannot be loaded, and the icon transparent background is always filled with white background!

 

ScreenShot-2020-02-15-033218.thumb.png.2d961c44473dc6586ee65a858cd37b45.png

The white part of the second icon in the picture was originally transparent, but now it is white!

 

Background.thumb.png.0b208022d52097068f662f34887f7fe8.png

This picture is a background picture drawn by myself, but it also fails to load. Is there a problem with png decoding?

 

 

I have no problem loading any png background, resizing the Background.png to see if it work. As you can I see. For the Icons, try different icons, usually i just pick some random icons from Clover themes and tried it.

Edited by n.d.k
Link to comment
Share on other sites

51 minutes ago, btwise said:

On a pixel background, the transparent background icon is still filled with white!

1695241868_os_mac.png.93f2b039251622c8c05789eb297396fe.pngThis is the icon you provided. The background itself is black, not the transparent background I said!

 

 

1989683340_os_moja.png.c90e42008961d51dcb2b027a1ce96b3e.pngimage.png.41e16369ea7e47a5f2a1952c087f7ed2.png

The transparent background icon I said is like this, but the transparent part of the picker interface is white, what I mean is this

5 minutes ago, n.d.k said:

 

I have no problem loading any png background, resizing the Background.png to see if it work. As you can I see. For the Icons, try different icons, usually i just pick some random icons from Clover themes and tried it.

But now neither the default background picture nor my own background picture can be loaded successfully. How do I troubleshoot this problem?

Link to comment
Share on other sites

×
×
  • Create New...