Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[crop] Add light curtain to make out selection in dark areas #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

@@ -231,7 +232,8 @@ function draw_crop_zone()
top_left = { x = 0, y = 0 },
bottom_right = { x = dim.w, y = dim.h },
}
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).

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.

None yet

2 participants