From 288a49deace86364bf1ebe40e5a582e5ccd5bfb7 Mon Sep 17 00:00:00 2001 From: royqh1979 Date: Sat, 19 Jun 2021 09:20:12 +0800 Subject: [PATCH] * work save: color scheme --- RedPandaIDE/colorscheme.cpp | 3 --- RedPandaIDE/colorschemes.qrc | 5 +++++ RedPandaIDE/settings.cpp | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 RedPandaIDE/colorschemes.qrc diff --git a/RedPandaIDE/colorscheme.cpp b/RedPandaIDE/colorscheme.cpp index bbcc4d5e..02f3b5d7 100644 --- a/RedPandaIDE/colorscheme.cpp +++ b/RedPandaIDE/colorscheme.cpp @@ -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) diff --git a/RedPandaIDE/colorschemes.qrc b/RedPandaIDE/colorschemes.qrc new file mode 100644 index 00000000..915dd176 --- /dev/null +++ b/RedPandaIDE/colorschemes.qrc @@ -0,0 +1,5 @@ + + + colorschemes/vs_code.scheme + + diff --git a/RedPandaIDE/settings.cpp b/RedPandaIDE/settings.cpp index db27b94d..a8b525e8 100644 --- a/RedPandaIDE/settings.cpp +++ b/RedPandaIDE/settings.cpp @@ -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()