Skip to content

Argument theme of raw.plot() or config key does not work on macOS #10486

Description

@mscheltienne

As spotted following the discussion here mne-tools/mne-qt-browser#83 the argument theme does not change the theme on either my macOS or Windows computer.

Sample code:

import mne


folder = mne.datasets.sample.data_path() / 'MEG' / 'sample'
raw = mne.io.read_raw(folder / 'sample_audvis_filt-0-40_raw.fif', preload=True)
raw.plot(theme='dark')

Activity

  1. mscheltienne commented on Apr 7, 2022

    @mscheltienne
    MemberAuthor

    @larsoner can you re-open this one?
    I am still getting a dark theme no matter the theme argument on my macOS with dark-mode enabled a the system-level.
    Setting it in the MNE config with mne.set_config('MNE_BROWSER_THEME', 'light') does not get me the light theme either.

  2. changed the title [-]Argument `theme` of `raw.plot()` does not work[/-] [+]Argument `theme` of `raw.plot()` or config key does not work on macOS[/+] on Apr 7, 2022
  3. larsoner commented on Apr 7, 2022

    @larsoner
    Member
  4. mscheltienne commented on Apr 7, 2022

    @mscheltienne
    MemberAuthor

    I don't think so. I can give it a shot with the latest version of mne-qt-browser later; but in my case, the UI stays in dark mode no matter what. The entire UI.

  5. larsoner commented on Apr 7, 2022

    @larsoner
    Member

    Yes please test with latest MNE-Python and mne-qt-browser main

  6. mscheltienne commented on Apr 7, 2022

    @mscheltienne
    MemberAuthor

    Fresh environment with both mne-python and mne-qt-browser installed from main. No luck, there is something wrong here.

    folder = mne.datasets.sample.data_path() / 'MEG' / 'sample'
    raw = mne.io.read_raw(folder / 'sample_audvis_filt-0-40_raw.fif', preload=True)
    raw.plot(theme='light')
    

    Screenshot 2022-04-07 at 15 55 12

  7. larsoner commented on Apr 7, 2022

    @larsoner
    Member

    Can you investigate a bit? If not, I can try to look in a bit

  8. mscheltienne commented on Apr 7, 2022

    @mscheltienne
    MemberAuthor

    I can look at it tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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