Commit 8e47877c authored by Timothée Giet's avatar Timothée Giet
Browse files

update freehand and color_sampler cursors

update freehand and color_sampler cursors

based on cursors proposed by Andrei Rudenko, that I remixed with previous cursors

I'm not sure if the tool_color_sampler_cursor is actually still used,
I see it's loaded in the scratchpad but I didn't find any way to activate it
(right click selects the color but don't change the cursor)
parent 9e9f866f
......@@ -26,7 +26,7 @@
<file>shear_y.xpm</file>
<file>zoom_discrete.xpm</file>
<file>zoom_smooth.xpm</file>
<file>tool_freehand_cursor.png</file>
<file>tool_color_sampler_cursor.png</file>
<file>tool_freehand_cursor.xpm</file>
<file>tool_color_sampler_cursor.xpm</file>
</qresource>
</RCC>
/* XPM */
static char * tool_color_sampler_cursor_xpm[] = {
"32 32 3 1",
" c None",
". c #FFFFFF",
"+ c #000000",
" ",
" ",
" . ",
" .+. ",
" .++. ",
" .+++. .... ",
" .++++. .++++. ",
" .+++++. .++++++. ",
" .++++++. ...+++++++. ",
" .+++++++. .++++++++++. ",
" .+++.... .+++++++++++. ",
" .++. .++++++++++. ",
" .+. .++++++++. ",
" . .+.++++++. ",
" .+...+++++. ",
" .+.....++++. ",
" .+.....+.++. ",
" .+.....+. .. ",
" .+.....+. ",
" .+.....+. ",
" .+.....+. ",
" .+.....+. ",
" .+.....+. ",
" .+....+. ",
" .+...+. ",
" .+++++. ",
" .++... ",
" .. ",
" ",
" ",
" ",
" "};
/* XPM */
static char * tool_freehand_cursor_xpm[] = {
"32 32 3 1",
" c None",
". c #FFFFFF",
"+ c #000000",
" ",
" ",
" . ",
" .+. ",
" .++. ",
" .+++. ",
" .++++. ",
" .+++++. ",
" .++++++. ",
" .+++++++. ",
" .+++.... ",
" .++. ",
" .+. +++++ ",
" . +++.....+ ",
" ... .+ ",
" .+ ",
" .+ ",
" .+ ",
" .+ ",
" .++ ",
" .+ ",
" .++ ",
" .++ ",
" .+ ",
" .+ ",
" .+ ",
" .+++ ",
" ...+++++ ",
" ..... ",
" ",
" ",
" "};
......@@ -101,8 +101,8 @@ KisScratchPad::KisScratchPad(QWidget *parent)
setAutoFillBackground(false);
setMouseTracking(true);
m_cursor = KisCursor::load("tool_freehand_cursor.png", 5, 5);
m_colorSamplerCursor = KisCursor::load("tool_color_sampler_cursor.png", 5, 5);
m_cursor = KisCursor::load("tool_freehand_cursor.xpm", 2, 2);
m_colorSamplerCursor = KisCursor::load("tool_color_sampler_cursor.xpm", 2, 2);
setCursor(m_cursor);
......
......@@ -53,7 +53,7 @@ void KisToolBrush::addSmoothingAction(int enumId, const QString &id)
KisToolBrush::KisToolBrush(KoCanvasBase * canvas)
: KisToolFreehand(canvas,
KisCursor::load("tool_freehand_cursor.png", 5, 5),
KisCursor::load("tool_freehand_cursor.xpm", 2, 2),
kundo2_i18n("Freehand Brush Stroke"))
{
setObjectName("tool_brush");
......
......@@ -35,7 +35,7 @@
KisToolDyna::KisToolDyna(KoCanvasBase * canvas)
: KisToolFreehand(canvas, KisCursor::load("tool_freehand_cursor.png", 5, 5), kundo2_i18n("Dynamic Brush Stroke"))
: KisToolFreehand(canvas, KisCursor::load("tool_freehand_cursor.xpm", 2, 2), kundo2_i18n("Dynamic Brush Stroke"))
{
setObjectName("tool_dyna");
initDyna();
......
......@@ -44,7 +44,7 @@ struct KisToolLazyBrush::Private
KisToolLazyBrush::KisToolLazyBrush(KoCanvasBase * canvas)
: KisToolFreehand(canvas,
KisCursor::load("tool_freehand_cursor.png", 5, 5),
KisCursor::load("tool_freehand_cursor.xpm", 2, 2),
kundo2_i18n("Colorize Mask Key Stroke")),
m_d(new Private)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment