diff --git a/ChangeLog b/ChangeLog index b0cae674..45798609 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ * src/highlighting.c: Use radio buttons for View->Editor->Color Schemes menu. Don't hide the menu when only the default item is available. + * data/colorschemes, data/colorschemes/alt.conf, wscript, Makefile.am: + Add alternative color scheme based on Python colors. 2010-10-18 Nick Treleaven diff --git a/Makefile.am b/Makefile.am index 9e30e259..e2eb847f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -25,7 +25,8 @@ SYS_DATA_FILES = \ data/snippets.conf \ data/ui_toolbar.xml \ $(srcdir)/data/templates/* \ - $(srcdir)/data/templates/files/* + $(srcdir)/data/templates/files/* \ + $(srcdir)/data/colorschemes/* EXTRA_DIST = \ autogen.sh \ @@ -77,6 +78,12 @@ install-data-local: $(INSTALL_DATA) $$file $(DESTDIR)$(pkgdatadir)/templates/files/; \ fi \ done + $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/colorschemes; + for file in $(srcdir)/data/colorschemes/*; do \ + if test -f $$file; then \ + $(INSTALL_DATA) $$file $(DESTDIR)$(pkgdatadir)/colorschemes/; \ + fi \ + done BZIP2_ENV =--best diff --git a/data/colorschemes/alt.conf b/data/colorschemes/alt.conf new file mode 100644 index 00000000..683469b2 --- /dev/null +++ b/data/colorschemes/alt.conf @@ -0,0 +1,24 @@ +# Set of styles like the Geany <= 0.19 Python/script defaults with gray comments. + +[named_styles] +# style names to use in filetypes.* [styling] sections +# use foreground;background;bold;italic +# normally background should be left blank to use the "default" style + +default=0x000000;0xffffff +comment=0x808080 +commentdoc=0x404000 +number=0x400080 +# keyword +word=0x600080;;true +# e.g. global types from a *.c.tags file +word2=0x9f0200;;true +string=0x008000 +preprocessor=0x007f7f +operator=0x300080 +# unterminated string +stringeol=0x000000;0xe0c0e0 +type=0x0000d0;;true + + + diff --git a/wscript b/wscript index 386d81e9..89f378ff 100644 --- a/wscript +++ b/wscript @@ -525,6 +525,7 @@ def build(bld): bld.install_files('${DATADIR}/%s' % dir, 'data/ui_toolbar.xml') bld.install_files('${DATADIR}/%s/templates' % dir, 'data/templates/*.*') bld.install_files('${DATADIR}/%s/templates/files' % dir, 'data/templates/files/*.*') + bld.install_files('${DATADIR}/%s/colorschemes' % dir, 'data/colorschemes/*.*') bld.install_as('${DATADIR}/%s/GPL-2' % dir, 'COPYING') # Icons bld.install_files('${PREFIX}/share/icons'