Bug 153076 - Allow to set Basic Editor background color independently from Document color
Summary: Allow to set Basic Editor background color independently from Document color
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Rafael Lima
Whiteboard: target:7.6.0
: 144741 (view as bug list)
Depends on:
Blocks: Options-Dialog-Colours
  Show dependency treegraph
Reported: 2023-01-17 19:46 UTC by Rafael Lima
Modified: 2023-02-19 22:32 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

Applications colors dialog with new option (87.99 KB, image/png)
2023-01-19 11:51 UTC, Rafael Lima
Screenshot with white document and dark Basic code editor (275.26 KB, image/png)
2023-01-20 12:21 UTC, Rafael Lima

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Lima 2023-01-17 19:46:21 UTC
This ticket is a spinoff from bug 141566.

As noted by Guilherm in the original ticket:

"Also noting that Rafael's concern about changing the Basic IDE's background colour independently from the document background in other applications hasn't been resolved."

Hence I am opening this new ticket to track the discussion and eventual implementation of an independent color selector in the Application Colors dialog so that the Basic editor can use a color different than the one used for documents.

This is important because the user may want to use white as document background in Writer / Calc but use a darker color as the background of the Basic editor.
Comment 1 Rafael Lima 2023-01-17 19:52:22 UTC
The implementation is simple. I have a proposal here:

Comment 2 Rafael Lima 2023-01-19 11:51:56 UTC
Created attachment 184777 [details]
Applications colors dialog with new option

So the idea is to have a separate color definition the the background color of the Basic Editor as shown in this attachment.

I left the default value for this new color svtools::BASICEDITOR as the same color used as DOCCOLOR for both "LibreOffice" and "LibreOffice Dark" color schemes to replicate the current behavior.

But now, if the user wants to use a different color for the Basic Editor, than it's possible to change it without affecting the color of documents.
Comment 3 Heiko Tietze 2023-01-20 10:16:57 UTC
Samuel, do you agree with this idea?
Comment 4 Rafael Lima 2023-01-20 12:21:01 UTC
Created attachment 184791 [details]
Screenshot with white document and dark Basic code editor

Just to better explain what I'm proposing, I would like to be able to use a different background color in the Basic editor that is independent from the document color.

For instance, this new attachment shows the Basic editor using dark colors whilst the Writer document is using white color. This is currently not possible and the user must either use white for Basic and Writer or a dark color for Basic and Writer. It's currently not possible to set them independently.
Comment 5 Commit Notification 2023-01-24 15:37:39 UTC
Rafael Lima committed a patch related to this issue.
It has been pushed to "master":


tdf#153076 Make Basic editor background color independent from document color

It will be available in 7.6.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:

Affected users are encouraged to test the fix and report feedback.
Comment 6 Rafael Lima 2023-02-19 22:32:04 UTC
*** Bug 144741 has been marked as a duplicate of this bug. ***