[Breeze] [Bug 496341] New: BreezeIcons not work on Windows 10 VM. Missing "theme.index" file in BreezeIcons.dll (?)

Trần Nam Tuấn bugzilla_noreply at kde.org
Sat Nov 16 12:34:17 GMT 2024


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

            Bug ID: 496341
           Summary: BreezeIcons not work on Windows 10 VM. Missing
                    "theme.index" file in BreezeIcons.dll (?)
    Classification: Plasma
           Product: Breeze
           Version: unspecified
          Platform: Compiled Sources
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Icons
          Assignee: visual-design at kde.org
          Reporter: tuantran1632001 at gmail.com
                CC: kainz.a at gmail.com, m at nueljl.in
  Target Milestone: ---

Created attachment 175858
  --> https://bugs.kde.org/attachment.cgi?id=175858&action=edit
The screenshot of the test app in Windows 10 VM.

TLDR: Missing "theme.index" file in "BreezeIcons.dll", and likely in
"libBreezeIcons.so", too.

I'm in the process of researching methods to deploy Qt+Kirigami+Breeze
application to Windows. I have decided to go with Craft.

>From testing in a Windows 10 virtual machine, the test program, which is made
following develop.kde.org, does not show any icon. In fact, none of KDE
official applications built with Craft do. I decided to download and try Kate
nightly build from kate-editor.org and the problem persisted. Yes, I did call
"KIconTheme::initTheme()" before creating "QApplication".

Turning on QLogging of KIconTheme, I could see this in the console:

kf.iconthemes: KIconTheme::initTheme() enforces the icon theme: "breeze"
kf.iconthemes: Icon theme "breeze" not found.
kf.iconthemes: Couldn't find current icon theme, falling back to default.
kf.iconthemes: Standard icon theme "hicolor" not found!


But the icon files do exist under ":/icons" as I can use QDirIterator and print
them out to the console. The only file I could not find is "theme.index".
KIconTheme checks for it and "theme.desktop" file, I believe. I can load the
icon just fine if I provide the full path:

-> qInfo() << KIconLoader::global()->hasIcon(u"applictaion-menu"_s);
false
-> QIcon::fromTheme(u"applictaion-menu"_s);
QIcon(null)
-> QIcon(u":/icons/breeze/actions/32/application-menu.svg"_s);
QIcon("application-menu",availableSizes[normal,Off]=QList(QSize(16, 16),
QSize(22, 22), QSize(32, 32), QSize(48, 48), QSize(64, 64), QSize(128, 128),
QSize(256, 256)),cacheKey=0x400000000)


SOFTWARE/OS VERSIONS
Windows: 10 (VM)
KDE Frameworks Version: 6.8.0 
Qt Version: 6.8.0

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Visual-design mailing list