impr: Add small gap between window frame and title bar buttons
This commit is contained in:
parent
9d47ba9031
commit
ebe0276141
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user