Browse Source

Added dark blue style based on Emacs deeper blue theme.

merge-requests/365/head
eidheim 10 years ago
parent
commit
932cd8efd9
  1. 4
      src/config.cc
  2. 60
      src/files.h

4
src/config.cc

@ -45,6 +45,10 @@ void MainConfig::find_or_create_config_files() {
juci_style_path+="juci-dark.xml"; juci_style_path+="juci-dark.xml";
if(!boost::filesystem::exists(juci_style_path)) if(!boost::filesystem::exists(juci_style_path))
juci::filesystem::write(juci_style_path, juci_dark_style); juci::filesystem::write(juci_style_path, juci_dark_style);
juci_style_path=Singleton::style_dir();
juci_style_path+="juci-dark-blue.xml";
if(!boost::filesystem::exists(juci_style_path))
juci::filesystem::write(juci_style_path, juci_dark_blue_style);
} }
void MainConfig::retrieve_config() { void MainConfig::retrieve_config() {

60
src/files.h

@ -151,7 +151,7 @@ const std::string juci_dark_style =
"\n" "\n"
"<style-scheme id=\"juci-dark\" _name=\"juci\" version=\"1.0\">\n" "<style-scheme id=\"juci-dark\" _name=\"juci\" version=\"1.0\">\n"
" <author>juCi++ team</author>\n" " <author>juCi++ team</author>\n"
" <_description>Default juCi++ style</_description>\n" " <_description>Dark juCi++ style</_description>\n"
"\n" "\n"
" <!-- Palette -->\n" " <!-- Palette -->\n"
" <color name=\"white\" value=\"#CCCCCC\"/>\n" " <color name=\"white\" value=\"#CCCCCC\"/>\n"
@ -201,6 +201,64 @@ const std::string juci_dark_style =
"\n" "\n"
"</style-scheme>\n"; "</style-scheme>\n";
const std::string juci_dark_blue_style =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"\n"
"<style-scheme id=\"juci-dark-blue\" _name=\"juci\" version=\"1.0\">\n"
" <author>juCi++ team</author>\n"
" <_description>Dark blue juCi++ style based on the Emacs deeper blue theme</_description>\n"
"\n"
" <!-- Palette -->\n"
" <color name=\"white\" value=\"#D6D6D6\"/>\n"
" <color name=\"dark-blue\" value=\"#202233\"/>\n"
" <color name=\"gray\" value=\"#919191\"/>\n"
" <color name=\"red\" value=\"#FF7777\"/>\n"
" <color name=\"yellow\" value=\"#FFE100\"/>\n"
" <color name=\"light-yellow\" value=\"#EAC595\"/>\n"
" <color name=\"light-blue\" value=\"#00CCFF\"/>\n"
" <color name=\"green\" value=\"#14ECA8\"/>\n"
" <color name=\"blue\" value=\"#282A40\"/>\n"
" <color name=\"orange\" value=\"#FF8800\"/>\n"
" <color name=\"light-green\" value=\"#A0DB6B\"/>\n"
"\n"
" <style name=\"text\" foreground=\"white\" background=\"dark-blue\"/>\n"
" <style name=\"selection\" background=\"#215D9C\"/>\n"
"\n"
" <!-- Current Line Highlighting -->\n"
" <style name=\"current-line\" background=\"blue\"/>\n"
"\n"
" <!-- Bracket Matching -->\n"
" <style name=\"bracket-match\" foreground=\"dark-blue\" background=\"gray\" bold=\"true\"/>\n"
" <style name=\"bracket-mismatch\" foreground=\"dark-blue\" background=\"#FF0000\" bold=\"true\"/>\n"
"\n"
" <!-- Search Matching -->\n"
" <style name=\"search-match\" foreground=\"dark-blue\" background=\"white\"/>\n"
"\n"
" <!-- Language specifics -->\n"
" <style name=\"def:builtin\" foreground=\"light-blue\"/>\n"
" <style name=\"def:constant\" foreground=\"light-blue\"/>\n"
" <style name=\"def:boolean\" foreground=\"light-yellow\"/>\n"
" <style name=\"def:decimal\" foreground=\"light-yellow\"/>\n"
" <style name=\"def:base-n-integer\" foreground=\"light-yellow\"/>\n"
" <style name=\"def:floating-point\" foreground=\"light-yellow\"/>\n"
" <style name=\"def:complex\" foreground=\"light-yellow\"/>\n"
" <style name=\"def:character\" foreground=\"light-yellow\"/>\n"
" <style name=\"def:special-char\" foreground=\"light-yellow\"/>\n"
"\n\n"
" <!-- Language specifics used by clang-parser in default config -->\n"
" <style name=\"def:string\" foreground=\"light-yellow\"/>\n"
" <style name=\"def:comment\" foreground=\"gray\"/>\n"
" <style name=\"def:statement\" foreground=\"light-blue\"/>\n"
" <style name=\"def:type\" foreground=\"light-blue\"/>\n"
" <style name=\"def:function\" foreground=\"green\"/>\n"
" <style name=\"def:identifier\" foreground=\"light-green\"/>\n"
" <style name=\"def:preprocessor\" foreground=\"yellow\"/>\n"
" <style name=\"def:error\" foreground=\"red\"/>\n"
" <style name=\"def:warning\" foreground=\"yellow\"/>\n"
" <style name=\"def:note\" foreground=\"white\" background=\"blue\"/>\n"
"\n"
"</style-scheme>\n";
const std::string pluginspy = const std::string pluginspy =
"#!/usr/bin/python \n" "#!/usr/bin/python \n"
"import juci_to_python_api as juci \n" "import juci_to_python_api as juci \n"

Loading…
Cancel
Save