@ECHO OFF REM Saturday, September 26, 2020 REM by Robert J. Sawyer | sawyer@sfwriter.com | https://sfwriter.com REM Provided as is with no warranty of any kind / use at your own risk. REM For use with Evernote for Windows only. REM This batch file changes the on-screen display of the background REM color of Evernote notes (without actually altering the note in REM any way) and also changes the on-screen display of the background REM color for the note list as well as making the highlight color and REM divider lines in the note list contrast well with the new REM background color. REM Special thanks to Ashetty for suggesting revised SFK commands. REM Follow these steps; the whole process should take you less than REM ten minutes: REM [ ] First, set the Dark theme for Evernote's Left Panel REM display -- the only part of a night mode that Evernote's REM developers actually give Windows users. You can do that REM at this setting inside the Evernote client: REM Tools | Options | General | Left panel theme | Default (dark) REM [ ] Next, Initiate an Evernote sync by clicking the Sync icon in REM the Evernote tool bar and wait until it is complete. REM [ ] Now, exit the Evernote program (File menu, and then Exit). REM [ ] Also close the Evernote tray icon (the elephant symbol) by right-clicking on it and selecting "Quit Evernote") REM [ ] If you acquired this file you're looking at right now with REM the name EN-color.txt you must first rename it to REM EN-color.bat (Windows may give you a warning about the REM danger of changing a file type; ignore the warning). REM [ ] Place this file -- EN-color.bat -- in you Evernote program REM folder, which is probably "c:\Program Files\Evernote\Evernote" REM but might be "C:\Program Files (x86)\Evernote\Evernote" REM If it isn't in either of those places (only one of which should REM exist), you can find out where your Evernote.exe is located by REM right-clicking on the Evernote icon, then selecting properties, REM then the "Shortcut" tab, and looking at the value in "Start in" REM field; that value is the folder that contains your Evernote.exe REM file. REM [ ] THIS BATCH FILE REQUIRES THE FREE UTILITY SWISS FILE KNIFE, REM WHICH YOU CAN DOWNLOAD FROM HERE: REM http://stahlworks.com/dev/swiss-file-knife.html REM [ ] Place sfk.exe in your Evernote program folder, which, again, is REM probably c:\Program Files\Evernote\Evernote but might be REM c:\Program Files (x86)\Evernote\Evernote REM N O T E *** N O T E *** N O T E *** N O T E *** N O T E REM REM If you are running a third-party antivirus program (something other REM than Windows Defender, which is included with Windows), you may get REM a warning that sfk.exe is unsafe. What that means is that the REM antivirus program has (quite rightly) detected that sfk.exe has REM the ability to modify program files -- which is exactly what we're REM about to use it for. Disable your antivirus program and try again. REM [ ] If your Evernote program is not on Drive C:, edit the first line REM below to show the appropriate drive letter (if your Evernote REM is on Drive D:, for instance, then just change this to D:). C: CD \ REM [ ] Next, you have to get to a command prompt. REM Under Windows 10, click Start. Scroll down and expand the REM "Windows System" folder. RIGHT-CLICK on "Command Prompt," and REM choose "Run as administrator." (If that doesn't work -- if you REM don't have administrator privileges on your computer, then just REM LEFT-CLICK on "Command Prompt. REM Under Windows 7, that s "Run" from the start menu, then type CMD REM and hit Enter. REM [ ] You'll now see the command prompt, which will look something like REM this: REM C:\Users\Username> REM Your cursor will be right after the ">" sign. At that spot type REM PRECISELY THIS (spaces matter): REM cd "\Program Files\Evernote\Evernote" REM The command prompt will change to: REM C:\Program Files\Evernote\Evernote> REM IF AND ONLY IF that doesn't work, THEN AND ONLY THEN type this: REM cd "C:\Program Files (x86)\Evernote\Evernote" REM The command prompt will change to: REM C:\Program Files (x86)\Evernote\Evernote> REM [ ] And now it's magic time! At the command prompt, type the name REM of this very batch file: REM EN-color.bat REM A bunch of messages will flash on your screen, and you'll end up REM with a display similar to this: REM [total hits/matching patterns/non-matching patterns] REM [001/1/0] Evernote.exe REM 1 files checked, 1 changed. REM [total hits/matching patterns/non-matching patterns] REM [004/1/0] Evernote.exe REM 1 files checked, 1 changed. REM [total hits/matching patterns/non-matching patterns] REM [009/1/0] Evernote.exe REM 1 files checked, 1 changed. REM If the FIRST "changed" line says "0 changed" instead of "1 changed," REM that means the background color for notes failed to be changed for REM some reason (probably, in this case and the two below, because REM you've already run this batch file). REM If the SECOND "changed" line says "0 changed" instead of "1 changed," REM that means the background color for the notes list failed to be REM changed for some reason. REM If the THIRD "changed" line says "0 changed" instead of "1 changed," REM that means the background color for the divider line in the notes REM list failed be changed for some reason. REM [ ] At the command prompt type: REM exit REM That will close the command-prompt session. REM [ ] If you disabled your antivirus program earlier, re-enable REM it now. REM [ ] Finally, simply run Evernote as normal, and you should see REM darker background colors for notes and for the note list. REM That's it! REM ======================================================================= REM The information below is for advanced users who might want to REM modify this batch file or for those who simply are curious about REM what this batch file does. REM As only one of these two folders likely exists, this should work REM on most Evernote installations. If you wish, you can put REM in REM front of the line specifying the folder that DOESN'T contain your REM Evernote installation program. It's possible your Evernote REM installation is in some other folder than either of these: CD "\Program Files\Evernote\Evernote" CD "\Program Files (x86)\Evernote\Evernote" cls REM This command makes a backup copy of Evernote.exe, just in case: copy Evernote.exe Evernote.ok /y cls REM Note that below I've written the hex color codes in mixed case: REM the first byte (two characters) uses uppercase; the second byte REM (two characters) uses lower case; and the third byte (two REM characters) uses upper case again. This has no effect on REM functionality; I've simply adopted this convention to make it REM easier to do a case-sensitive search for the changed strings REM within Evernote.exe with a hex editor, in case something goes REM wrong. REM ======================================================================= REM Sets background color for notes (#B2b1B3 is a light gray): sfk rep Evernote.exe -firsthit -text "/-webkit-touch-callout:text;/background-color:#B2b1B3; /" -yes REM ======================================================================= REM If you prefer a soft-green background (as I do), comment out the REM line above by adding "REM" to the beginning of it uncomment this one REM instead (by removing "REM" from the beginning of it): REM sfk rep Evernote.exe -firsthit -text "/-webkit-touch-callout:text;/background-color:#C0dcC0; /" -yes REM ======================================================================= REM Below is an older version of the note-color patch for pre-2019 REM versions of Evernote; it's here for users who have stayed on that REM older version. You can safely activate the line by removing REM "REM" from the beginning of it; it won't do anything in modern REM versions of Evernote.exe: REM sfk rep Evernote.exe -firsthit -text "/-webkit-touch-callout: text;/background-color: #B2b1B3; /" -yes REM ======================================================================= REM Sets background color for the note list (#F5deB3 is a wheat color): sfk rep Evernote.exe -text -case /#F8F8F8/#F5deB3/ -yes REM ======================================================================= REM Sets divider line color used in the note list and highlight color REM used for the selected note (#DDa0DD is a plum color): sfk rep Evernote.exe -text -case /#E6E6E6/#DDa0DD/ -yes REM ======================================================================= REM If you want to play around with other color codes, copy Evernote.ok REM to Evernote.exe (to get back to the default colors) and choose REM hex codes from the list here: https://htmlcolorcodes.com/color-names/ REM ======================================================================= REM If something goes wrong, or you want to simply get back to an REM unmodified copy of Evernote.exe, you can always reinstall Evernote; REM you can get the installer here: https://evernote.com/download REM Your notes and notebook structure will be left just as you had them REM even if you do a reinstall. REM [end of file]