Skip to content

Instantly share code, notes, and snippets.

@daryloid
Last active May 14, 2021 06:08
Show Gist options
  • Save daryloid/b01e0cf96a2da69743a8b82013185be8 to your computer and use it in GitHub Desktop.
Save daryloid/b01e0cf96a2da69743a8b82013185be8 to your computer and use it in GitHub Desktop.
Fixes wxmac dark mode

macOS 11.3.1

Edit homebrew formula

vim /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/wxmac.rb

diff --git a/Formula/wxmac.rb b/Formula/wxmac.rb
index 60dd92c233..81703bfb3c 100644
--- a/Formula/wxmac.rb
+++ b/Formula/wxmac.rb
@@ -1,8 +1,8 @@
 class Wxmac < Formula
   desc "Cross-platform C++ GUI toolkit (wxWidgets for macOS)"
   homepage "https://www.wxwidgets.org"
-  url "https://github.com/wxWidgets/wxWidgets/releases/download/v3.0.5.1/wxWidgets-3.0.5.1.tar.bz2"
-  sha256 "440f6e73cf5afb2cbf9af10cec8da6cdd3d3998d527598a53db87099524ac807"
+  url "https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.5/wxWidgets-3.1.5.tar.bz2"
+  sha256 "d7b3666de33aa5c10ea41bb9405c40326e1aeb74ee725bb88f90f1d50270a224"
   license "wxWindows"
   revision 1
   head "https://github.com/wxWidgets/wxWidgets.git"
@@ -40,7 +40,6 @@ class Wxmac < Formula
       "--enable-std_string",
       "--enable-svg",
       "--enable-unicode",
-      "--enable-webkit",
       "--enable-webview",
       "--with-expat",
       "--with-libjpeg",
@@ -49,6 +48,7 @@ class Wxmac < Formula
       "--with-opengl",
       "--with-osx_cocoa",
       "--with-zlib",
+      "--enable-compat28",
       "--disable-precomp-headers",
       # This is the default option, but be explicit
       "--disable-monolithic",   

Build wxmac from source

brew reinstall --build-from-source wxmac

Install erlang

asdf install erlang 23.3.4

Reference: https://www.dairon.org/2020/09/27/fix-erlang-observer-osx-dark-mode.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment