From 4b66077ee5eb0fa69b3352a279551c2859b25803 Mon Sep 17 00:00:00 2001 From: Alexey Date: Sat, 3 Sep 2022 01:40:45 +0300 Subject: [PATCH] wiki; rename new API const --- app/cudatext.app/Contents/Resources/py/cudatext.py | 2 +- app/formmain_py_api.inc | 4 ++-- app/proc_py_const.pas | 2 +- app/py/cudatext.py | 2 +- app/readme/wiki/cudatext_api.wiki | 7 +++++-- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/app/cudatext.app/Contents/Resources/py/cudatext.py b/app/cudatext.app/Contents/Resources/py/cudatext.py index 8732e31217b..6fcdcfdcc48 100644 --- a/app/cudatext.app/Contents/Resources/py/cudatext.py +++ b/app/cudatext.app/Contents/Resources/py/cudatext.py @@ -296,7 +296,7 @@ PROP_NUMBERS_NEGATIVE = 154 PROP_COMMAND_LOG = 155 PROP_COMMAND_LOG_LIMIT = 156 -PROP_TAB_FONT_COLOR = 157 +PROP_TAB_COLOR_FONT = 157 SPLITTER_SIDE = 0 SPLITTER_BOTTOM = 1 diff --git a/app/formmain_py_api.inc b/app/formmain_py_api.inc index d8040cb28a7..f153b3057b4 100644 --- a/app/formmain_py_api.inc +++ b/app/formmain_py_api.inc @@ -3323,7 +3323,7 @@ begin Result:= ReturnNone; end; - PROP_TAB_FONT_COLOR: + PROP_TAB_COLOR_FONT: begin if Assigned(F) then Result:= PyLong_FromLong(F.TabFontColor) @@ -4064,7 +4064,7 @@ begin F.TabColor:= ValueInt; end; - PROP_TAB_FONT_COLOR: + PROP_TAB_COLOR_FONT: begin if Assigned(F) then F.TabFontColor:= ValueInt; diff --git a/app/proc_py_const.pas b/app/proc_py_const.pas index 371bd23a9e8..c387989088d 100644 --- a/app/proc_py_const.pas +++ b/app/proc_py_const.pas @@ -269,7 +269,7 @@ interface PROP_NUMBERS_NEGATIVE = 154; PROP_COMMAND_LOG = 155; PROP_COMMAND_LOG_LIMIT = 156; - PROP_TAB_FONT_COLOR = 157; + PROP_TAB_COLOR_FONT = 157; APP_PROC_SET_CLIP_ALT = -1; APP_PROC_GET_CLIP = 0; diff --git a/app/py/cudatext.py b/app/py/cudatext.py index 8732e31217b..6fcdcfdcc48 100644 --- a/app/py/cudatext.py +++ b/app/py/cudatext.py @@ -296,7 +296,7 @@ PROP_NUMBERS_NEGATIVE = 154 PROP_COMMAND_LOG = 155 PROP_COMMAND_LOG_LIMIT = 156 -PROP_TAB_FONT_COLOR = 157 +PROP_TAB_COLOR_FONT = 157 SPLITTER_SIDE = 0 SPLITTER_BOTTOM = 1 diff --git a/app/readme/wiki/cudatext_api.wiki b/app/readme/wiki/cudatext_api.wiki index e3456437903..447dc34237e 100644 --- a/app/readme/wiki/cudatext_api.wiki +++ b/app/readme/wiki/cudatext_api.wiki @@ -2349,7 +2349,8 @@ Param "value" can be: str, number, bool (for bool it can be also "0"/"1"). Possi * PROP_TAB_SIZE: int: size of tab-char. * PROP_TAB_COLLECT_MARKERS: bool: tab-key collects (jumps to and deletes) markers (if markers placed). * PROP_TAB_TITLE: str: title of tab, useful for untitled tabs, for tabs with picture files. -* PROP_TAB_COLOR: int: color of tab title, integer RGB value (e.g. 0x00FF00 is green); COLOR_NONE if not set. +* PROP_TAB_COLOR: int: color of tab title background, integer RGB value (e.g. 0x00FF00 is green); COLOR_NONE if not set. +* PROP_TAB_COLOR_FONT: int: color of tab title font, integer RGB value (e.g. 0x00FF00 is green); COLOR_NONE if not set. * PROP_TAB_ICON: int: index of tab icon, ie index in imagelist, which handle you can get via app_proc(PROC_GET_TAB_IMAGELIST). * PROP_TAB_PINNED: bool: tab is "pinned" (shows additional confirmation on closing). * PROP_TAB_ID: int: unique tab's identifier (one number for main/secondary editors in tab), it is not changed when tab is moved. @@ -2517,7 +2518,8 @@ Param "value" can be: str, number, bool (for bool it can be also "0"/"1"), tuple * PROP_TAB_SPACES: bool: tab-key inserts spaces. * PROP_TAB_SIZE: int: size of tab-char. * PROP_TAB_COLLECT_MARKERS: bool: tab-key collects (jumps to and deletes) markers. -* PROP_TAB_COLOR: int: color of tab title, integer RGB value (e.g. 0x00FF00 is green); COLOR_NONE if not set. +* PROP_TAB_COLOR: int: color of tab title background, integer RGB value (e.g. 0x00FF00 is green); COLOR_NONE if not set. +* PROP_TAB_COLOR_FONT: int: color of tab title font, integer RGB value (e.g. 0x00FF00 is green); COLOR_NONE if not set. * PROP_TAB_TITLE: str: title of tab, useful for untitled tabs. * PROP_TAB_ICON: int: index of tab icon, ie index in imagelist, which handle you can get via app_proc(PROC_GET_TAB_IMAGELIST). * PROP_TAB_PINNED: bool: tab is "pinned" (shows additional confirmation on closing). @@ -4674,5 +4676,6 @@ It provides: 1.0.428 (app 1.169.5) * add: event "on_caret_slow" * add: app_proc: PROC_GET_AUTOCOMPLETION_INVOKE +* add: Editor.get_prop/set_prop: PROP_TAB_COLOR_FONT [[Category:CudaText]]