summaryrefslogtreecommitdiffstats
path: root/source/xfce/Greybird
diff options
context:
space:
mode:
Diffstat (limited to 'source/xfce/Greybird')
-rw-r--r--source/xfce/Greybird/0001-Make-CSD-titlebars-slimmer.patch115
-rw-r--r--source/xfce/Greybird/0002-Reduce-messagedialog-buttonbox-size.patch61
-rwxr-xr-xsource/xfce/Greybird/Greybird.SlackBuild5
3 files changed, 180 insertions, 1 deletions
diff --git a/source/xfce/Greybird/0001-Make-CSD-titlebars-slimmer.patch b/source/xfce/Greybird/0001-Make-CSD-titlebars-slimmer.patch
new file mode 100644
index 000000000..ec5b54d27
--- /dev/null
+++ b/source/xfce/Greybird/0001-Make-CSD-titlebars-slimmer.patch
@@ -0,0 +1,115 @@
+From d6a43f7c080487bdde8157c767023a1f8d76a240 Mon Sep 17 00:00:00 2001
+From: Maurizio Galli <maurizio.galli@gmail.com>
+Date: Thu, 17 Dec 2020 03:28:42 +0800
+Subject: [PATCH 1/2] Make CSD titlebars slimmer
+
+---
+ light/gtk-3.0/_common.scss | 56 ++++++++++++++++++++++++++++----------
+ 1 file changed, 41 insertions(+), 15 deletions(-)
+
+diff --git a/light/gtk-3.0/_common.scss b/light/gtk-3.0/_common.scss
+index ad5f199..fdf1aa0 100644
+--- a/light/gtk-3.0/_common.scss
++++ b/light/gtk-3.0/_common.scss
+@@ -1419,7 +1419,7 @@ searchbar,
+ %titlebar,
+ headerbar {
+ padding: 0 5px;
+- min-height: 38px;
++ min-height: 32px;
+ border-width: 0 0 1px;
+ border-style: solid;
+ border-color: $borders_color;
+@@ -1586,13 +1586,13 @@ headerbar {
+ }
+
+ &.default-decoration {
+- min-height: 28px;
++ min-height: 24px;
+ padding: 4px;
+
+ button.titlebutton,
+ menubutton.titlebutton {
+- min-height: 26px;
+- min-width: 26px;
++ min-height: 22px;
++ min-width: 22px;
+ margin: 0;
+ padding: 0;
+ }
+@@ -1621,35 +1621,61 @@ headerbar {
+ headerbar {
+ // add vertical margins to common widget on the headerbar to avoid them spanning the whole height
+ entry,
+- spinbutton,
+- separator,
+- button {
++ separator {
+ margin-top: 3px;
+ margin-bottom: 3px;
+ }
++ spinbutton,
++ button {
++ margin-top: 2px;
++ margin-bottom: 2px;
++ padding-top: 0;
++ padding-bottom: 0;
++ }
+ button label {
+ min-width: 28px;
+- min-height: 28px;
++ min-height: 22px;
+ }
+ button.titlebutton image {
+ min-width: 22px;
+ min-height: 22px;
+ }
+ button:not(.image-button):not(.titlebutton) image {
+- min-width: 28px;
+- min-height: 28px;
++ min-width: 22px;
++ min-height: 22px;
+ }
+ button.image-button {
+- min-width: 28px;
+- min-height: 28px;
++ min-width: 22px;
++ min-height: 22px;
+ padding-left: 2px;
+ padding-right: 2px;
+ }
++ .stack-switcher button {
++ min-width: 26px;
++ min-height: 26px;
++ &:not(.text-button) {
++ min-height: 22px;
++ min-width: 22px;
++ padding-left: 0px;
++ padding-right: 0px;
++ }
++ }
++ buttonbox {
++ padding: 0px;
++ button {
++ min-width: 26px;
++ min-height: 26px;
++ &:not(.text-button) {
++ min-width: 22px;
++ padding-left: 0px;
++ padding-right: 0px;
++ }
++ }
++ }
+ switch {
+- margin-top: 9px;
+- margin-bottom: 9px;
++ margin-top: 5px;
++ margin-bottom: 5px;
+ }
+- buttonbox { padding: 0px; }
+ }
+
+ .background:not(.tiled):not(.maximized):not(.solid-csd) .titlebar,
+--
+2.29.2
+
diff --git a/source/xfce/Greybird/0002-Reduce-messagedialog-buttonbox-size.patch b/source/xfce/Greybird/0002-Reduce-messagedialog-buttonbox-size.patch
new file mode 100644
index 000000000..6f495cd4c
--- /dev/null
+++ b/source/xfce/Greybird/0002-Reduce-messagedialog-buttonbox-size.patch
@@ -0,0 +1,61 @@
+From ede9f55e3f2ea64248f01801c394e70e85a8f824 Mon Sep 17 00:00:00 2001
+From: Simon Steinbeiss <simon.steinbeiss@elfenbeinturm.at>
+Date: Fri, 18 Dec 2020 00:33:05 +0100
+Subject: [PATCH 2/2] Reduce messagedialog buttonbox size
+
+---
+ light/gtk-3.0/_common.scss | 36 +++++++++++++++++-------------------
+ 1 file changed, 17 insertions(+), 19 deletions(-)
+
+diff --git a/light/gtk-3.0/_common.scss b/light/gtk-3.0/_common.scss
+index fdf1aa0..a75c10b 100644
+--- a/light/gtk-3.0/_common.scss
++++ b/light/gtk-3.0/_common.scss
+@@ -3776,27 +3776,25 @@ messagedialog { // Message Dialog styling
+ border-bottom-right-radius: 9px;
+ }
+
+- buttonbox {
++ .dialog-action-area {
+ padding: 0px;
+- button { padding: 6px; }
+- }
+-
+- .dialog-action-area button {
+- padding: 10px 14px; // labels are not vertically centered on message dialog, this is a workaround
+- border-radius: 0;
+- border-left-style: solid;
+- border-right-style: none;
+- border-bottom-style: none;
+-
+- &:first-child{
+- border-left-style: none;
+- border-bottom-left-radius: 7px;
+- -gtk-outline-bottom-left-radius: 5px;
+- }
++ button {
++ padding: 3px;
++ border-radius: 0px;
++ border-left-style: solid;
++ border-right-style: none;
++ border-bottom-style: none;
++
++ &:first-child{
++ border-left-style: none;
++ border-bottom-left-radius: 7px;
++ -gtk-outline-bottom-left-radius: 5px;
++ }
+
+- &:last-child {
+- border-bottom-right-radius: 7px;
+- -gtk-outline-bottom-right-radius: 5px;
++ &:last-child {
++ border-bottom-right-radius: 7px;
++ -gtk-outline-bottom-right-radius: 5px;
++ }
+ }
+ }
+ }
+--
+2.29.2
+
diff --git a/source/xfce/Greybird/Greybird.SlackBuild b/source/xfce/Greybird/Greybird.SlackBuild
index 939cbb209..e8e82aa0d 100755
--- a/source/xfce/Greybird/Greybird.SlackBuild
+++ b/source/xfce/Greybird/Greybird.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=Greybird
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@@ -76,6 +76,9 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+
+zcat $CWD/0001-Make-CSD-titlebars-slimmer.patch.gz | patch -p1 --verbose || exit 1
+zcat $CWD/0002-Reduce-messagedialog-buttonbox-size.patch.gz | patch -p1 --verbose || exit 1
+
# Configure, build, and install:
export CFLAGS="$SLKCFLAGS"
export CXXFLAGS="$SLKCFLAGS"