Skip to content

DiffCode 0.7.5

Choose a tag to compare

@ihou ihou released this 02 Dec 11:56

macOS: Download DiffCode.pkg for Apple Silicon Macs, or DiffCode-Intel.pkg for Intel Macs — signed and notarized by Apple; copies already installed update themselves. Prefer to drag it in? Use DiffCode.zip or DiffCode-Intel.zip. Requires macOS 14 or later. Not sure which Mac you have? Apple menu → About This Mac: "Chip: Apple M…" is Apple Silicon, "Processor: … Intel …" is Intel.

Windows: Download DiffCode-Setup-x64.exe — installs for your account, no administrator rights needed; or unzip DiffCode-windows-x64.zip and run it. Requires 64-bit Windows 10 (version 1809) or later. The installer is not code-signed, so on first run Windows SmartScreen may say "Windows protected your PC": choose More info → Run anyway.

Linux: Download DiffCode-linux-x86_64.tar.gz, or DiffCode-linux-aarch64.tar.gz for 64-bit Arm. Unpack it and run DiffCode/install.sh: it installs for your account, no root needed, and adds DiffCode to the applications menu (install.sh --uninstall removes it). Requires GTK 3 and glibc 2.35 or later (Ubuntu 22.04, Debian 12, Fedora 36 or newer), on X11 or Wayland, and Git. To update, run the new download's install.sh.

New

  • Custom themes, and Dracula (#26). Settings ▸ Color scheme is now a menu: Default, Solarized and Dracula (Dracula when dark, its official light variant Alucard when light), plus the themes you import. To make your own, choose Export Current Theme…: it saves every color of the scheme in use, light and dark, as a JSON file. Change the name and the colors in any text editor, then choose Import Theme…: DiffCode copies the file into its themes folder and switches to it. A theme may give only the colors it changes; the rest come from a built-in scheme. The same file works on the Mac, Windows and Linux; the format and every color key are in themes/README.md. This is for the Mac, Windows and Linux apps.

Fixes

  • On the Mac, after switching color schemes, the check boxes and buttons in the diff's gutter kept the previous scheme's accent color.

新功能

  • **自定义主题和 Dracula(#26)。**设置 ▸ 配色方案 改成了下拉菜单:默认、Solarized、Dracula(深色是 Dracula,浅色是官方的 Alucard),以及你导入的主题。想自己配色,就选“导出当前主题…”,把正在用的配色(浅色和深色的全部颜色)存成一个 JSON 文件;用任意文本编辑器改好名字和颜色,再选“导入主题…”,DiffCode 会把它复制到主题文件夹并切换过去。主题文件可以只写要改的颜色,其余的取自内置配色。同一个文件在 Mac、Windows 和 Linux 上都能用,格式和全部颜色键见 themes/README.zh-CN.md。Mac、Windows 和 Linux 版都有。

修复

  • Mac 版切换配色后,diff 行号栏里的勾选框和按钮仍是上一个配色的强调色。

Checksums are in SHA256SUMS.txt (macOS), SHA256SUMS-windows.txt (Windows) and SHA256SUMS-linux.txt (Linux).