impr: Make icon context menu use MenuItemEx for its icons
This commit is contained in:
parent
07e29f2030
commit
721de39dbb
@ -399,18 +399,18 @@ namespace hex::plugin::builtin {
|
||||
bool maximized = glfwGetWindowAttrib(window, GLFW_MAXIMIZED);
|
||||
|
||||
ImGui::BeginDisabled(!maximized);
|
||||
if (ImGui::MenuItem(ICON_VS_CHROME_RESTORE " Restore")) glfwRestoreWindow(window);
|
||||
if (ImGui::MenuItemEx("Restore", ICON_VS_CHROME_RESTORE)) glfwRestoreWindow(window);
|
||||
ImGui::EndDisabled();
|
||||
|
||||
if (ImGui::MenuItem(ICON_VS_CHROME_MINIMIZE " Minimize")) glfwIconifyWindow(window);
|
||||
if (ImGui::MenuItemEx("Minimize", ICON_VS_CHROME_MINIMIZE)) glfwIconifyWindow(window);
|
||||
|
||||
ImGui::BeginDisabled(maximized);
|
||||
if (ImGui::MenuItem(ICON_VS_CHROME_MAXIMIZE " Maximize")) glfwMaximizeWindow(window);
|
||||
if (ImGui::MenuItemEx("Maximize", ICON_VS_CHROME_MAXIMIZE)) glfwMaximizeWindow(window);
|
||||
ImGui::EndDisabled();
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
if (ImGui::MenuItem(ICON_VS_CHROME_CLOSE " Close")) ImHexApi::System::closeImHex();
|
||||
if (ImGui::MenuItemEx("Close", ICON_VS_CHROME_CLOSE)) ImHexApi::System::closeImHex();
|
||||
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user