Skip to content

White background in import dialog in dark theme #39

Description

@Neptilo

Problem: The import wizard displays a white background (especially the button bar area with Finish/Cancel buttons) while the rest of the application correctly shows dark gray backgrounds when dark mode is enabled.

What was tried:

  • Added setAutoFillBackground(true) to DstListPage
  • Set palette explicitly: setPalette(QApplication::palette()) on both DstListPage and ListImportWizard
  • Applied various stylesheets to the wizard:
    • "QWizard, QWizard > QWidget { background-color: ...; }"
    • "QWizard { background-color: ...; } QWizard QWidget { background-color: ...; }"
    • "QWizard QFrame { background-color: ...; }"
  • Used object name selector: setObjectName("wizard") with setStyleSheet("#wizard { background-color: %1; }")
  • Attempted to apply palette to all child widgets in showEvent() using findChildren<QWidget*>()

Result: All stylesheet approaches either left white areas (button bar) or incorrectly styled child elements (buttons got gray overlay). The object name selector approach was closest but still left the button bar area white. The issue is that QWizard has internal layout areas that don't inherit the background styling properly, requiring different handling than regular QWidget-based views like HomeView.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions