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

            Bug ID: 429382
           Summary: black icon with dark theme for Windows build.
           Product: kate
           Version: 20.08.3
          Platform: Other
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: application
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: wzc782970...@gmail.com
  Target Milestone: ---

SUMMARY

When using breeze-dark theme for Kate under Windows, it will not use the
breeze-dark icon theme which caused it will display black icon with breeze-dark
theme.

STEPS TO REPRODUCE
1. Download the pre-built binary from
https://binary-factory.kde.org/view/Windows%2064-bit/job/Kate_Release_win64/ ,
file name: kate-20.08.3-1083-windows-msvc2019_64-cl.exe
2. Install it. Launch Kate, set theme to Breeze Dark
3. See the result.

OBSERVED RESULT

Icon color is black, with breeze-dark Qt theme applied.

EXPECTED RESULT

Icon color is white (use the breeze-dark icon theme).


SOFTWARE/OS VERSIONS
Windows: Windows 10 with 20H2 (19042.630)
(available in About System)
Kate Version: 20.08.3

ADDITIONAL INFORMATION

Kdenlive works well so I did checked the source code. Probably related source
code here:

 -
https://github.com/KDE/kate/blob/b6a9acfe8090b2b174d4097c0864ec22ee43b6d7/kate/katecolorschemechooser.cpp#L39
 -
https://github.com/KDE/kdenlive/blob/8b8a947c479a71ccab35b4e02183fe7bcecdd436/src/mainwindow.cpp#L819

As we can see, Kdevlive uses `QIcon::setThemeName()` to tell the application
apply breeze-dark icon theme when needed. Kate might need to do the same thing.

I tryed to build Kate under Windows within MSYS2, but it cannot find any other
themes along with a "Default" one, so I'm not able to test if adding that will
works. I also tryed to install KDE Craft to build Kate since it's the
recommended way to build Kate, but it fails on compile libs/gcrypt:1.8.7-3 (no
pre-built binary founded for Qt 5.15.1 MinGW64), so I'm not able to test if
that can actually fixes this bug..

Let me know if you need any additional information. Thanks.

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

Reply via email to