* work save: color scheme

This commit is contained in:
royqh1979 2021-06-19 09:20:12 +08:00
parent e3abdb88b7
commit 288a49deac
3 changed files with 7 additions and 4 deletions

View File

@ -365,9 +365,6 @@ void ColorManager::initItemDefines()
//Syntax Error
addDefine(COLOR_SCHEME_ERROR,true,false,false);
addDefine(COLOR_SCHEME_WARNING,true,false,false);
#define COLOR_SCHEME_INDENT_GUIDE_LINE "indent guide line"
}
bool ColorManager::rename(const QString &oldName, const QString &newName)

View File

@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/colorschemes">
<file>colorschemes/vs_code.scheme</file>
</qresource>
</RCC>

View File

@ -109,6 +109,7 @@ QString Settings::Dirs::data(Settings::Dirs::DataType dataType) const
case DataType::ColorSheme:
return ":/colorschemes/colorschemes";
}
return "";
}
QString Settings::Dirs::config(Settings::Dirs::DataType dataType) const
@ -122,7 +123,7 @@ QString Settings::Dirs::config(Settings::Dirs::DataType dataType) const
case DataType::ColorSheme:
return includeTrailingPathDelimiter(configDir)+"scheme";
}
return "";
}
void Settings::Dirs::doSave()