Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QM editor background color
#1
Hi, I apologize if this has been asked and answered previously. I sometimes struggle finding solutions in here. Title says it all. I'd like to stop burning my eyes out by changing the background color of the editor to black. Under Tools, Options, Editor I have many options for fonts etc, but I haven't found the one to change background color. Thank you in advance.
#2
there is no settings you can change to change the background. But it can be done
create a function name it init2(if you don't have one already) and place this code in there.

Function init2
Code:
Copy      Help
;;qm code editor(main) id-2210,code editor(secondary) id-2210
int backColor(0x1E1E1E) foreColor(0xF3F2F1)
int h(id(2210 _hwndqm)) h1(id(2211 _hwndqm))
int i
for i 0 18
,SendMessage h SCI.SCI_STYLESETBACK i backColor
,SendMessage h1 SCI.SCI_STYLESETBACK i backColor
,SendMessage h1 SCI.SCI_STYLESETEOLFILLED i backColor    
SendMessage h SCI.SCI_STYLESETFORE 0 foreColor
SendMessage h SCI.SCI_STYLESETFORE 14 foreColor ;;variables; or change it in Options, because default is black
SendMessage h SCI.SCI_STYLESETBACK 34 backColor
SendMessage h SCI.SCI_STYLESETBACK SCI.STYLE_DEFAULT backColor
SendMessage h SCI.SCI_STYLESETFORE SCI.STYLE_DEFAULT foreColor
SendMessage h SCI.SCI_SETCARETFORE 0xC3C3C3 0
SendMessage h SCI.SCI_SETCARETLINEBACK 0x352411 0
SendMessage h SCI.SCI_STYLESETBACK SCI.STYLE_LINENUMBER backColor
SendMessage h SCI.SCI_STYLESETFORE SCI.STYLE_LINENUMBER 0xAF912B
SendMessage(h SCI.SCI_SETCARETWIDTH 2 0)
SendMessage h1 SCI.SCI_STYLESETBACK 31 backColor
SendMessage h1 SCI.SCI_STYLESETFORE 0 foreColor
SendMessage h1 SCI.SCI_STYLESETFORE 14 foreColor ;;variables; or change it in Options, because default is black
SendMessage h1 SCI.SCI_STYLESETBACK SCI.STYLE_DEFAULT backColor
SendMessage h1 SCI.SCI_STYLESETFORE SCI.STYLE_DEFAULT foreColor
SendMessage h1 SCI.SCI_SETCARETFORE 0xC3C3C3 0
SendMessage h1 SCI.SCI_SETCARETLINEBACK 0x352411 0
SendMessage h1 SCI.SCI_STYLESETBACK SCI.STYLE_LINENUMBER backColor
SendMessage h1 SCI.SCI_STYLESETFORE SCI.STYLE_LINENUMBER 0xAF912B
SendMessage(h1 SCI.SCI_SETCARETWIDTH 2 0)
SendMessage h1 SCI.SCI_STYLESETBACK 31 backColor
;; qm output pane id-2201
int h2(id(2201 _hwndqm)); i=0
for i 0 128
,SendMessage h2 SCI.SCI_STYLESETBACK i backColor
SendMessage h2 SCI.SCI_STYLESETFORE 0 foreColor
SendMessage h2 SCI.SCI_STYLESETFORE 14 foreColor ;;variables; or change it in Options, because default is black
SendMessage h2 SCI.SCI_STYLESETBACK SCI.STYLE_DEFAULT backColor
SendMessage h2 SCI.SCI_STYLESETBACK 31 backColor
SendMessage h2 SCI.SCI_STYLESETFORE SCI.STYLE_DEFAULT foreColor
SendMessage h2 SCI.SCI_SETCARETFORE 0xC3C3C3 0
SendMessage h2 SCI.SCI_SETCARETLINEBACK 0x352411 0
;;Treeview-id 2202(left side),Treeview-id 2214(running items), LIstview-id 2212(open items)
int tv(id(2202 _hwndqm)) tv2(id(2214 _hwndqm)) lv1(id(2212 _hwndqm)) 
SendMessage tv TVM_SETBKCOLOR 0 backColor  ;;black background in List of items
SendMessage tv TVM_SETTEXTCOLOR 0 0xE0E0E0  ;; text color
SendMessage tv2 TVM_SETBKCOLOR 0 backColor  ;; background in List of items
SendMessage tv2 TVM_SETTEXTCOLOR 0 0xE0E0E0  ;;uncomment and change text color here if you like
SendMessage lv1 LVM_SETBKCOLOR 0 backColor  ;;black background in List of items
SendMessage lv1 LVM_SETTEXTCOLOR 0 0x0000FF  ;; text color
SendMessage lv1 LVM_SETTEXTBKCOLOR 0 backColor  ;; text color
#3
Thank you so much, perfect! Smile


Forum Jump:


Users browsing this thread: 2 Guest(s)