bugGNU Octave - Bugs: bug #65472, Editor's default color scheme has...

 
 

bug #65472: Editor's default color scheme has terrible contrast if system is using dark mode

Submitter:  None
Submitted:  Sun 17 Mar 2024 10:50:15 AM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 8.4.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 17 Mar 2024 10:50:15 AM UTC, original submission:  

The default color scheme of the editor of GNU Octave's GUI, for some reason, depends on whether the system is using light or dark mode.
If the system is using light mode, then the default color scheme will be correct: either white background with dark text, or dark background with light text.
If, however, the system is using dark mode, then some elements of the default color scheme will be switched, but not others: that means you'll get a white background with light text, or a dark background with dark text.

Steps To Reproduce

Steps to reproduce the behavior:

  • Put your desktop environment in dark mode (I used KDE Plasma (both X11 and Wayland) with Breeze Dark)
  • Open Octave's GUI
  • If it's not the first time opening Octave, reload the default style:
    • In the top bar, Edit > Preferences
    • Click on Editor, scroll down to the almost bottom, and click "Reload default styles"
    • Apply
  • In the main window, go to the Editor
  • When writing text, you'll see that it's dark with a dark background.
    • If you checked "Second color mode (light/dark)" (and "Reload default styles") in the settings, then it's light with a white background.


Expected behavior

The system theme should either change the color style completely or not at all, instead of changing it partially and creating a poor contrast.

Additional context

This only affects loading the default color scheme: when already applied, changing the system theme changes nothing in Octave.
A workaround to this issue is thus setting the system theme to light, applying the desired color scheme in Octave, and then switching back to the system dark theme.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #55849:  SystemDarkOctaveDark.png added by None (84KiB - image/png - Default styles with system dark theme (incorrect) and system light theme (correct))
file #55850:  SystemDarkOctaveLight.png added by None (85KiB - image/png - Default styles with system dark theme (incorrect) and system light theme (correct))
file #55851:  SystemLightOctaveDark.png added by None (95KiB - image/png - Default styles with system dark theme (incorrect) and system light theme (correct))
file #55852:  SystemLightOctaveLight.png added by None (96KiB - image/png - Default styles with system dark theme (incorrect) and system light theme (correct))

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-03-17 None Attached File- Added SystemDarkOctaveDark.png, #55849
        Attached File- Added SystemDarkOctaveLight.png, #55850
        Attached File- Added SystemLightOctaveDark.png, #55851
        Attached File- Added SystemLightOctaveLight.png, #55852

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code