Make Linux/Mac cursors black again
This makes cursor color conditional on the system default. Some themes in Linux and all Macs are black cursor on white background.
This commit is contained in:
parent
52cc5e2df1
commit
68240821d4
|
@ -0,0 +1,39 @@
|
||||||
|
/* XPM */
|
||||||
|
static const char * cursor_place_black_xpm[] = {
|
||||||
|
"32 32 4 1",
|
||||||
|
" c None",
|
||||||
|
". c #FFFFFF",
|
||||||
|
"+ c #000000",
|
||||||
|
"@ c #008000",
|
||||||
|
". ",
|
||||||
|
".. ",
|
||||||
|
".+. ",
|
||||||
|
".++. ",
|
||||||
|
".+++. ",
|
||||||
|
".++++. ",
|
||||||
|
".+++++. ",
|
||||||
|
".++++++. ",
|
||||||
|
".+++++++. ",
|
||||||
|
".++++++++. ",
|
||||||
|
".+++++++++. ",
|
||||||
|
".++++++..... ",
|
||||||
|
".++++++. ",
|
||||||
|
".++..++. ",
|
||||||
|
".+. .+++. ",
|
||||||
|
".. .++. ",
|
||||||
|
". .+++. ",
|
||||||
|
" .+. ",
|
||||||
|
" .. .. ",
|
||||||
|
" .@@. ",
|
||||||
|
" .@@. ",
|
||||||
|
" ...@@... ",
|
||||||
|
" .@@@@@@@@. ",
|
||||||
|
" .@@@@@@@@. ",
|
||||||
|
" ...@@... ",
|
||||||
|
" .@@. ",
|
||||||
|
" .@@. ",
|
||||||
|
" .. ",
|
||||||
|
" ",
|
||||||
|
" ",
|
||||||
|
" ",
|
||||||
|
" "};
|
|
@ -0,0 +1,38 @@
|
||||||
|
/* XPM */
|
||||||
|
static const char * cursor_select_m_black_xpm[] = {
|
||||||
|
"32 32 3 1",
|
||||||
|
" c None",
|
||||||
|
". c #FFFFFF",
|
||||||
|
"+ c #000000",
|
||||||
|
". ",
|
||||||
|
".. ",
|
||||||
|
".+. ",
|
||||||
|
".++. ",
|
||||||
|
".+++. ",
|
||||||
|
".++++. ",
|
||||||
|
".+++++. ",
|
||||||
|
".++++++. ",
|
||||||
|
".+++++++. ",
|
||||||
|
".++++++++. ",
|
||||||
|
".+++++++++. ",
|
||||||
|
".++++++..... ",
|
||||||
|
".++++++. ",
|
||||||
|
".++..++. ",
|
||||||
|
".+. .+++. ",
|
||||||
|
".. .++. ",
|
||||||
|
". .+++. . ",
|
||||||
|
" .+. .+. ",
|
||||||
|
" .. .+++. ",
|
||||||
|
" .+++++. ",
|
||||||
|
" . ..+.. . ",
|
||||||
|
" .+. .+. .+. ",
|
||||||
|
" .++...+...++. ",
|
||||||
|
" .+++++++++++++. ",
|
||||||
|
" .++...+...++. ",
|
||||||
|
" .+. .+. .+. ",
|
||||||
|
" . ..+.. . ",
|
||||||
|
" .+++++. ",
|
||||||
|
" .+++. ",
|
||||||
|
" .+. ",
|
||||||
|
" . ",
|
||||||
|
" "};
|
|
@ -37,9 +37,7 @@
|
||||||
#include <cursors/cursor-line-wire-add.xpm>
|
#include <cursors/cursor-line-wire-add.xpm>
|
||||||
#include <cursors/cursor-measure.xpm>
|
#include <cursors/cursor-measure.xpm>
|
||||||
#include <cursors/cursor-pencil.xpm>
|
#include <cursors/cursor-pencil.xpm>
|
||||||
#include <cursors/cursor-place.xpm>
|
|
||||||
#include <cursors/cursor-select-lasso.xpm>
|
#include <cursors/cursor-select-lasso.xpm>
|
||||||
#include <cursors/cursor-select-m.xpm>
|
|
||||||
#include <cursors/cursor-select-window.xpm>
|
#include <cursors/cursor-select-window.xpm>
|
||||||
#include <cursors/cursor-subtract.xpm>
|
#include <cursors/cursor-subtract.xpm>
|
||||||
#include <cursors/cursor-text.xpm>
|
#include <cursors/cursor-text.xpm>
|
||||||
|
@ -47,6 +45,15 @@
|
||||||
#include <cursors/cursor-zoom.xpm>
|
#include <cursors/cursor-zoom.xpm>
|
||||||
#include <cursors/cursor-zoom-out.xpm>
|
#include <cursors/cursor-zoom-out.xpm>
|
||||||
|
|
||||||
|
// Under MSW, the standard cursor is white on black. Elsewhere it is black on white
|
||||||
|
#ifdef __WINDOWS__
|
||||||
|
#include <cursors/cursor-place.xpm>
|
||||||
|
#include <cursors/cursor-select-m.xpm>
|
||||||
|
#else
|
||||||
|
#include <cursors/cursor-place-black.xpm>
|
||||||
|
#include <cursors/cursor-select-m-black.xpm>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wx/bitmap.h>
|
#include <wx/bitmap.h>
|
||||||
#include <wx/debug.h>
|
#include <wx/debug.h>
|
||||||
|
|
||||||
|
@ -129,7 +136,11 @@ static const std::vector<CURSOR_STORE::CURSOR_DEF> standard_cursors = {
|
||||||
KICURSOR::MOVING,
|
KICURSOR::MOVING,
|
||||||
nullptr,
|
nullptr,
|
||||||
nullptr,
|
nullptr,
|
||||||
|
#ifdef __WINDOWS__
|
||||||
cursor_select_m_xpm,
|
cursor_select_m_xpm,
|
||||||
|
#else
|
||||||
|
cursor_select_m_black_xpm,
|
||||||
|
#endif
|
||||||
{ 32, 32 },
|
{ 32, 32 },
|
||||||
{ 1, 1 },
|
{ 1, 1 },
|
||||||
},
|
},
|
||||||
|
@ -281,7 +292,11 @@ static const std::vector<CURSOR_STORE::CURSOR_DEF> standard_cursors = {
|
||||||
KICURSOR::PLACE,
|
KICURSOR::PLACE,
|
||||||
nullptr,
|
nullptr,
|
||||||
nullptr,
|
nullptr,
|
||||||
|
#ifdef __WINDOWS__
|
||||||
cursor_place_xpm,
|
cursor_place_xpm,
|
||||||
|
#else
|
||||||
|
cursor_place_black_xpm,
|
||||||
|
#endif
|
||||||
{ 32, 32 },
|
{ 32, 32 },
|
||||||
{ 1, 1 },
|
{ 1, 1 },
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue