-
-
Notifications
You must be signed in to change notification settings - Fork 208
Changing colors
As you probably already know, you can redefine colors in SC-IM and make a type
be shown with another color other than the default SC-IM comes with.
If your terminal supports 256 colors or more, you can define custom colors with their RGB values and use :define_color command to apply them. You can also redefine stock ncurses colors (BLACK, WHITE, RED, GREEN.. etc). For that you should use :redefine_color. Please see :help for details.
Note to tty users: You can make SC-IM handle 256 colors too over tty. You can use tmux as well. The way I got it working with 256 colors over tty (with and without tmux) was with fbterb (sadly not under development for a couple of years).
To apply a color to a type you have to use the :cellcolor command. See the different colors types below.
-
HEADINGS Topmost (header) row that lists column names, and leftmost (header) column that lists row numbers.
-
HEADINGS_ODD The same that above but shown for odd columns.
-
MODE The text in the top right that indicates which mode SC-IM is currently in
-
NUMB The cell styling used for cells formatted as numbers (That are positive)
-
STRG The cell styling used for cells formatted as strings
-
DATEF The cell styling used for cells formated as dates
-
CELL_SELECTION - The row and column selection styling used on the HEADINGS to indicate the coordinates of the selected row.
-
CELL_SELECTION_SC The currently (focussed) cell.
-
GRID_EVEN: Color shown for even columns itself.
-
GRID_ODD: Color shown for odd columns itself.
-
EXPRESSION The cell styling used for cells that are the result of an expression
-
CELL_ERROR The cell styling used for when an expression results in an error (like dividing by zero)
-
CELL_NEGATIVE The cell that is used when a number (or expression) is a negative value.
-
INFO_MSG The text in the top left corner just above "A" that will provide info messages "At column A" when you try and go past the farthest column to the left
-
ERROR_MSG The text that will display in the top left corner when a command fails for some reason
-
CELL_ID The coordinates of the currently selected cell that displays in the upper top left corner. Just to the left of the CELL_FORMAT and CELL_CONTENT.
-
CELL_FORMAT The text just to the right of the CELL_ID and left of the CELL_CONTENT in the top left corner that shows the formatting of the currently selected cell.
-
CELL_CONTENT The text just to the right of the CELL_ID and CELL_FORMAT that shows the content of the currently selected cell. This will show the expression used to get the current cell.
-
WELCOME The text that shows up when you first open SC-IM
-
NORMAL Text that shows on top of the terminal (like in :help)
-
INPUT The text that shows up while you type text in the input bar at the top left of the screen