Commit be43c758 authored by Orgad Shaneh's avatar Orgad Shaneh

Revert "TextEditor: Default to Text style on style absence"

Breaks in-editor search results with default scheme.

This reverts commit 2c3f3970.

Change-Id: I4164cfdb4d6f9240b3c53846824297359a59ac52
Reviewed-by: default avatarDavid Schulz <david.schulz@theqtcompany.com>
parent b9d5f62e
......@@ -320,12 +320,8 @@ bool FontSettings::loadColorScheme(const QString &fileName,
const TextStyle id = desc.id();
if (!m_scheme.contains(id)) {
Format format;
if (desc.format() == format && m_scheme.contains(C_TEXT)) {
format = m_scheme.formatFor(C_TEXT); // Default format -> Text
} else {
format.setForeground(desc.foreground());
format.setBackground(desc.background());
}
format.setForeground(desc.foreground());
format.setBackground(desc.background());
format.setBold(desc.format().bold());
format.setItalic(desc.format().italic());
format.setUnderlineColor(desc.format().underlineColor());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment