@ECHO OFF REM Wednesday, September 30, 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 Just follow these steps. The whole process should take you less REM than 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. Please wait until it the sync is REM complete. REM [ ] Now, exit the Evernote program (File menu, and then Exit). REM [ ] Also close the Evernote tray icon (the elephant symbol) by REM right-clicking on it and selecting "Quit Evernote." REM [ ] This probably won't be necessary, but you can also close REM the separate EvernoteClipper.exe program, which might be REM running in the background. Hold down these keys REM simultaneously: CTRL ALT DELETE REM That will bring up the "Windows Task Manager." Click on REM the "Processes" tab and scroll down the list (it's in REM alphabetical order) to the entry "EvernoteClipper.exe" REM With that entry highlighted, click the "End Process" REM button at the bottom right, and then click "End Process" REM again in the confirmation dialog that will pop up. REM Close Windows Task Manager by choosing the "File" menu REM and then "Exit Task Manager." 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 (I provide this file as type .txt instead of .bat because REM some virus-checkers don't like downloading any file of the REM .bat type.) REM [ ] Place this file -- EN-color.bat -- in you Evernote program folder, REM which is probably "C:\Program Files (x86)\Evernote\Evernote" REM but might be "c:\Program Files\Evernote\Evernote". Note that REM you are putting EN-color.bat in a folder named Evernote that is REM beneath ANOTHER folder named Evernote. REM If your Evernote program folder isn't in either of the places REM I mentioned above (only one of which should exist), you can find REM out where your Evernote.exe is located by right-clicking on the REM Evernote icon, then selecting properties, then the "Shortcut" tab, REM and then looking at the value in "Start in" field; that value is REM the folder that contains your Evernote.exe 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 In the second paragraph on that page, you'll see the text: REM "Download SFK for Windows here or from SourceForge", where REM both "here" and "SourceForge" are links. REM REM Click on the link named "here" and a file named sfk.exe will REM be downloaded to your computer. REM [ ] If you clicked the "SourceForge" link, or if for any other REM reason the downloded file isn't named just sfk.exe but rather REM has numbers in it such as sfk197.exe, rename the downloaded REM file so that it is simply sfk.exe REM [ ] Place sfk.exe in your Evernote program folder, which, again, is REM probably c:\Program Files (x86)\Evernote\Evernote but might be REM c:\Program Files\Evernote\Evernote. As before, you are placing REM this file in a folder named Evernote beneath a parent folder REM also named 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:). REM Use a text editor, not a word processor, to do this. 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 REM just LEFT-CLICK on "Command Prompt.") REM Under Windows 7, click Start, then choose "Run" from the start REM menu, then type CMD 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 "C:\Program Files (x86)\Evernote\Evernote" REM The command prompt will change to: REM C:\Program Files (x86)\Evernote\Evernote> REM IF AND ONLY IF that doesn't work, THEN AND ONLY THEN type this: REM cd "\Program Files\Evernote\Evernote" REM The command prompt will change to: REM C:\Program Files\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; if so REM modify as appropriate. 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.exe 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 sfk.exe line above by adding "REM" to the beginning of it uncomment this REM one (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 REM older versions. 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). REM I chose this color and the following one carefully, as Evernote will use REM not only this color code but also the inverse of it when highlighting an REM in the note list; this color leaves the note snippet or card legible even REM when it is highlighted: sfk.exe 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); again, I chose REM this color because it gives good contrast with the background color REM for the note list I used above: sfk.exe 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]