aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2022-03-09 19:18:51 -0500
committerGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2022-03-09 19:18:51 -0500
commit7d88780e89876425df322b1b701c3b6ba5ab963e (patch)
treefd608be84994e66420dd63b8dc75563578c5cbcd
parent937573720058266869cdddf0d6f881ee4f706381 (diff)
Patch gtkosx theme to make pane separators more visible.
-rw-r--r--src/Makefile5
-rw-r--r--src/gtkosx.patch10
2 files changed, 14 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 8d9db720..09ff97c9 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -506,7 +506,10 @@ pdcurses: pdcurses.patch | $(pdcurses_zip)
UTF8=Y libs
mv $@/wincon/pdcurses.a $@
$(gtkosx_tgz): ; $(WGET) $(root_url)/textadept-build/raw/default/$@
-gtkosx: | $(gtkosx_tgz) ; mkdir $@ && tar xzf $| -C $@ && mv $@/*/* $@
+gtkosx: gtkosx.patch | $(gtkosx_tgz)
+ if [ -d $@ ]; then rm -r $@; fi
+ mkdir $@ && tar xzf $| -C $@ && mv $@/*/* $@
+ patch -d $@ -N -p1 < $<
$(cloc_zip): ; $(WGET) https://github.com/AlDanial/cloc/archive/refs/tags/$@
cloc: | $(cloc_zip) ; unzip -j $| "*/$@" -x "*/Unix/$@"
diff --git a/src/gtkosx.patch b/src/gtkosx.patch
new file mode 100644
index 00000000..9eef2e4a
--- /dev/null
+++ b/src/gtkosx.patch
@@ -0,0 +1,10 @@
+--- a/share/themes/macOS/gtk-3.0/gtk.css 2022-03-09 19:11:00.663189381 -0500
++++ b/share/themes/macOS/gtk-3.0/gtk.css 2022-03-09 19:13:11.459060519 -0500
+@@ -958,6 +958,7 @@
+ background-color: #e6e6e6; }
+ paned .sidebar.left, paned .sidebar.right, paned .sidebar.left:dir(rtl), paned .sidebar:dir(rtl), paned .sidebar:dir(ltr), paned .sidebar {
+ border-style: none; }
++paned.horizontal > separator, paned.vertical > separator { min-width: 6px; min-height: 6px; background-color: @theme_bg_color; }
+
+ overshoot.top {
+ background-image: -gtk-gradient(radial, center top, 0.55, center top, 0.6, from(rgba(46, 124, 247, 0.2)), to(transparent));