From 6057a2d907a2e3014ae9e268e1aed8dc819a55c8 Mon Sep 17 00:00:00 2001 From: Andrew Chadwick Date: Wed, 30 Aug 2017 00:16:16 +0100 Subject: [PATCH] Xfwm4: improve accessibility (wider bottom edge) Since Xfwm have never expressed much interest in virtual resize grips extending away from the window area, and need to support non- composited configurations anyway, this usability fix is needed in Numix. Single-pixel borders are not enough. This commit adds a 5px bottom border and big corner resize grips to Xfwm allow windows to be resized more easily. This improves matters significantly for tablet and mouse/touchpad users. The corner resize grips are from NeXTSTEP, or more accurately its clones on Linux such as Window Maker. The bottom border as a whole is styled to match the rest of the theme. Closes numixproject/numix-gtk-theme#100. --- src/xfwm4/bottom-active.xpm | 11 ++++++++--- src/xfwm4/bottom-inactive.xpm | 11 ++++++++--- src/xfwm4/bottom-left-active.xpm | 11 ++++++++--- src/xfwm4/bottom-left-inactive.xpm | 11 ++++++++--- src/xfwm4/bottom-right-active.xpm | 11 ++++++++--- src/xfwm4/bottom-right-inactive.xpm | 11 ++++++++--- 6 files changed, 48 insertions(+), 18 deletions(-) diff --git a/src/xfwm4/bottom-active.xpm b/src/xfwm4/bottom-active.xpm index 773d2df..9497d62 100644 --- a/src/xfwm4/bottom-active.xpm +++ b/src/xfwm4/bottom-active.xpm @@ -1,6 +1,11 @@ /* XPM */ static char * bottom_active_xpm[] = { -"8 1 2 1", +"8 5 3 1", " c None", -". c #484848", -"........"}; +". c #444444", +"# c #484848", +"........", +"........", +"........", +"........", +"########"}; diff --git a/src/xfwm4/bottom-inactive.xpm b/src/xfwm4/bottom-inactive.xpm index 7c2fda7..e108e20 100644 --- a/src/xfwm4/bottom-inactive.xpm +++ b/src/xfwm4/bottom-inactive.xpm @@ -1,6 +1,11 @@ /* XPM */ static char * bottom_inactive_xpm[] = { -"8 1 2 1", +"8 5 3 1", " c None", -". c #393939", -"........"}; +". c #444444", +"# c #393939", +"........", +"........", +"........", +"........", +"########"}; diff --git a/src/xfwm4/bottom-left-active.xpm b/src/xfwm4/bottom-left-active.xpm index 46fde54..22fc38e 100644 --- a/src/xfwm4/bottom-left-active.xpm +++ b/src/xfwm4/bottom-left-active.xpm @@ -1,6 +1,11 @@ /* XPM */ static char * bottom_left_active_xpm[] = { -"1 1 2 1", +"24 5 3 1", " c None", -". c #484848", -"."}; +". c #444444", +"# c #484848", +"#.......................", +"#.......................", +"#.......................", +"#.......................", +"########################"}; diff --git a/src/xfwm4/bottom-left-inactive.xpm b/src/xfwm4/bottom-left-inactive.xpm index 1984979..2e039b4 100644 --- a/src/xfwm4/bottom-left-inactive.xpm +++ b/src/xfwm4/bottom-left-inactive.xpm @@ -1,6 +1,11 @@ /* XPM */ static char * bottom_left_inactive_xpm[] = { -"1 1 2 1", +"24 5 3 1", " c None", -". c #393939", -"."}; +". c #444444", +"# c #393939", +"#.......................", +"#.......................", +"#.......................", +"#.......................", +"########################"}; diff --git a/src/xfwm4/bottom-right-active.xpm b/src/xfwm4/bottom-right-active.xpm index 2ef97a5..30aeb3c 100644 --- a/src/xfwm4/bottom-right-active.xpm +++ b/src/xfwm4/bottom-right-active.xpm @@ -1,6 +1,11 @@ /* XPM */ static char * bottom_right_active_xpm[] = { -"1 1 2 1", +"24 5 3 1", " c None", -". c #484848", -"."}; +". c #444444", +"# c #484848", +".......................#", +".......................#", +".......................#", +".......................#", +"########################"}; diff --git a/src/xfwm4/bottom-right-inactive.xpm b/src/xfwm4/bottom-right-inactive.xpm index 7357440..50809f4 100644 --- a/src/xfwm4/bottom-right-inactive.xpm +++ b/src/xfwm4/bottom-right-inactive.xpm @@ -1,6 +1,11 @@ /* XPM */ static char * bottom_right_inactive_xpm[] = { -"1 1 2 1", +"24 5 3 1", " c None", -". c #393939", -"."}; +". c #444444", +"# c #393939", +".......................#", +".......................#", +".......................#", +".......................#", +"########################"};