Skip to main content
qua
Associate III
September 8, 2023
Question

How do you change the background colour in STM32CubeIDE?

  • September 8, 2023
  • 6 replies
  • 11124 views

How do you change the background colour in source code editors? I have tried:

Window > Preferences > General > Appearance > Theme set to dark mode

Window > Preferences > General > Editors > Text Editors > Annotations has nothing for the background

Window > Preferences > C/C++ > Build > Console only affects the consoles

Window > Preferences > C/C++ > Editor > Syntax Colouring doesn't has a background option

Window > Preferences > C/C++ > Editor lets you set a background colour, and applying it works, but as soon as you close the preferences window the old settings comes back.

    This topic has been closed for replies.

    6 replies

    Issamos
    Lead III
    September 8, 2023

    Hello @qua 

    You can use this FAQ or this video to change STM32CubeIDE background colour. 

    Best regards.

    II

    qua
    quaAuthor
    Associate III
    September 9, 2023

    Thanks, as already mentioned I tried that and it doesn't change the background colour. Well, the theme does, but the dark theme is a bit too light for me.

    Issamos
    Lead III
    September 9, 2023

    You can also change other configuration,as mentioned in the faq, to make the dark mode updated as you want (contrast, light,...).

    Best regards.

    II

    AScha.3
    Super User
    September 9, 2023

    try here :

    AScha3_0-1694270862708.png

     

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    qua
    quaAuthor
    Associate III
    September 10, 2023

    Thanks, but none of those affect the background colour in the editor windows. None of them match the background colour in the editor windows either, which for reference is RGB 47,47,47.

    AScha.3
    Super User
    September 10, 2023

    should be here : + de-select : system default !

    AScha3_0-1694369844887.png

    but maybe color from system because : 

    AScha3_1-1694369966051.png

    - so change color in system settings (try... :) )

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    qua
    quaAuthor
    Associate III
    September 11, 2023

    Thanks. I have checked the system colour, the background is full back (RGB 0,0,0) so it is not being picked up from there. The "System Default" checkbox is unchecked.

    I did discover something interesting though. Have a look at this:

    qua_0-1694431093893.png

    I have the window split vertically, and the cursor is on the right side. The background colour is not the same in each window. The one on the left is my setting. As soon as I move the cursor to the left side, the colour changes to match the right side.

    So it looks like the background colour setting you mentioned is used, but then overridden. My guess would be something in the syntax highlighting code is doing it, and moving the cursor to that window causes it to refresh.

    I can't find any option in the syntax highlighting bit that corresponds to this grey colour though, so I can't find where it is coming from.

    Rim LANDOLSI
    ST Employee
    September 11, 2023

    Hello @qua ,

    Could you, please, try to install the Darkest dark theme from eclipse marketplace following these steps:

    1. Open STM32CubeIDE  

    2. Open "Eclipse Marketplace" from "Help"

    3. Search "Darkest dark theme " in the search box

    4. Install "Darkest dark theme with DevStyle"

    5. In "Confirm Selected features", make the configuration as default and click on "Confirm"

    6. Accept the item of the Liscence Agreement and click on "Finish"

    7. Wait for the end  of the installation and restart the STM32 CubeIDE

    8. Click on "window" => "Preferences" => "Version Control" and check that "Darkest dark theme" is added.

     

    Thanks,

    Rim

    qua
    quaAuthor
    Associate III
    September 13, 2023

    Thanks, but this doesn't work. When I install the theme and restart it does not appear in the list of installed extensions, and it is not selectable as a theme.

    qua
    quaAuthor
    Associate III
    September 12, 2023

    Thanks AScha. Eclipse really is a rubbish IDE, I'm so glad so many companies decided to base their IDEs on it.