Skip to content

Commit a57bfa5

Browse files
committed
GUI - allow the text/code background colour to be styled separately from the window background
Code background can now be set with "DefaultBackground"
1 parent 98571f3 commit a57bfa5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/gui/qt/widgets/sonicpilexer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ void SonicPiLexer::highlightAll()
4040

4141
void SonicPiLexer::unhighlightAll()
4242
{
43-
setPaper(theme->color("Background"));
43+
setPaper(theme->color("DefaultBackground"), -1);
44+
this->setDefaultPaper(theme->color("Background"));
4445
setColor(theme->color("Foreground"));
4546

4647
setColor(theme->color("DefaultForeground"), Default);

0 commit comments

Comments
 (0)