Skip to content

Instantly share code, notes, and snippets.

View maximbaz's full-sized avatar

Maxim Baz maximbaz

View GitHub Profile
@maximbaz
maximbaz / Wire Desktop — Dark theme overrides.md
Last active January 17, 2019 15:52
Wire Desktop — Dark theme overrides

This only works if Wire was built with disabled ASAR packaging (see #335 and #147). Right now only Linux app is being built in this way, so if you are on Linux, you can proceed with the steps below, if not — adapt Gruntfile.js, set asar: false and compile Wire from sources.

Let's suppose Wire is installed in $INSTALLDIR, on my Linux it is /usr/lib/wire-desktop/.

  1. Create a new file $INSTALLDIR/css/dark-theme.css with the contents below.

  2. Open in text editor $INSTALLDIR/dist/main.js, and after line 321: case 'webview': add this:

    contents.on('dom-ready', () => {
    

contents.insertCSS(fs.readFileSync(path.join(APP_PATH, 'css', 'dark-theme.css'), 'utf8'))

Keybase proof

I hereby claim:

  • I am maximbaz on github.
  • I am maximbaz (https://keybase.io/maximbaz) on keybase.
  • I have a public key whose fingerprint is 56C3 E775 E72B 0C8B 1C0C 1BD0 B5DB 7740 9B11 B601

To claim this, I am signing this object: