More options for querying and changing opacity #7804
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.
Similar to #7173 I wanted a nicer way to get control over opacity of windows. These changes makes it easy to get the opacity of the current window, e.g., via:
as well as providing more options for altering it via
mul
anddiv
subcommands, e.g.,:As per the commit message, human senses tend to work on a log-scale; hence multiplicative changes like this tend to feel smoother than linear changes (i.e. via the existing
plus
andminus
).This change doesn't expose the opacity in the
get_tree
output as I didn't need it, but could likely add that in if somebody cares about it.