aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/dark.lua
diff options
context:
space:
mode:
Diffstat (limited to 'themes/dark.lua')
-rw-r--r--themes/dark.lua60
1 files changed, 30 insertions, 30 deletions
diff --git a/themes/dark.lua b/themes/dark.lua
index d46655d5..6402c165 100644
--- a/themes/dark.lua
+++ b/themes/dark.lua
@@ -2,7 +2,7 @@
-- Dark theme for Textadept.
-- Contributions by Ana Balan.
-local buffer = buffer
+local buffer, view = buffer, view
local property, property_int = buffer.property, buffer.property_int
-- Greyscale colors.
@@ -88,50 +88,50 @@ property['style.variable'] = 'fore:$(color.light_blue)'
property['style.whitespace'] = ''
-- Multiple Selection and Virtual Space
---buffer.additional_sel_alpha =
---buffer.additional_sel_fore =
---buffer.additional_sel_back =
---buffer.additional_caret_fore =
+--view.additional_sel_alpha =
+--view.additional_sel_fore =
+--view.additional_sel_back =
+--view.additional_caret_fore =
-- Caret and Selection Styles.
-buffer:set_sel_fore(true, property_int['color.light_black'])
-buffer:set_sel_back(true, property_int['color.grey'])
---buffer.sel_alpha =
-buffer.caret_fore = property_int['color.grey']
-buffer.caret_line_back = property_int['color.light_black']
---buffer.caret_line_back_alpha =
+view:set_sel_fore(true, property_int['color.light_black'])
+view:set_sel_back(true, property_int['color.grey'])
+--view.sel_alpha =
+view.caret_fore = property_int['color.grey']
+view.caret_line_back = property_int['color.light_black']
+--view.caret_line_back_alpha =
-- Fold Margin.
-buffer:set_fold_margin_colour(true, property_int['color.black'])
-buffer:set_fold_margin_hi_colour(true, property_int['color.black'])
+view:set_fold_margin_colour(true, property_int['color.black'])
+view:set_fold_margin_hi_colour(true, property_int['color.black'])
-- Markers.
local MARK_BOOKMARK = textadept.bookmarks.MARK_BOOKMARK
---buffer.marker_fore[MARK_BOOKMARK] = property_int['color.black']
-buffer.marker_back[MARK_BOOKMARK] = property_int['color.dark_blue']
---buffer.marker_fore[textadept.run.MARK_WARNING] = property_int['color.black']
-buffer.marker_back[textadept.run.MARK_WARNING] = property_int['color.yellow']
---buffer.marker_fore[textadept.run.MARK_ERROR] = property_int['color.black']
-buffer.marker_back[textadept.run.MARK_ERROR] = property_int['color.red']
+--view.marker_fore[MARK_BOOKMARK] = property_int['color.black']
+view.marker_back[MARK_BOOKMARK] = property_int['color.dark_blue']
+--view.marker_fore[textadept.run.MARK_WARNING] = property_int['color.black']
+view.marker_back[textadept.run.MARK_WARNING] = property_int['color.yellow']
+--view.marker_fore[textadept.run.MARK_ERROR] = property_int['color.black']
+view.marker_back[textadept.run.MARK_ERROR] = property_int['color.red']
for i = buffer.MARKNUM_FOLDEREND, buffer.MARKNUM_FOLDEROPEN do -- fold margin
- buffer.marker_fore[i] = property_int['color.black']
- buffer.marker_back[i] = property_int['color.dark_grey']
- buffer.marker_back_selected[i] = property_int['color.light_grey']
+ view.marker_fore[i] = property_int['color.black']
+ view.marker_back[i] = property_int['color.dark_grey']
+ view.marker_back_selected[i] = property_int['color.light_grey']
end
-- Indicators.
-buffer.indic_fore[ui.find.INDIC_FIND] = property_int['color.dark_yellow']
-buffer.indic_alpha[ui.find.INDIC_FIND] = 255
+view.indic_fore[ui.find.INDIC_FIND] = property_int['color.dark_yellow']
+view.indic_alpha[ui.find.INDIC_FIND] = 255
local INDIC_BRACEMATCH = textadept.editing.INDIC_BRACEMATCH
-buffer.indic_fore[INDIC_BRACEMATCH] = property_int['color.light_grey']
+view.indic_fore[INDIC_BRACEMATCH] = property_int['color.light_grey']
local INDIC_HIGHLIGHT = textadept.editing.INDIC_HIGHLIGHT
-buffer.indic_fore[INDIC_HIGHLIGHT] = property_int['color.orange']
-buffer.indic_alpha[INDIC_HIGHLIGHT] = 255
+view.indic_fore[INDIC_HIGHLIGHT] = property_int['color.orange']
+view.indic_alpha[INDIC_HIGHLIGHT] = 255
local INDIC_PLACEHOLDER = textadept.snippets.INDIC_PLACEHOLDER
-buffer.indic_fore[INDIC_PLACEHOLDER] = property_int['color.grey']
+view.indic_fore[INDIC_PLACEHOLDER] = property_int['color.grey']
-- Call tips.
-buffer.call_tip_fore_hlt = property_int['color.light_blue']
+view.call_tip_fore_hlt = property_int['color.light_blue']
-- Long Lines.
-buffer.edge_colour = property_int['color.dark_grey']
+view.edge_colour = property_int['color.dark_grey']