#4640·noctalia

[FEATURE] Make screenshot-region overlay appearance configurable

Author: musaad-sharikhCreated Sep 29, 2026Updated Sep 29, 2026

Submission checklist

  • I have searched existing issues and confirmed this has not been requested before.
  • I have checked existing pull requests for similar changes.

Feature type

Configuration / customization

Feature summary

Add two independent [shell.screenshot] options for the screenshot-region overlay: dim_opacity, the opacity of the scrim outside the selection, and show_confirm_hint, whether the keybind hint is shown while a region is being confirmed.

Motivation / use case

Dim opacity. The scrim is fixed in src/capture/screenshot_region_overlay.cpp:

cpp
constexpr float kDimOpacity = 0.65F;

It is a fixed black that no theme or setting can change. At 65% the rest of the screen can be too dark on some displays, which makes it hard to see the surrounding content while selecting.

Confirm hint. With confirm_region = true, a hint card (confirmHint, built by buildConfirmHintBar()) sits at the bottom of the screen for the whole confirmation stage. Once the shortcuts are known, a cleaner overlay is preferable, but the card can't be turned off.

Proposed solution

toml
[shell.screenshot]
dim_opacity = 0.35        # default 0.65, range 0.0–1.0
show_confirm_hint = false # default true

The defaults (dim_opacity = 0.65, show_confirm_hint = true) keep the current behaviour for existing users.

  • dim_opacity would replace kDimOpacity where the four dim strips are built; 0.0 disables the dim.
  • show_confirm_hint = false would skip creating confirmHint, an independent element added directly to the overlay's scene root. The code that later uses it already checks for nullptr. Hiding it does not affect moving the region, resizing from edges and corners, Space/Enter to confirm, Esc to cancel, or copying to the clipboard.

Alternatives considered

Patching the constant and rebuilding locally, which is lost on every package update. Overriding the bar.screenshot.confirm-region translation doesn't help either: translations load only from the installed assets, and an empty string still leaves an empty card.

References / related projects

Related overlay customization: #4594 (selection border thickness). Similar opt-outs for UI hints: #4021, #3567.

Additional context

No response