cudatext: 1.108.0.0
The font color in search box is black.
After I set the BG color to Black, I must change search box font color.
But I can not find where to change it. (no option in options-settings-theme-ui...)
It seems that version 1.108.0.0 change this color?
how to change the search box font color
yes, it is very strange.
to find what wrong with this phenomenon I download the latest version 1.108.2.0.
unzip to a clean folder and get a clean cudatext. and replace every file one by one with my personal settings.
finally, I find one file: \cudatext\settings\history.json
I confirm this file will trigger this strange behavior.
below are all text in history.json:
=======================================
{
"dialog" : {
"max" : true,
"posx" : 0,
"posy" : -8,
"sizex" : 1920,
"sizey" : 1017,
"fl_btm" : {
"posx" : 50,
"posy" : 480,
"sizex" : 850,
"sizey" : 220
},
"max_mon" : 0
},
"show_sidepanel" : true,
"show_bottom" : false,
"float_side" : false,
"float_bottom" : false,
"size_side" : 311,
"size_bottom" : 212,
"tab_left" : "Code tree",
"recent_files" : [
],
"list_console" : [
"test",
"print(2+3)",
"python test.py",
"test.py",
"test,py"
],
"finder" : {
"regex" : true,
"case" : false,
"words" : false,
"back" : false,
"confirm" : false,
"wrap" : false,
"insel" : false,
"tokens" : 0
},
"lang" : "",
"session" : "",
"last_cmd" : 6415,
"groups" : 1,
"gr" : {
"panel" : "2,936",
"pages" : "100,100,14,412,18,936,4,936,0,0,0,0,"
},
"dlg_lexer_lib" : {
"sizex" : 459,
"sizey" : 468
},
"list_find" : [
],
"list_replace" : [
],
"find" : {
"multi_line" : false,
"pos_x" : 200,
"pos_y" : 400,
"size_x" : 700
},
"dlg_lexer_prop" : {
"sizex" : 768,
"sizey" : 601
},
"dlg_charmap" : {
"sizex" : 516,
"sizey" : 523
},
"dlg_savetabs" : {
"sizex" : 720,
"sizey" : 350
},
"sync_choose_themes" : true
}
===================================================
step by step:
1) set editor BG color=black, editor font color=White
2) exit cudatext
3) modify this history.json as the above text
4) restart cudatext, open search box, input some words in this box.
5) all the words will be balck but not white
here is the captured picture:
to find what wrong with this phenomenon I download the latest version 1.108.2.0.
unzip to a clean folder and get a clean cudatext. and replace every file one by one with my personal settings.
finally, I find one file: \cudatext\settings\history.json
I confirm this file will trigger this strange behavior.
below are all text in history.json:
=======================================
{
"dialog" : {
"max" : true,
"posx" : 0,
"posy" : -8,
"sizex" : 1920,
"sizey" : 1017,
"fl_btm" : {
"posx" : 50,
"posy" : 480,
"sizex" : 850,
"sizey" : 220
},
"max_mon" : 0
},
"show_sidepanel" : true,
"show_bottom" : false,
"float_side" : false,
"float_bottom" : false,
"size_side" : 311,
"size_bottom" : 212,
"tab_left" : "Code tree",
"recent_files" : [
],
"list_console" : [
"test",
"print(2+3)",
"python test.py",
"test.py",
"test,py"
],
"finder" : {
"regex" : true,
"case" : false,
"words" : false,
"back" : false,
"confirm" : false,
"wrap" : false,
"insel" : false,
"tokens" : 0
},
"lang" : "",
"session" : "",
"last_cmd" : 6415,
"groups" : 1,
"gr" : {
"panel" : "2,936",
"pages" : "100,100,14,412,18,936,4,936,0,0,0,0,"
},
"dlg_lexer_lib" : {
"sizex" : 459,
"sizey" : 468
},
"list_find" : [
],
"list_replace" : [
],
"find" : {
"multi_line" : false,
"pos_x" : 200,
"pos_y" : 400,
"size_x" : 700
},
"dlg_lexer_prop" : {
"sizex" : 768,
"sizey" : 601
},
"dlg_charmap" : {
"sizex" : 516,
"sizey" : 523
},
"dlg_savetabs" : {
"sizex" : 720,
"sizey" : 350
},
"sync_choose_themes" : true
}
===================================================
step by step:
1) set editor BG color=black, editor font color=White
2) exit cudatext
3) modify this history.json as the above text
4) restart cudatext, open search box, input some words in this box.
5) all the words will be balck but not white
here is the captured picture:
It is very happy to find the reason!Alexey wrote:I found the reason (yes I see it too). 'find what' field uses lexer Regex. so it uses SYNTAX-theme!! so font color is used from syntax-theme. change it to 'sub' for ex (white font color)
but I dont know how to do for "change it to 'sub' for ex (white font color)" ? I should change what?
Thanks.