Replies: 1 comment 1 reply
-
|
Hi, @WEREMSOFT! First of all, I would like to offer my apologies for the fact that customizing such essential things still requires editing the source code. The key point is that, as of now, the code editor color scheme (in styles.cc) is independent from the editor window color scheme (in basicwindow.cc). So, to get a blue editor window you could edit #define dialogColor(i) cpAppColor[(uchar) (cpBlueDialog[i] - 1)]
extern constexpr WindowColorScheme windowSchemeDefault =
{
dialogColor(wndFramePassive ),
dialogColor(wndFrameActive ),
dialogColor(wndFrameIcon ),
/* wndScrollBarPageArea */ '\x31',
/* wndScrollBarControls */ '\x31',
dialogColor(wndStaticText ),
dialogColor(wndLabelNormal ),
dialogColor(wndLabelSelected ),
dialogColor(wndLabelShortcut ),
dialogColor(wndButtonNormal ),
dialogColor(wndButtonDefault ),
dialogColor(wndButtonSelected ),
dialogColor(wndButtonDisabled ),
dialogColor(wndButtonShortcut ),
dialogColor(wndButtonShadow ),
/* wndClusterNormal */ '\x17',
/* wndClusterSelected */ '\x1F',
/* wndClusterShortcut */ '\x1E',
/* wndInputLineNormal */ '\x30',
dialogColor(wndInputLineSelected ),
/* wndInputLineArrows */ '\x3A',
dialogColor(wndHistoryArrow ),
dialogColor(wndHistorySides ),
dialogColor(wndHistWinScrollBarPageArea),
dialogColor(wndHistWinScrollBarControls),
dialogColor(wndListViewerNormal ),
dialogColor(wndListViewerFocused ),
dialogColor(wndListViewerSelected ),
dialogColor(wndListViewerDivider ),
dialogColor(wndInfoPane ),
/* wndClusterDisabled */ '\x18',
};And, for the Borland C++-style code editor, you could edit extern constexpr ColorScheme schemeDefault =
{
/* sNormal */ {'\xE' , '\x1' },
/* sSelection */ {'\x1' , '\x7' },
/* sWhitespace */ {'\x5' , {} },
/* sCtrlChar */ {'\xD' , {} },
/* sLineNums */ {'\xF' , {} },
/* sKeyword1 */ {'\xA' , {} },
/* sKeyword2 */ {'\xA' , {} },
/* sMisc */ {'\xA' , {} },
/* sPreprocessor */ {'\xA' , {} },
/* sOperator */ {'\xF' , {} },
/* sComment */ {'\x7' , {} },
/* sStringLiteral */ {'\xB' , {} },
/* sCharLiteral */ {'\xB' , {} },
/* sNumberLiteral */ {'\xB' , {} },
/* sEscapeSequence */ {'\xD' , {} },
/* sError */ {'\x0' , '\x4' },
/* sBraceMatch */ {'\xD' , {} , slBold },
/* sReplaceHighlight */ {'\x0' , '\xA' },
};The above will still use your terminal emulator's own color scheme. Note that you can also use fixed RGB values: extern constexpr ColorScheme schemeDefault =
{
/* sNormal */ {0xFFFF55, 0x0000AA },
/* sSelection */ {0x0000AA, 0xAAAAAA },
/* sWhitespace */ {0xAA00AA, {} },
/* sCtrlChar */ {0xFF55FF, {} },
/* sLineNums */ {0xFFFFFF, {} },
/* sKeyword1 */ {0x55FF55, {} },
/* sKeyword2 */ {0x55FF55, {} },
/* sMisc */ {0x55FF55, {} },
/* sPreprocessor */ {0x55FF55, {} },
/* sOperator */ {0xFFFFFF, {} },
/* sComment */ {0xAAAAAA, {} },
/* sStringLiteral */ {0x55FFFF, {} },
/* sCharLiteral */ {0x55FFFF, {} },
/* sNumberLiteral */ {0x55FFFF, {} },
/* sEscapeSequence */ {0xFF55FF, {} },
/* sError */ {0x000000, 0xAA0000 },
/* sBraceMatch */ {0xFF5555, {} , slBold },
/* sReplaceHighlight */ {0x000000, 0x55FF55 },
};The result should be very similar to the original Borland C++ color scheme.
I hope this was helpful. Cheers! |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I love the editor, but the black editor is not my cup of tea. I tried to change the color but I can not undertand how to do it. I checked the issue #67 and readed the documentation about colors and style. I edited the basicWindow.cc on line 100 but I was unable to change the colors.
Could you please show me how to make it look like the original borland editor? Changking the background for the C editor will sufice. I have hte impression that has something to do with the syntax higlighting but I was unable to figure it out.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions