[crop] Add light curtain to make out selection in dark areas#63
Open
po5 wants to merge 1 commit intooccivink:masterfrom
Open
[crop] Add light curtain to make out selection in dark areas#63po5 wants to merge 1 commit intooccivink:masterfrom
po5 wants to merge 1 commit intooccivink:masterfrom
Conversation
occivink
reviewed
Sep 18, 2022
| } | ||
| 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 |
Owner
There was a problem hiding this comment.
the condition should be on shade_opacity. Maybe make that an early return in draw_shade() instead
Owner
|
Looks good. Please add the new option to |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously, it was impossible to see the crop selection over dark backgrounds.
Adds another bright "shade" to remedy it.
Default
shade_opacityhas been updated to keep a similar brightness to before the change.