impr: Made pattern editor resize separator taller
This commit is contained in:
parent
20cb74364f
commit
a29b502a33
@ -419,7 +419,7 @@ namespace hex::plugin::builtin {
|
|||||||
setupGotoLine(editor);
|
setupGotoLine(editor);
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::Button("##settings_drag_bar", ImVec2(ImGui::GetContentRegionAvail().x, 2_scaled));
|
ImGui::Button("##settings_drag_bar", ImVec2(ImGui::GetContentRegionAvail().x, 4_scaled));
|
||||||
if (ImGui::IsMouseDragging(ImGuiMouseButton_Left, 0)) {
|
if (ImGui::IsMouseDragging(ImGuiMouseButton_Left, 0)) {
|
||||||
if (ImGui::IsItemHovered())
|
if (ImGui::IsItemHovered())
|
||||||
dragging = true;
|
dragging = true;
|
||||||
@ -1032,8 +1032,7 @@ namespace hex::plugin::builtin {
|
|||||||
ImGui::OpenPopup("##console_context_menu");
|
ImGui::OpenPopup("##console_context_menu");
|
||||||
m_consoleEditor.ClearRaiseContextMenu();
|
m_consoleEditor.ClearRaiseContextMenu();
|
||||||
}
|
}
|
||||||
if (!m_consoleEditor.HasSelection())
|
|
||||||
m_consoleEditor.SelectWordUnderCursor();
|
|
||||||
const bool hasSelection = m_consoleEditor.HasSelection();
|
const bool hasSelection = m_consoleEditor.HasSelection();
|
||||||
if (ImGui::BeginPopup("##console_context_menu")) {
|
if (ImGui::BeginPopup("##console_context_menu")) {
|
||||||
if (ImGui::MenuItem("hex.builtin.view.hex_editor.menu.edit.copy"_lang, Shortcut(CTRLCMD + Keys::C).toString().c_str(), false, hasSelection)) {
|
if (ImGui::MenuItem("hex.builtin.view.hex_editor.menu.edit.copy"_lang, Shortcut(CTRLCMD + Keys::C).toString().c_str(), false, hasSelection)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user