https://bugs.kde.org/show_bug.cgi?id=511959

            Bug ID: 511959
           Summary: When using a dark Plasma theme, taking a screenshot of
                    the active window with Spectacle (launched from the
                    menu) produces a black background instead of white
    Classification: I don't know
           Product: kde
      Version First unspecified
       Reported In:
          Platform: openSUSE
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY
When using a dark Plasma theme, taking a screenshot of the active window with
Spectacle (launched from the menu) produces a black background instead of
white.
This occurs both when saving the screenshot to a file (PNG) and when copying it
to the clipboard.
Opening the saved file in Gwenview shows a black background.
Using Meta+PrintScreen produces a screenshot with the correct white background.

STEPS TO REPRODUCE
1 Switch to a dark Plasma theme.
2 Launch Spectacle from the menu or terminal.
3 Select Active Window capture mode.
4 Take a screenshot:
Option A: Save the screenshot as PNG.
Option B: Copy the screenshot to the clipboard.
5 Open the saved PNG in Gwenview — the background is black.
6 Paste the copied image from the clipboard into an app (Gwenview, GIMP, etc.)
— the background is also black.
7 Use Meta+PrintScreen — background is white, as expected.

OBSERVED RESULT

Both the saved PNG (opened in Gwenview) and the clipboard image show a black
background.
The issue occurs only in dark Plasma themes and only when using Spectacle from
the menu.
Meta+PrintScreen works correctly (white background).
Cause: incorrect handling of the alpha channel in Spectacle.

EXPECTED RESULT
Both saved and copied screenshots from Spectacle should have a white background
or correct transparency.
Screenshots should match the behavior of Meta+PrintScreen.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20251109
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.7-1-default (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Xeon® CPU E3-1220 V2 @ 3.10GHz
Memory: 16 GiB of RAM (15.6 GiB usable)
Graphics Processor: AMD Radeon RX 570 Series

ADDITIONAL INFORMATION

- The issue occurs only with dark Plasma themes.
- Both saved files (opened in Gwenview) and clipboard images show the black
background.
- Meta+PrintScreen works correctly with a white background.
- Likely caused by incorrect alpha channel handling in Spectacle.
- Bug is consistently reproducible in Wayland.
- Two test files can be attached:
- screenshot_saved.png — saved file with black background (open in Gwenview)
- screenshot_copied.png — clipboard image with black background

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to