From d042865f672d6708df80250c9c59172148a55f11 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 15 May 2013 17:00:50 -0400 Subject: Rewrote theme implementation. Themes are now just single files that share Textadept's Lua state. Also added a new "settings.lua" that functions in place of buffer and view theme files. Requires latest Scintillua. --- modules/textadept/bookmarks.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/textadept/bookmarks.lua') diff --git a/modules/textadept/bookmarks.lua b/modules/textadept/bookmarks.lua index 3f383a56..d04bb424 100644 --- a/modules/textadept/bookmarks.lua +++ b/modules/textadept/bookmarks.lua @@ -5,11 +5,11 @@ local M = {} --[[ This comment is for LuaDoc. --- -- Bookmarks for Textadept. --- @field MARK_BOOKMARK_COLOR (number) --- The color, in "0xBBGGRR" format, used for a bookmarked line. +-- @field BOOKMARK_COLOR (string) +-- The name of the color in the current theme to mark a bookmarked line with. module('_M.textadept.bookmarks')]] -M.MARK_BOOKMARK_COLOR = not CURSES and 0xB3661A or 0xFF0000 +M.BOOKMARK_COLOR = not CURSES and 'color.dark_blue' or 'color.blue' local MARK_BOOKMARK = _SCINTILLA.next_marker_number() @@ -84,7 +84,7 @@ local CURSES_MARK = _SCINTILLA.constants.SC_MARK_CHARACTER + string.byte(' ') -- Sets view properties for bookmark markers. local function set_bookmark_properties() if CURSES then buffer:marker_define(MARK_BOOKMARK, CURSES_MARK) end - buffer.marker_back[MARK_BOOKMARK] = M.MARK_BOOKMARK_COLOR + buffer.marker_back[MARK_BOOKMARK] = buffer.property_int[M.BOOKMARK_COLOR] end if buffer then set_bookmark_properties() end events.connect(events.VIEW_NEW, set_bookmark_properties) -- cgit v1.2.3