diff options
author | Ton Roosendaal <ton@blender.org> | 2005-05-13 20:11:28 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-05-13 20:11:28 +0400 |
commit | 2d6481c41c446ba3cc3f635944990d1b1927974f (patch) | |
tree | 68e4dba9c8868323a48073a78ebda5752e0c138b /source/blender/include/BIF_resources.h | |
parent | ec2cbb268906faf81c4808ede188d9ecf9bf4129 (diff) |
TextEditor: syntax color support.
Patch provided by Ricki Myers. Works quite obvious, see Theme editor too!
Notes about the provided code;
- The default syntax colors were screaming! Toned it down to match the
default dark on lightgrey background better.
- Added: initializing colors in saved themes (usiblender.c)
- The implementation of the button for this option was quite clumsy...
Blender UI options services this a lot easier.
(Same fixed for 'line numbers' option)
- Bracket matching now uses as color a mix of backdrop and the
selected-text color. Noticed my texteditor did it too...
-> I really miss comments in code describing a little bit the thought
process behind the code. Like a short introduction on this feature
in the top of the drawtext.c, little remarks on new functions.
ALso in patch tracker or the mailinglist no docs was mentioned?
-> drawtext.c now gets messy quickly... lack of overview, structure,
and confusing mix of personal coding styles.
For not-active supported code dangerous...
Diffstat (limited to 'source/blender/include/BIF_resources.h')
-rw-r--r-- | source/blender/include/BIF_resources.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/include/BIF_resources.h b/source/blender/include/BIF_resources.h index 12418d32bb0..5a01276adbc 100644 --- a/source/blender/include/BIF_resources.h +++ b/source/blender/include/BIF_resources.h @@ -266,8 +266,8 @@ typedef enum { ICON_PROP_OFF, ICON_PROP_ON, ICON_PROP_CON, - ICON_BLANK50, - ICON_BLANK51, + ICON_SYNTAX, + ICON_SYNTAX_OFF, ICON_BLANK52, ICON_BLANK53, ICON_BLANK54, @@ -429,7 +429,12 @@ enum { TH_NORMAL, TH_FACE_DOT, TH_FACEDOT_SIZE, - TH_BRACKET + + TH_SYNTAX_B, + TH_SYNTAX_V, + TH_SYNTAX_C, + TH_SYNTAX_L, + TH_SYNTAX_N }; /* XXX WARNING: previous is saved in file, so do not change order! */ |