Skip to content

Conversation

po5
Copy link

@po5 po5 commented Sep 18, 2022

Previously, it was impossible to see the crop selection over dark backgrounds.
Adds another bright "shade" to remedy it.
Default shade_opacity has been updated to keep a similar brightness to before the change.

}
draw_shade(ass, frame, window)
if opts.light_opacity:lower() ~= "ff" then draw_shade(ass, frame, window, "FFFFFF", opts.light_opacity) end
if opts.light_opacity:lower() ~= "ff" then draw_shade(ass, frame, window, "000000", opts.shade_opacity) end
Copy link
Owner

@occivink occivink Sep 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the condition should be on shade_opacity. Maybe make that an early return in draw_shade() instead

@occivink
Copy link
Owner

Looks good. Please add the new option to script-opts/crop.conf (also applies to your other PR).

dexeonify pushed a commit to dexeonify/mpv-config that referenced this pull request Sep 14, 2025
Previously, it was impossible to see the crop selection over dark
backgrounds. Remedy it by adding another bright shade. The default
`shade_opacity` has been updated to keep a similar brightness
before the change. Also fixes the `opts.shade_opacity` condition
as reviewed by the script author.

Ref: Sneakpeakcss/mpv-scripts@b617d20
     occivink/mpv-scripts#63
dexeonify pushed a commit to dexeonify/mpv-config that referenced this pull request Sep 20, 2025
Previously, it was impossible to see the crop selection over dark
backgrounds. Remedy it by adding another bright shade. The default
`shade_opacity` has been updated to keep a similar brightness
before the change. Also fixes the `opts.shade_opacity` condition
as reviewed by the script author.

Ref: Sneakpeakcss/mpv-scripts@b617d20
     occivink/mpv-scripts#63
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants