From e62aafcecf8b38cdb4864396b5858b4cdaca4496 Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+ful1e5@users.noreply.github.com> Date: Fri, 11 Jun 2021 16:28:48 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=97=20Implememnt=20KDE=20Breeze=20curs?= =?UTF-8?q?ors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- builder/bxbuild/constants.py | 2 ++ builder/bxbuild/symlinks.py | 49 +++++++++++++++++------------------- 2 files changed, 25 insertions(+), 26 deletions(-) diff --git a/builder/bxbuild/constants.py b/builder/bxbuild/constants.py index 0c696c3..c8fc80c 100644 --- a/builder/bxbuild/constants.py +++ b/builder/bxbuild/constants.py @@ -14,6 +14,8 @@ X_DELAY: int = 10 # Windows Cursor WIN_DELAY = 1 + +# TODO: add coordinates X_CURSORS_CFG: Dict[str, Dict[str, int]] = { ########## # Static # diff --git a/builder/bxbuild/symlinks.py b/builder/bxbuild/symlinks.py index e7a7ba5..539a3b6 100644 --- a/builder/bxbuild/symlinks.py +++ b/builder/bxbuild/symlinks.py @@ -20,28 +20,12 @@ def add_missing_xcursor(directory) -> None: "src": "bd_double_arrow", "links": [ "c7088f0f3e6c8088236ef8e1e3e70000", + "nw-resize", "nwse-resize", "size_fdiag", - ], - }, - { - "src": "bottom_left_corner", - "links": [ - "sw-resize", - ], - }, - { - "src": "bottom_right_corner", - "links": [ "se-resize", ], }, - { - "src": "bottom_side", - "links": [ - "s-resize", - ], - }, { "src": "copy", "links": [ @@ -64,17 +48,29 @@ def add_missing_xcursor(directory) -> None: { "src": "crossed_circle", "links": [ - "circle", - "03b6e0fcb3499374a867c041f52298f0", "forbidden", "not-allowed", ], }, - {"src": "dnd_no_drop", "links": ["no-drop"]}, + { + "src": "dnd_no_drop", + "links": [ + "03b6e0fcb3499374a867c041f52298f0", + "circle", + "dnd-no-drop", + "no-drop", + ], + }, {"src": "dotbox", "links": ["dot_box_mask", "draped_box", "icon", "target"]}, { "src": "fd_double_arrow", - "links": ["fcf1c3c7cd4491d801f1e1c78f100000", "nesw-resize", "size_bdiag"], + "links": [ + "fcf1c3c7cd4491d801f1e1c78f100000", + "ne-resize", + "nesw-resize", + "sw-resize", + "size_bdiag", + ], }, {"src": "hand1", "links": ["grab", "openhand"]}, { @@ -102,7 +98,7 @@ def add_missing_xcursor(directory) -> None: "progress", ], }, - {"src": "left_side", "links": ["w-resize"]}, + {"src": "left_side", "links": []}, { "src": "link", "links": [ @@ -140,7 +136,6 @@ def add_missing_xcursor(directory) -> None: ], }, {"src": "right_ptr", "links": ["draft_large", "draft_small"]}, # required - {"src": "right_side", "links": ["e-resize"]}, {"src": "sb_down_arrow", "links": ["down-arrow"]}, { "src": "sb_h_double_arrow", @@ -148,11 +143,13 @@ def add_missing_xcursor(directory) -> None: "028006030e0e7ebffc7f7070c0600140", "14fef782d02440884392942c1120523", "col-resize", + "e-resize", "ew-resize", "h_double_arrow", "size-hor", "size_hor", "split_h", + "w-resize", ], }, {"src": "sb_left_arrow", "links": ["left-arrow"]}, @@ -164,17 +161,17 @@ def add_missing_xcursor(directory) -> None: "00008160000006810000408080010102", "2870a09082c103050810ffdffffe0204", "double_arrow", + "n-resize", "ns-resize", "row-resize", "size-ver", "size_ver", + "s-resize", "split_v", "v_double_arrow", ], }, - {"src": "top_left_corner", "links": ["nw-resize"]}, - {"src": "top_right_corner", "links": ["ne-resize"]}, - {"src": "top_side", "links": ["n-resize"]}, + # TODO remove empty {"src": "wait", "links": ["watch"]}, {"src": "X_cursor", "links": ["x-cursor"]}, {"src": "xterm", "links": ["ibeam", "text"]},