* work save : color scheme

This commit is contained in:
royqh1979 2021-06-24 22:33:57 +08:00
parent a4da674e03
commit 94ae45cca4
16 changed files with 48 additions and 5 deletions

View File

@ -160,6 +160,9 @@
"foreground" : "#000000",
"background" : "#00FFFF"
},
"Fold Line" : {
"foreground" : "#FFFF00"
},
"Active Line" : {
"background" : "#000050"
},

View File

@ -160,6 +160,9 @@
"foreground" : "#FFFFFF",
"background" : "#0000FF"
},
"Fold Line" : {
"foreground" : "#000000"
},
"Active Line" : {
"background" : "#CCFFFF"
},

View File

@ -160,6 +160,9 @@
"foreground" : "#FFFFFF",
"background" : "#0000FF"
},
"Fold Line" : {
"foreground" : "#000000"
},
"Active Line" : {
"background" : "#CCFFFF"
},

View File

@ -178,6 +178,9 @@
"foreground" : "#FFFFFF",
"background" : "#008E99"
},
"Fold Line" : {
"foreground" : "#A5A5A5"
},
"Active Line" : {
"background" : "#323232"
},

View File

@ -160,6 +160,9 @@
"foreground" : "#FFFFFF",
"background" : "#0000FF"
},
"Fold Line" : {
"foreground" : "#000000"
},
"Active Line" : {
"background" : "#CCFFFF"
},

View File

@ -161,6 +161,9 @@
"foreground" : "#FFFFFF",
"background" : "#0000FF"
},
"Fold Line" : {
"foreground" : "#FF0000"
},
"Active Line" : {
"background" : "#202020"
},

View File

@ -160,6 +160,9 @@
"foreground" : "#FFFFFF",
"background" : "#00CCFF"
},
"Fold Line" : {
"foreground" : "#C00000"
},
"Active Line" : {
"background" : "#323232"
},

View File

@ -171,6 +171,9 @@
"foreground" : "#FFFFFF",
"background" : "#33CCCC"
},
"Fold Line" : {
"foreground" : "#FF9900"
},
"Active Line" : {
"background" : "#323232"
},

View File

@ -160,6 +160,9 @@
"foreground" : "#FFFFFF",
"background" : "#00CCFF"
},
"Fold Line" : {
"foreground" : "#C00000"
},
"Active Line" : {
"background" : "#323232"
},

View File

@ -161,6 +161,9 @@
"foreground" : "#FFFFFF",
"background" : "#0000FF"
},
"Fold Line" : {
"foreground" : "#FFFFFF"
},
"Active Line" : {
"background" : "#221111"
},

View File

@ -158,6 +158,9 @@
"foreground" : "#FFFFCE",
"background" : "#00376F"
},
"Fold Line" : {
"foreground" : "#C0C0C0"
},
"Active Line" : {
"background" : "#323232"
},

View File

@ -158,6 +158,8 @@
"foreground" : "#FFFFFF",
"background" : "#0000FF"
},
"Fold Line" : {
},
"Active Line" : {
"background" : "#CCFFFF"
},

View File

@ -213,10 +213,11 @@ void Compiler::processOutput(QString &line)
issue->line = getLineNumberFromOutputLine(line);
if (issue->line > 0) {
issue->column = getColunmnFromOutputLine(line);
if (issue->column>0)
issue->type = getIssueTypeFromOutputLine(line);
else
issue->type = getIssueTypeFromOutputLine(line);
if (issue->column<=0 && issue->type == CompileIssueType::Other) {
issue->type = CompileIssueType::Error; //linkage error
mErrorCount += 1;
}
} else {
issue->column = -1;
issue->type = getIssueTypeFromOutputLine(line);

View File

@ -1213,11 +1213,11 @@ void Editor::applyColorScheme(const QString& schemeName)
}
item = pColorManager->getItem(schemeName,COLOR_SCHEME_FOLD_LINE);
if (item) {
//todo
codeFolding().folderBarLinesColor = item->foreground();
}
item = pColorManager->getItem(schemeName,COLOR_SCHEME_INDENT_GUIDE_LINE);
if (item) {
//todo
codeFolding().indentGuidesColor = item->foreground();
}
this->invalidate();
}

View File

@ -3874,6 +3874,11 @@ void SynEdit::setUseCodeFolding(bool value)
}
}
SynEditCodeFolding &SynEdit::codeFolding()
{
return mCodeFolding;
}
QString SynEdit::lineText()
{
if (mCaretY >= 1 && mCaretY <= mLines->count())

View File

@ -273,6 +273,8 @@ public:
bool useCodeFolding() const;
void setUseCodeFolding(bool value);
SynEditCodeFolding & codeFolding();
QString lineText();
void setLineText(const QString s);