Skip to content
Extraits de code Groupes Projets
Vérifiée Valider ac43bb42 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

UI: The ScriptDocumentView has the same background as the ScriptEditor to...

UI: The ScriptDocumentView has the same background as the ScriptEditor to avoid ugly not colored squares
parent 474f3786
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!19Fake vim
...@@ -41,6 +41,13 @@ ScriptDocumentView::ScriptDocumentView(std::shared_ptr<ScriptDocument> ptr, QWid ...@@ -41,6 +41,13 @@ ScriptDocumentView::ScriptDocumentView(std::shared_ptr<ScriptDocument> ptr, QWid
} }
connect(this, &ScriptDocumentView::luaErrorFound, editor, &ScriptEditor::updateLastLuaError); connect(this, &ScriptDocumentView::luaErrorFound, editor, &ScriptEditor::updateLastLuaError);
// Same style as the editor
setStyleSheet(QStringLiteral("* {"
" background-color: #232629;"
" font-family: \"FiraCode\";"
" font-size: 10pt"
"}"));
} }
void void
......
...@@ -356,11 +356,11 @@ EditorProxy::save(const QString &fileName) noexcept ...@@ -356,11 +356,11 @@ EditorProxy::save(const QString &fileName) noexcept
void void
EditorProxy::cancel(const QString &fileName) noexcept EditorProxy::cancel(const QString &fileName) noexcept
{ {
if (hasChanges(fileName)) { if (hasChanges(fileName))
qCritical() << tr("File \"%1\" was changed").arg(fileName); qCritical() << tr("File \"%1\" was changed").arg(fileName);
} else {
else
invalidate(); invalidate();
}
} }
void void
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter