MacBook, defective by design banner

title:
Put the knife down and take a green herb, dude.


descrip:

One feller's views on the state of everyday computer science & its application (and now, OTHER STUFF) who isn't rich enough to shell out for www.myfreakinfirst-andlast-name.com

Using 89% of the same design the blog had in 2001.

FOR ENTERTAINMENT PURPOSES ONLY!!!
Back-up your data and, when you bike, always wear white.

As an Amazon Associate, I earn from qualifying purchases. Affiliate links in green.

x

MarkUpDown is the best Markdown editor for professionals on Windows 10.

It includes two-pane live preview, in-app uploads to imgur for image hosting, and MultiMarkdown table support.

Features you won't find anywhere else include...

You've wasted more than $15 of your time looking for a great Markdown editor.

Stop looking. MarkUpDown is the app you're looking for.

Learn more or head over to the 'Store now!

Wednesday, June 22, 2022

I was working in the evening, and everything on my Mac was in dark mode but kdiff3.
 
Some of that was due to macOS changing theme when it's late, so you could argue kdiff3, an old enough app that I didn't figure would or should have auto-theme detection for macOS, was right "half the time", and the bigger half [sic] at that, the half during working hours.
 
Still, I caught myself saying, "If it had a dark mode for kdiff3, I'd use it all the time over none."
 
Oh yeah? Turns out that, though it's not in settings in any super-accessible way, after a little googling, kdiff3 does, in fact, have dark mode.
 
You just edit your .kdiff3rc file with custom colors. Of course, right?
 
But how did I learn that? And how could I figure out which colors work together?
 
If you just want one simple, competent dark theme, the answers to those questions are easy to find.
 

Enter Dracula:

It turns out there's a project with an interesting-ish backstory churning out one dark theme for every app that can take them: Dracula, at the very original draculatheme.com.
 
 
  • Replace color lines from your ~/.kdiff3rc (ex on win: C:\Users\<name>\.kdiff3rc) file with the ones from dracula theme's .kdiff3rc
  • Restart Kdiff3
  • Boom! It's working
That's pretty cool. I like the attitude: Hey, here's the minimum you need to play with a dark theme -- dark theme table stakes, if you're into that whole Gruber vernacular -- and here it is for as many apps as possible. A perfect mvp.
 
Though .kdiff3rc files are kind of a pain. The values you want to change are these:
 
FgColor=248,248,242
BgColor=40,42,54
ColorA=139,233,253
ColorB=80,250,123
ColorC=189,147,249
ColorForConflict=255,85,85
CurrentRangeBgColor=68,71,90
CurrentRangeDiffBgColor=98,114,164
DiffBgColor=98,114,164
ManualAlignmentRangeColor=255,184,108
MidAgeFileColor=255,184,108
MissingFileColor=40,42,54
NewestFileColor=80,250,123
OldestFileColor=255,85,85
 
And those aren't necessarily (aka, "Almost certainly aren't") grouped together in your (apparently alphabetized by default?) .kdiff3rc.
 
I'll put a macOS .kdiff3rc whose only differences from the default .kdiff3rc file are Dracula theme changes up on github here:
 
 
Looks like kdiff3 resaves your rc file when it closes and re-alphabatizes, which is an interesting choice. Three cheers for conformance, I guess. Usually a good thing.
 
It's not like it's perfect. After setting colors for the text areas, kdiff3's chrome is still very... chromey. Very heavy toolbars and footer. But it's an old (gtk?) app, so I'm not complaining. 
 
I now have a fully competent dark theme for an old app nobody with any sense of the state of programming tools would expect to have quite this easily.
 

Labels: ,


posted by Jalindrine at 6/22/2022 12:47:00 PM
Wednesday, October 09, 2013

If you're perplexed by KDiff3's message, "There is a line end style conflict. Please choose the line end style manually," then you're probably about as good at noticing drop-downs alone on the right middle of your apps as I am.


Voila.

Labels: ,


posted by ruffin at 10/09/2013 09:20:00 AM

<< Older | Newer >>


Support freedom
All posts can be accessed here:


Just the last year o' posts:

URLs I want to remember:
* Atari 2600 programming on your Mac
* joel on software (tip pt)
* Professional links: resume, github, paltry StackOverflow * Regular Expression Introduction (copy)
* The hex editor whose name I forget
* JSONLint to pretty-ify JSON
* Using CommonDialog in VB 6 * Free zip utils
* git repo mapped drive setup * Regex Tester
* Read the bits about the zone * Find column in sql server db by name
* Giant ASCII Textifier in Stick Figures (in Ivrit) * Quick intro to Javascript
* Don't [over-]sweat "micro-optimization" * Parsing str's in VB6
* .ToString("yyyy-MM-dd HH:mm:ss.fff", CultureInfo.InvariantCulture); (src) * Break on a Lenovo T430: Fn+Alt+B
email if ya gotta, RSS if ya wanna RSS, (?_?), ยข, & ? if you're keypadless


Powered by Blogger etree.org Curmudgeon Gamer badge
The postings on this site are [usually] my own and do not necessarily reflect the views of any employer, past or present, or other entity.