@@ -52,10 +52,11 @@ def _do_init_pairs(self):
52
52
curses .init_pair (6 , self ._active_colors [THEME_ITEMS [5 ][0 ]][FOREGROUND ()], self ._active_colors [THEME_ITEMS [5 ][0 ]][BACKGROUND ()])
53
53
# status bar
54
54
curses .init_pair (7 , self ._active_colors [THEME_ITEMS [2 ][0 ]][FOREGROUND ()], self ._active_colors [THEME_ITEMS [2 ][0 ]][BACKGROUND ()])
55
- # search cursor
56
- curses .init_pair (8 , self ._active_colors [THEME_ITEMS [5 ][0 ]][BACKGROUND ()], self ._active_colors [THEME_ITEMS [3 ][0 ]][BACKGROUND ()])
55
+ # edit cursor
56
+ curses .init_pair (8 , self ._active_colors [THEME_ITEMS [7 ][0 ]][FOREGROUND ()], self ._active_colors [THEME_ITEMS [7 ][0 ]][BACKGROUND ()])
57
57
# cursor when playing
58
58
curses .init_pair (9 , self ._active_colors [THEME_ITEMS [6 ][0 ]][FOREGROUND ()], self ._active_colors [THEME_ITEMS [6 ][0 ]][BACKGROUND ()])
59
+ logger .error ('DE _do_init_pairs:\n {}' .format (self ._active_colors ))
59
60
60
61
def restoreActiveTheme (self ):
61
62
self ._active_colors = deepcopy (self ._read_colors )
@@ -136,6 +137,8 @@ def open_theme(self, a_theme = '', a_path=''):
136
137
# help window
137
138
self ._colors [THEME_ITEMS [1 ][0 ]] = [ curses .COLOR_YELLOW , self ._colors [THEME_ITEMS [3 ][0 ]][BACKGROUND ()] ]
138
139
# calculated value: self._colors['Messages'] = [ self._colors[THEME_ITEMS[4][0]][FOREGROUND()], self._colors[THEME_ITEMS[2][0]][FOREGROUND()] ]
140
+ # Edit Cursor
141
+ self ._colors [THEME_ITEMS [7 ][0 ]] = [ curses .COLOR_WHITE , curses .COLOR_MAGENTA ]
139
142
# info
140
143
self ._colors ['Colors' ] = 8
141
144
self ._colors ['Name' ] = 'dark'
@@ -155,6 +158,8 @@ def open_theme(self, a_theme = '', a_path=''):
155
158
# help window
156
159
self ._colors [THEME_ITEMS [1 ][0 ]] = [ 11 , self ._colors [THEME_ITEMS [3 ][0 ]][BACKGROUND ()] ]
157
160
# calculated value: self._colors['Messages'] = [ self._colors[THEME_ITEMS[4][0]][FOREGROUND()], self._colors[THEME_ITEMS[2][0]][FOREGROUND()] ]
161
+ # Edit Cursor
162
+ self ._colors [THEME_ITEMS [7 ][0 ]] = [ 15 , curses .COLOR_MAGENTA ]
158
163
# info
159
164
self ._colors ['Colors' ] = 16
160
165
self ._colors ['Name' ] = 'dark_16_colors'
@@ -174,6 +179,8 @@ def open_theme(self, a_theme = '', a_path=''):
174
179
# help window
175
180
self ._colors [THEME_ITEMS [1 ][0 ]] = [ curses .COLOR_MAGENTA , self ._colors [THEME_ITEMS [3 ][0 ]][BACKGROUND ()] ]
176
181
# calculated value: self._colors['Messages'] = [ self._colors[THEME_ITEMS[4][0]][FOREGROUND()], self._colors[THEME_ITEMS[2][0]][FOREGROUND()] ]
182
+ # Edit Cursor
183
+ self ._colors [THEME_ITEMS [7 ][0 ]] = [ curses .COLOR_WHITE , curses .COLOR_MAGENTA ]
177
184
# info
178
185
self ._colors ['Colors' ] = 8
179
186
self ._colors ['Name' ] = 'light'
@@ -193,6 +200,8 @@ def open_theme(self, a_theme = '', a_path=''):
193
200
# help window
194
201
self ._colors [THEME_ITEMS [1 ][0 ]] = [ 13 , self ._colors [THEME_ITEMS [3 ][0 ]][BACKGROUND ()] ]
195
202
# calculated value: self._colors['Messages'] = [ self._colors[THEME_ITEMS[4][0]][FOREGROUND()], self._colors[THEME_ITEMS[2][0]][FOREGROUND()] ]
203
+ # Edit Cursor
204
+ self ._colors [THEME_ITEMS [7 ][0 ]] = [ 15 , 13 ]
196
205
# info
197
206
self ._colors ['Colors' ] = 16
198
207
self ._colors ['Name' ] = 'light_16_colors'
@@ -212,6 +221,8 @@ def open_theme(self, a_theme = '', a_path=''):
212
221
# help window
213
222
self ._colors [THEME_ITEMS [1 ][0 ]] = [ 245 , self ._colors [THEME_ITEMS [3 ][0 ]][BACKGROUND ()] ]
214
223
# calculated value: self._colors['Messages'] = [ self._colors[THEME_ITEMS[4][0]][FOREGROUND()], self._colors[THEME_ITEMS[2][0]][FOREGROUND()] ]
224
+ # Edit Cursor
225
+ self ._colors [THEME_ITEMS [7 ][0 ]] = [ 15 , 238 ]
215
226
# info
216
227
self ._colors ['Colors' ] = 256
217
228
self ._colors ['Name' ] = 'black_on_white'
@@ -231,6 +242,8 @@ def open_theme(self, a_theme = '', a_path=''):
231
242
# help window
232
243
self ._colors [THEME_ITEMS [1 ][0 ]] = [ 247 , self ._colors [THEME_ITEMS [3 ][0 ]][BACKGROUND ()] ]
233
244
# calculated value: self._colors['Messages'] = [ self._colors[THEME_ITEMS[4][0]][FOREGROUND()], self._colors[THEME_ITEMS[2][0]][FOREGROUND()] ]
245
+ # Edit Cursor
246
+ self ._colors [THEME_ITEMS [7 ][0 ]] = [ 15 , 247 ]
234
247
# info
235
248
self ._colors ['Colors' ] = 256
236
249
self ._colors ['Name' ] = 'white_on_black'
0 commit comments