1
0
mirror of synced 2024-11-28 09:30:51 +01:00

impr: Add small gap between window frame and title bar buttons

This commit is contained in:
WerWolv 2024-02-09 19:39:26 +01:00
parent 9d47ba9031
commit ebe0276141

View File

@ -184,7 +184,7 @@ namespace hex::plugin::builtin {
// Draw custom title bar buttons
if (!titleBarButtons.empty()) {
ImGui::SetCursorPosX(ImGui::GetWindowWidth() - buttonSize.x * float((titleBarButtonsVisible ? 4 : 0) + titleBarButtons.size()));
ImGui::SetCursorPosX(ImGui::GetWindowWidth() - 7_scaled - buttonSize.x * float((titleBarButtonsVisible ? 4 : 0) + titleBarButtons.size()));
if (ImGui::GetCursorPosX() > (searchBoxPos.x + searchBoxSize.x)) {
for (const auto &[icon, tooltip, callback] : titleBarButtons) {