niklasr22 / BrightIntosh

Unlock the full brightness of the XDR display of your MacBook Pro
https://brightintosh.de/
GNU General Public License v3.0
274 stars 19 forks source link

Hide the HDR pixel #41

Closed niklasr22 closed 1 year ago

niklasr22 commented 1 year ago

A bright white pixel is visible near the lower left corner of the screen.

To do: hide it better

Possible ways:

SUPERCELLEX commented 1 year ago

One could possibly hide the pixel under the notch, for as pretty much all macs I know that have HDR minus the ProDisplay and other external monitors also have a notch. I can test if that works on my system quite quick

SUPERCELLEX commented 1 year ago

nope nvm Apple apparently disallows that under the assumption you want your program to show its window

image

I'm seeing if I can refactor it to be independent of its window

SUPERCELLEX commented 1 year ago

switching from visibleframe to frame has no effects, and allows me to hide under the notch

niklasr22 commented 1 year ago

Moving it up to the upper left corner should work because of the rounded corner of the macbook display.

SUPERCELLEX commented 1 year ago

yeah that would work too... if I can figure out how exactly

niklasr22 commented 1 year ago

Setting the position can be done with setFrameOrigin and you can use the origin of the screen plus the hight of the screens frame as an additional y offset.