Skip to content

[Bug]: Qt5 backend icons should be white when macOS in dark mode #27590

@dstansby

Description

@dstansby

Bug summary

In dark mode on macOS, the window background on the Qt5 backend is correctly changed to black, but the icons are still black when they should be white:
Screenshot 2024-01-01 at 19 04 53

Code for reproduction

import matplotlib
matplotlib.use("Qt5Agg")

import matplotlib.pyplot as plt
plt.figure()
plt.show()

Actual outcome

Black icons

Expected outcome

White icons

Additional information

No response

Operating system

No response

Matplotlib Version

3.9.0.dev905+gb4fc72bb88

Matplotlib Backend

Qt5Agg

Python version

3.11.6

Jupyter version

No response

Installation

git checkout

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions