Better cursors for open and closed hands

This commit is contained in:
Paul Licameli 2020-02-20 13:16:13 -05:00
parent 571f42df79
commit 38bf4f558b
3 changed files with 21 additions and 21 deletions

View File

@ -8,18 +8,18 @@ static const char * const RearrangeCursorXpm[] = {
" ",
" ",
" ",
" ",
" ",
" ",
" ... ",
" .++... ",
" ...++.++... ",
" .++.++.++.++. ",
" .++.++.++.++. ",
" .++.++.++.++. ",
" ...+++++++++++. ",
" .++.+++++++++++. ",
" .++.+++++++++++. ",
" .++.++.++.++. ",
" .++.++.++.++. ",
" .++.++.++.++. ",
" .. .+++++++++++. ",
" .++..+++++++++++. ",
" .++..+++++++++++. ",
" .++.+++++++++++. ",
" .++++++++++++++. ",
" .++++++++++++++. ",

View File

@ -11,18 +11,18 @@ static const char * const RearrangingCursorXpm[] = {
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" .. .. .. ",
" .++.++.++.. ",
" .++++++++++. ",
" ..++++++++++. ",
" .+.+++++++++++. ",
" .+.+++++++++++. ",
" .+++++++++++++. ",
" .+++++++++++++. ",
" ... ",
" .++... ",
" ...++.++... ",
" .++.++.++.++. ",
" .++.++.++.++. ",
" .++.++.++.++. ",
" ...+++++++++++. ",
" .++.+++++++++++. ",
" .++.+++++++++++. ",
" .++.+++++++++++. ",
" .++++++++++++++. ",
" .++++++++++++++. ",
" .+++++++++++++. ",
" .+++++++++++++. ",
" .+++++++++++. ",

View File

@ -147,8 +147,8 @@ HitTestPreview TrackSelectHandle::Preview
static auto disabledCursor =
::MakeCursor(wxCURSOR_NO_ENTRY, DisabledCursorXpm, 16, 16);
//static wxCursor rearrangeCursor{ wxCURSOR_HAND };
static auto rearrangeCursor =
::MakeCursor(wxCURSOR_HAND, RearrangeCursorXpm, 16, 16);
static auto rearrangingCursor =
::MakeCursor(wxCURSOR_HAND, RearrangingCursorXpm, 16, 16);
//static auto hoverCursor =
@ -165,7 +165,7 @@ HitTestPreview TrackSelectHandle::Preview
message,
(unsafe
? &*disabledCursor
: &*rearrangeCursor)
: &*rearrangingCursor)
// , message // Stop showing the tooltip after the click
};
}