Bug 509306

Summary: Items in GlobalDrawer's topContent list don't get their color updated when switching color schemes
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: aronkvh
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: aleixpol, bugseforuns, nate, notmart
Priority: NOR    
Version First Reported In: 6.18.0   
Target Milestone: Not decided   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: discover white sidebar text
discover dark sidebar text

Description aronkvh 2025-09-09 11:55:28 UTC
Created attachment 184843 [details]
discover white sidebar text

SUMMARY
If I switch colors schemes, the text color in the sidebar stays the same until I reopen it, then it updates.
Happens both ways.

STEPS TO REPRODUCE
1.  Open Discover
2. Switch to Brezee Light/Dark


SOFTWARE/OS VERSIONS
Operating System: KDE Linux 2025-09-03
KDE Plasma Version: 6.4.80
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.16.4-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 1 aronkvh 2025-09-09 11:55:45 UTC
Created attachment 184844 [details]
discover dark sidebar text
Comment 2 aronkvh 2025-09-09 11:55:59 UTC
Seems related to 436596
Comment 3 Patrick Silva 2025-09-10 13:04:25 UTC
Can reproduce.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.4.80
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2
Graphics Platform: Wayland
Comment 4 Nate Graham 2025-09-18 22:28:26 UTC
I can reproduce this.
Comment 5 Nate Graham 2025-09-22 23:52:47 UTC
All affected items are in the topContent section of the drawer.

I put together a minimum reproducer test case for Kirigami:

import QtQuick
import QtQuick.Controls as QQC
import org.kde.kirigami as Kirigami

Kirigami.ApplicationWindow {
    width: 600
    height: 400

    globalDrawer: Kirigami.GlobalDrawer {
        topContent: [
            QQC.ItemDelegate {
                icon.name: "edit-bomb"
                text: "I become invisible when the color scheme changes"
            }
        ]
    }
}


So it looks like this is an issue in GlobalDrawer itself. Moving to Kirigami.