I made this script to toggle between Light Mode vas Night mode.
Changes are made to XYplorer.ini, thus permanent, so, Backup your XYplorer.ini before using this script!
Code: Select all
If(getkey("ClrBack", "ListBrowse") == 0){ //If current mode is Night Mode → Switch to Light Mode
setkey 13092807, ClrBackTree, Settings;
setkey 0, ClrTextTree, Settings;
setkey 8947848, ClrHilite, Settings;
setkey 16250871, ClrBoxed, Settings;
setkey 255, ClrTabCurrent, Settings;
setkey 0, ClrTabOther, Settings;
setkey 65535, ClrTabCurrentBack, Settings;
setkey 13160660, ClrTabOtherBack, Settings;
setkey 13160660, ClrBtnfacePrev, Settings;
setkey 11316396, clrListSelNoFocusBack, General;
setkey 11316396, clrTreeSelNoFocusBack, General;
setkey 13092807, clrTreeLocked, General;
Foreach($Section, "ListBrowse|ListFind|ListDrives|ListNetwork|ListRecycler"){
setkey 13092807, ClrBack, $Section;
setkey 0, ClrText, $Section;
setkey 10526880, ClrGrid, $Section;
setkey 13750737, ClrSortCol, $Section;
setkey 14796031, ClrFocRow, $Section;
setkey 14145495, ClrSelRow, $Section;}
}
Else {
setkey 0, ClrBackTree, Settings;
setkey 7187900, ClrTextTree, Settings;
setkey 4605510, ClrHilite, Settings;
setkey 3815994, ClrBoxed, Settings;
setkey 255, ClrTabCurrent, Settings;
setkey 16777215, ClrTabOther, Settings;
setkey 65535, ClrTabCurrentBack, Settings;
setkey 7092245, ClrTabOtherBack, Settings;
setkey 12639424, ClrBtnfacePrev, Settings;
setkey 3487029, clrListSelNoFocusBack, General;
setkey 3487029, clrTreeSelNoFocusBack, General;
setkey 65793, clrTreeLocked, General;
Foreach($Section, "ListBrowse|ListFind|ListDrives|ListNetwork|ListRecycler"){
setkey 0, ClrBack, $Section;
setkey 7187900, ClrText, $Section;
setkey 2039583, ClrGrid, $Section;
setkey 1118481, ClrSortCol, $Section;
setkey 3511061, ClrFocRow, $Section;
setkey 255, ClrSelRow, $Section;}
}
#190