Skip to content

Hard-coded background color breaks Dark Mode support #3838

@jellybean2004

Description

@jellybean2004

Describe the bug

The application currently uses hard-coded styles such as:

setStyleSheet("background-color: white")

(or equivalent CSS/style calls).

This approach only renders correctly in Light Mode, whereas Dark Mode users see incorrect backgrounds, causing text visibility issues and inconsistent UI.

Expected Behavior

UI components should respect the active system or application theme.

Background colors should be derived from the default palette or theme styles rather than being hard-coded.

Proposed Fix

Replace all instances of: setStyleSheet("background-color: white") with: setStyleSheet("")

This allows the widget to inherit the correct background color from the active theme.

Screenshots

Image Image

SasView version (please complete the following information):

  • Version: 6.1.2

Operating system (please complete the following information):

  • OS: Windows 11

Installation method (please complete the following information):

  • Installed: pip

Metadata

Metadata

Assignees

No one assigned

    Labels

    DefectBug or undesirable behaviour

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions