🔧 Linear cursor transations

This commit is contained in:
ful1e5 2021-02-02 17:19:11 +05:30
parent d035d0cc65
commit e71b23738f
2 changed files with 37 additions and 37 deletions

View file

@ -10,7 +10,7 @@ AUTHOR = "Kaiz Khatri"
URL = "https://github.com/ful1e5/apple_cursor" URL = "https://github.com/ful1e5/apple_cursor"
# XCursor # XCursor
X_DELAY: int = 10 X_DELAY: int = 5
X_SIZES: List[Tuple[int, int]] = [ X_SIZES: List[Tuple[int, int]] = [
(22, 22), (22, 22),
(24, 24), (24, 24),
@ -39,51 +39,51 @@ X_CURSORS_CFG: Dict[str, Dict[str, int]] = {
"all-scroll.png": {"xhot": 100, "yhot": 100}, "all-scroll.png": {"xhot": 100, "yhot": 100},
"bottom_left_corner.png": {"xhot": 100, "yhot": 100}, "bottom_left_corner.png": {"xhot": 100, "yhot": 100},
"bottom_right_corner.png": {"xhot": 100, "yhot": 100}, "bottom_right_corner.png": {"xhot": 100, "yhot": 100},
"bottom_tee.png": {"xhot": 141, "yhot": 99}, "bottom_tee.png": {"xhot": 98, "yhot": 137},
"center_ptr.png": {"xhot": 61, "yhot": 100}, "center_ptr.png": {"xhot": 100, "yhot": 70},
"crossed_circle.png": {"xhot": 47, "yhot": 39}, "context-menu.png": {"xhot": 43, "yhot": 61},
"dnd_no_drop.png": {"xhot": 47, "yhot": 39}, "copy.png": {"xhot": 67, "yhot": 46},
"context-menu.png": {"xhot": 61, "yhot": 58},
"copy.png": {"xhot": 47, "yhot": 39},
"cross.png": {"xhot": 100, "yhot": 100}, "cross.png": {"xhot": 100, "yhot": 100},
"crossed_circle.png": {"xhot": 67, "yhot": 46},
"crosshair.png": {"xhot": 100, "yhot": 100}, "crosshair.png": {"xhot": 100, "yhot": 100},
"dnd_no_drop.png": {"xhot": 100, "yhot": 100},
"dotbox.png": {"xhot": 100, "yhot": 100}, "dotbox.png": {"xhot": 100, "yhot": 100},
"hand1.png": {"xhot": 94, "yhot": 105}, "hand1.png": {"xhot": 94, "yhot": 72},
"hand2.png": {"xhot": 66, "yhot": 34}, "hand2.png": {"xhot": 67, "yhot": 46},
"left_ptr.png": {"xhot": 68, "yhot": 41}, "left_ptr.png": {"xhot": 69, "yhot": 56},
"left_side.png": {"xhot": 100, "yhot": 100}, "left_side.png": {"xhot": 100, "yhot": 100},
"left_tee.png": {"xhot": 100, "yhot": 58}, "left_tee.png": {"xhot": 100, "yhot": 100},
"link.png": {"xhot": 61, "yhot": 105}, "link.png": {"xhot": 120, "yhot": 55},
"ll_angle.png": {"xhot": 141, "yhot": 58}, "ll_angle.png": {"xhot": 100, "yhot": 100},
"lr_angle.png": {"xhot": 141, "yhot": 138}, "lr_angle.png": {"xhot": 100, "yhot": 100},
"move.png": {"xhot": 80, "yhot": 106}, "move.png": {"xhot": 80, "yhot": 71},
"pencil.png": {"xhot": 141, "yhot": 58}, "pencil.png": {"xhot": 81, "yhot": 117},
"plus.png": {"xhot": 100, "yhot": 100}, "plus.png": {"xhot": 98, "yhot": 100},
"question_arrow.png": {"xhot": 105, "yhot": 105}, "question_arrow.png": {"xhot": 99, "yhot": 99},
"right_ptr.png": {"xhot": 61, "yhot": 138}, "right_ptr.png": {"xhot": 136, "yhot": 66},
"right_tee.png": {"xhot": 100, "yhot": 138}, "right_tee.png": {"xhot": 98, "yhot": 99},
"sb_down_arrow.png": {"xhot": 133, "yhot": 99}, "sb_down_arrow.png": {"xhot": 100, "yhot": 100},
"sb_h_double_arrow.png": {"xhot": 100, "yhot": 100}, "sb_h_double_arrow.png": {"xhot": 100, "yhot": 100},
"sb_left_arrow.png": {"xhot": 100, "yhot": 68}, "sb_left_arrow.png": {"xhot": 100, "yhot": 100},
"sb_right_arrow.png": {"xhot": 100, "yhot": 138}, "sb_right_arrow.png": {"xhot": 100, "yhot": 100},
"sb_up_arrow.png": {"xhot": 68, "yhot": 99}, "sb_up_arrow.png": {"xhot": 100, "yhot": 100},
"sb_v_double_arrow.png": {"xhot": 100, "yhot": 100}, "sb_v_double_arrow.png": {"xhot": 100, "yhot": 100},
"top_side.png": {"xhot": 100, "yhot": 100}, "top_side.png": {"xhot": 100, "yhot": 100},
"top_tee.png": {"xhot": 61, "yhot": 99}, "top_tee.png": {"xhot": 100, "yhot": 100},
"ul_angle.png": {"xhot": 61, "yhot": 65}, "ul_angle.png": {"xhot": 100, "yhot": 100},
"ur_angle.png": {"xhot": 61, "yhot": 138}, "ur_angle.png": {"xhot": 100, "yhot": 100},
"vertical-text.png": {"xhot": 100, "yhot": 102}, "vertical-text.png": {"xhot": 96, "yhot": 99},
"wayland-cursor.png": {"xhot": 100, "yhot": 100}, "wayland-cursor.png": {"xhot": 100, "yhot": 100},
"X_cursor.png": {"xhot": 100, "yhot": 100}, "X_cursor.png": {"xhot": 100, "yhot": 100},
"xterm.png": {"xhot": 97, "yhot": 97}, "xterm.png": {"xhot": 100, "yhot": 104},
"zoom-in.png": {"xhot": 76, "yhot": 78}, "zoom-in.png": {"xhot": 100, "yhot": 100},
"zoom-out.png": {"xhot": 76, "yhot": 78}, "zoom-out.png": {"xhot": 100, "yhot": 100},
# #
# Animated # Animated
# #
# Note: Animated cursors not need any extension & frames number # Note: Animated cursors not need any extension & frames number
"wait": {"xhot": 104, "yhot": 105}, "wait": {"xhot": 100, "yhot": 100},
"left_ptr_watch": {"xhot": 104, "yhot": 105}, "left_ptr_watch": {"xhot": 67, "yhot": 46},
} }
WIN_CURSORS_CFG: Dict[str, Dict[str, str]] = { WIN_CURSORS_CFG: Dict[str, Dict[str, str]] = {

View file

@ -1,10 +1,10 @@
<svg width="200" height="200" viewBox="0 0 200 200" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="200" height="200" viewBox="0 0 200 200" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M58 160V20L159 121.571H99.9127L96.3314 122.655L58 160Z" <path fill-rule="evenodd" clip-rule="evenodd" d="M51 147V7L152 108.571H92.9127L89.3314 109.655L51 147Z"
fill="white" /> fill="white" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M136 165.644L104.679 179L64 82.5129L96.0251 69L136 165.644Z" <path fill-rule="evenodd" clip-rule="evenodd" d="M129 152.644L97.6787 166L57 69.5129L89.0251 56L129 152.644Z"
fill="white" /> fill="white" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M125 159.256L108.589 166L81 101.752L97.3843 95L125 159.256Z" <path fill-rule="evenodd" clip-rule="evenodd" d="M118 146.256L101.589 153L74 88.7524L90.3843 82L118 146.256Z"
fill="black" /> fill="black" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M66 41V138L91.8174 113.152L95.5391 111.947H137L66 41Z" <path fill-rule="evenodd" clip-rule="evenodd" d="M59 28V125L84.8174 100.152L88.5391 98.9466H130L59 28Z"
fill="black" /> fill="black" />
</svg> </svg>

Before

Width:  |  Height:  |  Size: 647 B

After

Width:  |  Height:  |  Size: 646 B

Before After
Before After