mirror of
https://github.com/hyprwm/hyprpicker.git
synced 2024-12-22 22:29:49 +01:00
parent
ef6009f71c
commit
fe4535a273
1 changed files with 5 additions and 6 deletions
|
@ -164,8 +164,8 @@ void Events::handlePointerButton(void *data, struct wl_pointer *wl_pointer, uint
|
||||||
Debug::log(NONE, "%g%% %g%% %g%% %g%%", c, m, y, k);
|
Debug::log(NONE, "%g%% %g%% %g%% %g%%", c, m, y, k);
|
||||||
|
|
||||||
if (g_pHyprpicker->m_bAutoCopy)
|
if (g_pHyprpicker->m_bAutoCopy)
|
||||||
g_pHyprpicker->finish();
|
|
||||||
Clipboard::copy("%g%% %g%% %g%% %g%%", c, m, y, k);
|
Clipboard::copy("%g%% %g%% %g%% %g%%", c, m, y, k);
|
||||||
|
g_pHyprpicker->finish();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case OUTPUT_HEX:
|
case OUTPUT_HEX:
|
||||||
|
@ -187,8 +187,8 @@ void Events::handlePointerButton(void *data, struct wl_pointer *wl_pointer, uint
|
||||||
Debug::log(NONE, "#%s%s%s", toHex(COL.r).c_str(), toHex(COL.g).c_str(), toHex(COL.b).c_str());
|
Debug::log(NONE, "#%s%s%s", toHex(COL.r).c_str(), toHex(COL.g).c_str(), toHex(COL.b).c_str());
|
||||||
|
|
||||||
if (g_pHyprpicker->m_bAutoCopy)
|
if (g_pHyprpicker->m_bAutoCopy)
|
||||||
g_pHyprpicker->finish();
|
|
||||||
Clipboard::copy("#%s%s%s", toHex(COL.r).c_str(), toHex(COL.g).c_str(), toHex(COL.b).c_str());
|
Clipboard::copy("#%s%s%s", toHex(COL.r).c_str(), toHex(COL.g).c_str(), toHex(COL.b).c_str());
|
||||||
|
g_pHyprpicker->finish();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case OUTPUT_RGB:
|
case OUTPUT_RGB:
|
||||||
|
@ -199,8 +199,8 @@ void Events::handlePointerButton(void *data, struct wl_pointer *wl_pointer, uint
|
||||||
Debug::log(NONE, "%i %i %i", COL.r, COL.g, COL.b);
|
Debug::log(NONE, "%i %i %i", COL.r, COL.g, COL.b);
|
||||||
|
|
||||||
if (g_pHyprpicker->m_bAutoCopy)
|
if (g_pHyprpicker->m_bAutoCopy)
|
||||||
g_pHyprpicker->finish();
|
|
||||||
Clipboard::copy("%i %i %i", COL.r, COL.g, COL.b);
|
Clipboard::copy("%i %i %i", COL.r, COL.g, COL.b);
|
||||||
|
g_pHyprpicker->finish();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case OUTPUT_HSL:
|
case OUTPUT_HSL:
|
||||||
|
@ -250,13 +250,12 @@ void Events::handlePointerButton(void *data, struct wl_pointer *wl_pointer, uint
|
||||||
Debug::log(NONE, "%g %g%% %g%%", h, s, l_or_v);
|
Debug::log(NONE, "%g %g%% %g%%", h, s, l_or_v);
|
||||||
|
|
||||||
if (g_pHyprpicker->m_bAutoCopy)
|
if (g_pHyprpicker->m_bAutoCopy)
|
||||||
g_pHyprpicker->finish();
|
|
||||||
Clipboard::copy("%g %g%% %g%%", h, s, l_or_v);
|
Clipboard::copy("%g %g%% %g%%", h, s, l_or_v);
|
||||||
|
g_pHyprpicker->finish();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!g_pHyprpicker->m_bAutoCopy)
|
|
||||||
g_pHyprpicker->finish();
|
g_pHyprpicker->finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue