aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/term.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2021-05-29 23:51:55 -0400
committerGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2021-05-29 23:51:55 -0400
commit331e8bcb0d5d9e86201c0aa2a75a55b0b12f132c (patch)
tree8ac94f9b6d50f4931150d3da54edd866d31242c5 /themes/term.lua
parent0153f16c581b0c9ebb4b65913fddac5690dfa81e (diff)
Updated to Scintilla 5.0.3.
Updated themes to use new `view.element_color` and treat all colors as opaque if no alpha was given.
Diffstat (limited to 'themes/term.lua')
-rw-r--r--themes/term.lua18
1 files changed, 8 insertions, 10 deletions
diff --git a/themes/term.lua b/themes/term.lua
index 705799d1..5b135e4f 100644
--- a/themes/term.lua
+++ b/themes/term.lua
@@ -54,16 +54,14 @@ styles.type = {fore = colors.magenta, bold = true}
styles.variable = {fore = colors.blue, bold = true}
styles.whitespace = {}
--- Multiple Selection and Virtual Space
--- view.additional_sel_fore =
--- view.additional_sel_back =
--- view.additional_caret_fore =
-
--- Caret and Selection Styles.
--- view:set_sel_fore(true, colors.white)
--- view:set_sel_back(true, colors.black)
--- view.caret_fore = colors.black
--- view.caret_line_back =
+-- Element colors.
+-- view.element_color[view.ELEMENT_SELECTION_TEXT] = colors.white
+-- view.element_color[view.ELEMENT_SELECTION_BACK] = colors.black
+-- view.element_color[view.ELEMENT_SELECTION_ADDITIONAL_TEXT] = colors.white
+-- view.element_color[view.ELEMENT_SELECTION_ADDITIONAL_BACK] = colors.black
+-- view.element_color[view.ELEMENT_CARET] = colors.black
+-- view.element_color[view.ELEMENT_CARET_ADDITIONAL] =
+-- view.element_color[view.ELEMENT_CARET_LINE_BACK] =
-- Fold Margin.
-- view:set_fold_margin_color(true, colors.white)