mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-14 19:59:59 +01:00
Rename 'alternative' to 'snap cursor, with ALT or option key (OSX)
This commit is contained in:
@@ -4678,7 +4678,7 @@ void Navigator::RenderMousePointerSelector(const ImVec2 &size)
|
|||||||
ImVec2 bottom = ImGui::GetCursorScreenPos();
|
ImVec2 bottom = ImGui::GetCursorScreenPos();
|
||||||
|
|
||||||
if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) {
|
if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) {
|
||||||
ImGuiToolkit::ToolTip("Alternative cursor", "ALT");
|
ImGuiToolkit::ToolTip("Snap cursor", ALT_MOD);
|
||||||
counter_menu_timeout=0;
|
counter_menu_timeout=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4734,10 +4734,10 @@ void Navigator::RenderMousePointerSelector(const ImVec2 &size)
|
|||||||
ImGui::SetCursorPosY(margin.y);
|
ImGui::SetCursorPosY(margin.y);
|
||||||
ImGui::TextDisabled(" |");
|
ImGui::TextDisabled(" |");
|
||||||
ImGui::SameLine(0, IMGUI_SAME_LINE);
|
ImGui::SameLine(0, IMGUI_SAME_LINE);
|
||||||
ImGuiToolkit::ButtonToggle(Settings::application.mouse_pointer_lock ? ICON_FA_LOCK " ALT LOCK" : ICON_FA_UNLOCK " ALT LOCK",
|
ImGuiToolkit::ButtonToggle(Settings::application.mouse_pointer_lock ? ICON_FA_LOCK ALT_LOCK : ICON_FA_UNLOCK ALT_LOCK,
|
||||||
&Settings::application.mouse_pointer_lock,
|
&Settings::application.mouse_pointer_lock,
|
||||||
"Activate the selected alternative mouse pointer by pressing the ALT key.\n\n"
|
"Activate the selected snap mouse pointer by pressing the [" ALT_MOD "] key.\n\n"
|
||||||
ICON_FA_LOCK " ALT LOCK keeps the alternative mouse pointer active.");
|
ICON_FA_LOCK ALT_LOCK " keeps the snap mouse pointer active.");
|
||||||
ImGui::PopFont();
|
ImGui::PopFont();
|
||||||
|
|
||||||
// timer to close menu like a tooltip
|
// timer to close menu like a tooltip
|
||||||
|
|||||||
@@ -132,10 +132,12 @@
|
|||||||
|
|
||||||
#ifdef APPLE
|
#ifdef APPLE
|
||||||
#define CTRL_MOD "Cmd+"
|
#define CTRL_MOD "Cmd+"
|
||||||
#define ALT_MOD "Option+"
|
#define ALT_MOD "option"
|
||||||
|
#define ALT_LOCK " OPT LOCK"
|
||||||
#else
|
#else
|
||||||
#define CTRL_MOD "Ctrl+"
|
#define CTRL_MOD "Ctrl+"
|
||||||
#define ALT_MOD "Alt+"
|
#define ALT_MOD "Alt"
|
||||||
|
#define ALT_LOCK " ALT LOCK"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MENU_NEW_FILE ICON_FA_FILE " New"
|
#define MENU_NEW_FILE ICON_FA_FILE " New"
|
||||||
|
|||||||
Reference in New Issue
Block a user