aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-15 08:25:07 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-15 08:25:07 +0100
commit7d0a161e5297d0d29905facb2b290d1084ab29ac (patch)
tree8d50f795c94c6851414981f49e9966b44fba4fc3 /main.cpp
parent2f7f0d19dd9622f33c2ac8fffac4c2b06f0ead8d (diff)
downloadsciteco-7d0a161e5297d0d29905facb2b290d1084ab29ac.tar.gz
changed default colors and moved stuff into user interface
* hardcoding the colors is only preliminary * focus must be set in interface
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp26
1 files changed, 15 insertions, 11 deletions
diff --git a/main.cpp b/main.cpp
index 95c6c9c..f551450 100644
--- a/main.cpp
+++ b/main.cpp
@@ -65,18 +65,23 @@ main(int argc, char **argv)
{
process_options(argc, argv);
- interface.ssm(SCI_SETFOCUS, 1);
- interface.ssm(SCI_SETCARETSTYLE, 2);
+ interface.ssm(SCI_SETCARETSTYLE, CARETSTYLE_BLOCK);
+ interface.ssm(SCI_SETCARETFORE, 0xFFFFFF);
+
+ /*
+ * FIXME: Styles should probably be set interface-based
+ * (system defaults) and be changeable by TECO macros
+ */
+ interface.ssm(SCI_STYLESETFORE, STYLE_DEFAULT, 0xFFFFFF);
+ interface.ssm(SCI_STYLESETBACK, STYLE_DEFAULT, 0x000000);
interface.ssm(SCI_STYLESETFONT, STYLE_DEFAULT, (sptr_t)"Courier");
interface.ssm(SCI_STYLECLEARALL);
- interface.ssm(SCI_SETLEXER, SCLEX_CPP);
- interface.ssm(SCI_SETKEYWORDS, 0, (sptr_t)"int char");
- interface.ssm(SCI_STYLESETFORE, SCE_C_COMMENT, 0x008000);
- interface.ssm(SCI_STYLESETFORE, SCE_C_COMMENTLINE, 0x008000);
- interface.ssm(SCI_STYLESETFORE, SCE_C_NUMBER, 0x808000);
- interface.ssm(SCI_STYLESETFORE, SCE_C_WORD, 0x800000);
- interface.ssm(SCI_STYLESETFORE, SCE_C_STRING, 0x800080);
- interface.ssm(SCI_STYLESETBOLD, SCE_C_OPERATOR, 1);
+ interface.ssm(SCI_STYLESETFORE, SCE_C_COMMENT, 0x00FF00);
+ interface.ssm(SCI_STYLESETFORE, SCE_C_COMMENTLINE, 0x00FF00);
+ interface.ssm(SCI_STYLESETFORE, SCE_C_NUMBER, 0xFFFF00);
+ interface.ssm(SCI_STYLESETFORE, SCE_C_WORD, 0xFF0000);
+ interface.ssm(SCI_STYLESETFORE, SCE_C_STRING, 0xFF00FF);
+ interface.ssm(SCI_STYLESETBOLD, SCE_C_OPERATOR, TRUE);
qregisters.initialize();
ring.edit(NULL);
@@ -101,7 +106,6 @@ main(int argc, char **argv)
undo.enabled = true;
- interface.cmdline_update();
interface.event_loop();
return 0;