tweak background color settings
This commit is contained in:
@ -218,7 +218,10 @@ CodeEditor::CodeEditor(QWidget *parent) :
|
||||
help_index.close();
|
||||
}
|
||||
|
||||
setBackgroundRole(QPalette::Light);
|
||||
lineNumberArea = new LineNumberArea(this);
|
||||
lineNumberArea->setBackgroundRole(QPalette::Dark);
|
||||
lineNumberArea->setAutoFillBackground(true);
|
||||
connect(this, &CodeEditor::blockCountChanged, this, &CodeEditor::updateLineNumberAreaWidth);
|
||||
connect(this, &CodeEditor::updateRequest, this, &CodeEditor::updateLineNumberArea);
|
||||
updateLineNumberAreaWidth(0);
|
||||
|
||||
@ -90,6 +90,7 @@ LammpsGui::LammpsGui(QWidget *parent, const char *filename) :
|
||||
// use $HOME if we get dropped to "/" like on macOS
|
||||
if (current_dir == "/") current_dir = QDir::homePath();
|
||||
inspectList.clear();
|
||||
setAutoFillBackground(true);
|
||||
|
||||
// restore and initialize settings
|
||||
QSettings settings;
|
||||
|
||||
Reference in New Issue
Block a user