ui: Always add a spacing at the end of all tools
This commit is contained in:
parent
b702ad4190
commit
b54e6ea531
@ -98,7 +98,6 @@ namespace hex::plugin::builtin {
|
|||||||
ImGui::EndTable();
|
ImGui::EndTable();
|
||||||
|
|
||||||
ImGui::Checkbox("hex.builtin.tools.ascii_table.octal"_lang, &asciiTableShowOctal);
|
ImGui::Checkbox("hex.builtin.tools.ascii_table.octal"_lang, &asciiTableShowOctal);
|
||||||
ImGui::NewLine();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void drawRegexReplacer() {
|
void drawRegexReplacer() {
|
||||||
@ -118,7 +117,6 @@ namespace hex::plugin::builtin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ImGui::InputTextMultiline("hex.builtin.tools.regex_replacer.output"_lang, regexOutput.data(), regexOutput.size(), ImVec2(0, 0), ImGuiInputTextFlags_ReadOnly);
|
ImGui::InputTextMultiline("hex.builtin.tools.regex_replacer.output"_lang, regexOutput.data(), regexOutput.size(), ImVec2(0, 0), ImGuiInputTextFlags_ReadOnly);
|
||||||
ImGui::NewLine();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void drawColorPicker() {
|
void drawColorPicker() {
|
||||||
@ -126,7 +124,6 @@ namespace hex::plugin::builtin {
|
|||||||
|
|
||||||
ImGui::SetNextItemWidth(300.0F);
|
ImGui::SetNextItemWidth(300.0F);
|
||||||
ImGui::ColorPicker4("hex.builtin.tools.color"_lang, pickedColor.data(), ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_AlphaBar | ImGuiColorEditFlags_AlphaPreviewHalf | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex);
|
ImGui::ColorPicker4("hex.builtin.tools.color"_lang, pickedColor.data(), ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_AlphaBar | ImGuiColorEditFlags_AlphaPreviewHalf | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex);
|
||||||
ImGui::NewLine();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void drawMathEvaluator() {
|
void drawMathEvaluator() {
|
||||||
|
@ -18,6 +18,7 @@ namespace hex::plugin::builtin {
|
|||||||
|
|
||||||
if (ImGui::CollapsingHeader(LangEntry(name))) {
|
if (ImGui::CollapsingHeader(LangEntry(name))) {
|
||||||
function();
|
function();
|
||||||
|
ImGui::NewLine();
|
||||||
} else {
|
} else {
|
||||||
if (ImGui::IsMouseClicked(0) && ImGui::IsItemActivated() && this->m_dragStartIterator == tools.end())
|
if (ImGui::IsMouseClicked(0) && ImGui::IsItemActivated() && this->m_dragStartIterator == tools.end())
|
||||||
this->m_dragStartIterator = iter;
|
this->m_dragStartIterator = iter;
|
||||||
|
Loading…
Reference in New Issue
Block a user