From b540d9273c72a01d958b045274b1da6afc4a94b3 Mon Sep 17 00:00:00 2001 From: Joonas Henriksson Date: Tue, 7 Dec 2021 02:07:01 +0200 Subject: [PATCH] xfwm4: Increase resize border width The resize area for windows in xfwm4 only consists of the actual, border area, and not any area outside the decorations like with many other window managers [1]. Due to this, thin decoration borders cause windows resizing to be difficult. Increase border width on Arc decorations from 2px to 4px, which should considerably improve the situation, while still keeping the borders thin enough to fit the Arc design. This also fixes the appearance of the outer border of dark window decorations, where the titlebar has 1px dark border, when it is 2px wide around rest of the window. [1] https://gitlab.xfce.org/xfce/xfwm4/-/issues/176 Fixes: https://github.com/jnsh/arc-theme/issues/63 --- common/xfwm4/dark/assets.svg | 359 +++++++++++++++++++--------------- common/xfwm4/dark/themerc | 2 + common/xfwm4/light/assets.svg | 305 +++++++++++++++-------------- common/xfwm4/light/themerc | 2 + 4 files changed, 359 insertions(+), 309 deletions(-) diff --git a/common/xfwm4/dark/assets.svg b/common/xfwm4/dark/assets.svg index 989aff2b0..cc180205e 100644 --- a/common/xfwm4/dark/assets.svg +++ b/common/xfwm4/dark/assets.svg @@ -2,27 +2,26 @@ + inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)" + sodipodi:docname="assets.svg" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:dc="http://purl.org/dc/elements/1.1/"> + inkscape:swatch="solid"> + inkscape:swatch="solid"> + fit-margin-bottom="10" + inkscape:pagecheckerboard="0"> + transform="rotate(90)" /> + transform="rotate(90)" /> + transform="rotate(90)" /> @@ -319,7 +319,7 @@ transform="translate(22.999996,-1.0000226)" id="g5193-7"> @@ -350,7 +350,7 @@ transform="translate(45.999996,-1.0000226)" id="g5193-3"> @@ -388,7 +388,7 @@ y="0" xlink:href="#title-1-active" id="title-2-active" - transform="translate(6.9999999,-2.6171874e-6)" + transform="translate(6.9999999)" width="100%" height="100%" inkscape:label="#use5296" /> @@ -397,7 +397,7 @@ y="0" xlink:href="#title-1-active" id="title-3-active" - transform="translate(14,-2.6171872e-6)" + transform="translate(14)" width="100%" height="100%" inkscape:label="#use5298" /> @@ -406,7 +406,7 @@ y="0" xlink:href="#title-1-active" id="title-4-active" - transform="translate(21,-2.6171874e-6)" + transform="translate(21)" width="100%" height="100%" inkscape:label="#use5300" /> @@ -415,7 +415,7 @@ y="0" xlink:href="#title-1-active" id="title-5-active" - transform="translate(28,-2.6171874e-6)" + transform="translate(28)" width="100%" height="100%" inkscape:label="#use5302" /> @@ -424,7 +424,7 @@ y="0" xlink:href="#title-1-active" id="title-1-inactive" - transform="translate(35,-2.6171874e-6)" + transform="translate(35)" width="100%" height="100%" inkscape:label="#use5304" /> @@ -433,7 +433,7 @@ y="0" xlink:href="#title-1-active" id="title-2-inactive" - transform="translate(42,-2.6171874e-6)" + transform="translate(42)" width="100%" height="100%" inkscape:label="#use5306" /> @@ -442,7 +442,7 @@ y="0" xlink:href="#title-1-active" id="title-3-inactive" - transform="translate(49,-2.6171874e-6)" + transform="translate(49)" width="100%" height="100%" inkscape:label="#use5308" /> @@ -451,7 +451,7 @@ y="0" xlink:href="#title-1-active" id="title-4-inactive" - transform="translate(56,-2.6171874e-6)" + transform="translate(56)" width="100%" height="100%" inkscape:label="#use5310" /> @@ -460,7 +460,7 @@ y="0" xlink:href="#title-1-active" id="title-5-inactive" - transform="translate(63,-2.6171874e-6)" + transform="translate(63)" width="100%" height="100%" inkscape:label="#use5312" /> @@ -469,17 +469,18 @@ inkscape:label="#g5352"> + inkscape:connector-curvature="0" + transform="translate(0,552.36216)" + sodipodi:nodetypes="ccccccc" /> + style="opacity:1;fill:#21252b;fill-opacity:1;stroke:none;stroke-width:1.73205;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" /> @@ -500,7 +501,7 @@ y="0" xlink:href="#top-left-active" id="top-left-inactive" - transform="translate(4,-2.2617187e-5)" + transform="translate(6,-2.2617187e-5)" width="100%" height="100%" inkscape:label="#use5357" /> @@ -509,7 +510,7 @@ y="0" xlink:href="#top-left-active" id="top-right-active" - transform="matrix(-1,0,0,1,20,-2.2617187e-5)" + transform="matrix(-1,0,0,1,26,-2.2617187e-5)" width="100%" height="100%" inkscape:label="#use5359" /> @@ -518,7 +519,7 @@ y="0" xlink:href="#top-left-active" id="top-right-inactive" - transform="matrix(-1,0,0,1,24,-2.2617187e-5)" + transform="matrix(-1,0,0,1,32,-2.2617187e-5)" width="100%" height="100%" inkscape:label="#use5361" /> @@ -529,7 +530,7 @@ style="opacity:1" id="g4206"> + transform="translate(58)"> @@ -667,17 +668,17 @@ style="display:inline;opacity:1" transform="translate(-781,-432.63782)"> + transform="translate(58)"> @@ -766,17 +767,17 @@ style="display:inline;opacity:1" transform="translate(-882,-432.63782)"> + transform="translate(58)"> @@ -865,17 +866,17 @@ style="display:inline;opacity:1" transform="translate(-678,-432.63782)"> + transform="translate(58)"> @@ -964,18 +965,18 @@ style="display:inline;opacity:1" transform="translate(-781,-432.63782)"> + transform="translate(58)" /> @@ -1026,7 +1027,7 @@ rx="6" ry="6.0000005" /> @@ -1082,7 +1083,7 @@ @@ -1135,7 +1136,7 @@ rx="6" ry="6.0000005" /> @@ -1191,7 +1192,7 @@ @@ -1215,13 +1216,13 @@ style="display:inline;opacity:1" transform="translate(-882,-432.63782)"> + transform="translate(58)"> @@ -1328,18 +1329,18 @@ id="g7146-1-1-6" transform="translate(-781,-415.63782)"> + transform="translate(58)" /> @@ -1383,19 +1384,19 @@ style="display:inline;opacity:1" transform="translate(-781,-432.63782)"> + transform="translate(58)" /> @@ -1500,9 +1501,9 @@ id="layer12-45-6-2-7"> @@ -1547,13 +1548,13 @@ style="display:inline;opacity:1" transform="translate(-882,-432.63782)"> + transform="translate(58)"> @@ -1660,19 +1661,19 @@ id="g7138-0-7-7" transform="translate(-781,-415.63782)"> + transform="translate(58)" /> - - - - - + + + + - + + + - - - - + width="100%" + height="100%" + transform="rotate(-90,55.499989,722.86211)" /> + + + + + + + + + diff --git a/common/xfwm4/dark/themerc b/common/xfwm4/dark/themerc index f7fd498db..7912d0f2d 100644 --- a/common/xfwm4/dark/themerc +++ b/common/xfwm4/dark/themerc @@ -21,3 +21,5 @@ shadow_delta_width=0 shadow_delta_x=0 shadow_delta_y=-5 shadow_opacity=40 + +frame_border_top=4 diff --git a/common/xfwm4/light/assets.svg b/common/xfwm4/light/assets.svg index ba9b13822..bfead16bd 100644 --- a/common/xfwm4/light/assets.svg +++ b/common/xfwm4/light/assets.svg @@ -2,27 +2,26 @@ + inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)" + sodipodi:docname="assets.svg" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:dc="http://purl.org/dc/elements/1.1/"> + inkscape:swatch="solid"> + inkscape:swatch="solid"> + fit-margin-bottom="10" + inkscape:pagecheckerboard="false"> + transform="translate(58)"> @@ -283,9 +283,9 @@ style="display:inline;opacity:1;fill:none;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0" /> + style="color:#bebebe;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:'Andale Mono';-inkscape-font-specification:'Andale Mono';text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-anchor:start;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#f8f8f9;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.78125;marker:none;enable-background:new" /> @@ -319,17 +319,17 @@ style="display:inline;opacity:1" transform="translate(-781,-432.63782)"> + transform="translate(58)"> @@ -387,9 +387,9 @@ style="display:inline;opacity:1;fill:none;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0" /> + style="color:#bebebe;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:'Andale Mono';-inkscape-font-specification:'Andale Mono';text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-anchor:start;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#f8f8f9;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.78125;marker:none;enable-background:new" /> @@ -423,13 +423,13 @@ style="display:inline;opacity:1" transform="translate(-882,-432.63782)"> + transform="translate(58)"> + style="color:#bebebe;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:'Andale Mono';-inkscape-font-specification:'Andale Mono';text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-anchor:start;display:inline;overflow:visible;visibility:visible;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.78125;marker:none;enable-background:new" /> @@ -528,17 +528,17 @@ style="display:inline;opacity:1" transform="translate(-678,-432.63782)"> + transform="translate(58)"> @@ -596,9 +596,9 @@ style="display:inline;opacity:1;fill:none;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0" /> + style="color:#bebebe;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:'Andale Mono';-inkscape-font-specification:'Andale Mono';text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-anchor:start;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#f8f8f9;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.78125;marker:none;enable-background:new" /> @@ -632,18 +632,18 @@ style="display:inline;opacity:1" transform="translate(-781,-432.63782)"> + transform="translate(58)" /> @@ -750,7 +750,7 @@ @@ -796,13 +796,13 @@ style="display:inline;opacity:1" transform="translate(-882,-432.63782)"> + transform="translate(58)"> @@ -909,18 +909,18 @@ id="g7146-1" transform="translate(-781,-415.63782)"> + transform="translate(58)" /> @@ -964,19 +964,19 @@ style="display:inline;opacity:1" transform="translate(-781,-432.63782)"> + transform="translate(58)" /> @@ -1128,13 +1128,13 @@ style="display:inline;opacity:1" transform="translate(-882,-432.63782)"> + transform="translate(58)"> @@ -1241,19 +1241,19 @@ id="g7138-0" transform="translate(-781,-415.63782)"> + transform="translate(58)" /> + transform="rotate(90)" /> + transform="rotate(90)" /> + transform="rotate(90)" /> @@ -1410,7 +1410,7 @@ transform="translate(22.999996,-1.0000226)" id="g5193-7"> @@ -1441,7 +1441,7 @@ transform="translate(45.999996,-1.0000226)" id="g5193-3"> @@ -1479,7 +1479,7 @@ y="0" xlink:href="#title-1-active" id="title-2-active" - transform="translate(6.9999999,-2.6171874e-6)" + transform="translate(6.9999999)" width="100%" height="100%" inkscape:label="#use5296" /> @@ -1488,7 +1488,7 @@ y="0" xlink:href="#title-1-active" id="title-3-active" - transform="translate(14,-2.6171872e-6)" + transform="translate(14)" width="100%" height="100%" inkscape:label="#use5298" /> @@ -1497,7 +1497,7 @@ y="0" xlink:href="#title-1-active" id="title-4-active" - transform="translate(21,-2.6171874e-6)" + transform="translate(21)" width="100%" height="100%" inkscape:label="#use5300" /> @@ -1506,7 +1506,7 @@ y="0" xlink:href="#title-1-active" id="title-5-active" - transform="translate(28,-2.6171874e-6)" + transform="translate(28)" width="100%" height="100%" inkscape:label="#use5302" /> @@ -1515,7 +1515,7 @@ y="0" xlink:href="#title-1-active" id="title-1-inactive" - transform="translate(35,-2.6171874e-6)" + transform="translate(35)" width="100%" height="100%" inkscape:label="#use5304" /> @@ -1524,7 +1524,7 @@ y="0" xlink:href="#title-1-active" id="title-2-inactive" - transform="translate(42,-2.6171874e-6)" + transform="translate(42)" width="100%" height="100%" inkscape:label="#use5306" /> @@ -1533,7 +1533,7 @@ y="0" xlink:href="#title-1-active" id="title-3-inactive" - transform="translate(49,-2.6171874e-6)" + transform="translate(49)" width="100%" height="100%" inkscape:label="#use5308" /> @@ -1542,7 +1542,7 @@ y="0" xlink:href="#title-1-active" id="title-4-inactive" - transform="translate(56,-2.6171874e-6)" + transform="translate(56)" width="100%" height="100%" inkscape:label="#use5310" /> @@ -1551,7 +1551,7 @@ y="0" xlink:href="#title-1-active" id="title-5-inactive" - transform="translate(63,-2.6171874e-6)" + transform="translate(63)" width="100%" height="100%" inkscape:label="#use5312" /> @@ -1561,9 +1561,10 @@ + inkscape:connector-curvature="0" + sodipodi:nodetypes="ccccccc" /> @@ -1593,7 +1594,7 @@ y="0" xlink:href="#top-left-active" id="top-right-active" - transform="matrix(-1,0,0,1,20,-2.2617187e-5)" + transform="matrix(-1,0,0,1,26,-2.2617187e-5)" width="100%" height="100%" inkscape:label="#use5359" /> @@ -1602,83 +1603,87 @@ y="0" xlink:href="#top-left-active" id="top-right-inactive" - transform="matrix(-1,0,0,1,24,-2.2617187e-5)" + transform="matrix(-1,0,0,1,32,-2.2617187e-5)" width="100%" height="100%" inkscape:label="#use5361" /> - - - - - - - - + width="100%" + height="100%" + transform="translate(6)" /> + + + d="m 61,741.36215 v 3 h 1 v 1 h 3 v -4 z" + id="bottom-left-active" + sodipodi:nodetypes="ccccccc" /> + + + + + diff --git a/common/xfwm4/light/themerc b/common/xfwm4/light/themerc index e584d431e..185267822 100644 --- a/common/xfwm4/light/themerc +++ b/common/xfwm4/light/themerc @@ -21,3 +21,5 @@ shadow_delta_width=0 shadow_delta_x=0 shadow_delta_y=-5 shadow_opacity=40 + +frame_border_top=4