ui: Various ui improvements
This commit is contained in:
parent
26b881e4c9
commit
4c9459def3
@ -97,7 +97,11 @@ namespace hex {
|
|||||||
bookmarkToRemove = iter;
|
bookmarkToRemove = iter;
|
||||||
ImGui::SameLine(0, 15);
|
ImGui::SameLine(0, 15);
|
||||||
|
|
||||||
ImGui::Checkbox("Locked", &locked);
|
if (locked) {
|
||||||
|
if (ImGui::Button(ICON_FA_LOCK)) locked = false;
|
||||||
|
} else {
|
||||||
|
if (ImGui::Button(ICON_FA_UNLOCK)) locked = true;
|
||||||
|
}
|
||||||
|
|
||||||
ImGui::NewLine();
|
ImGui::NewLine();
|
||||||
ImGui::TextUnformatted("hex.view.bookmarks.header.name"_lang);
|
ImGui::TextUnformatted("hex.view.bookmarks.header.name"_lang);
|
||||||
|
@ -118,7 +118,7 @@ namespace hex {
|
|||||||
ImGui::Combo("hex.view.disassembler.arch"_lang, reinterpret_cast<int*>(&this->m_architecture), Disassembler::ArchitectureNames, Disassembler::getArchitectureSupportedCount());
|
ImGui::Combo("hex.view.disassembler.arch"_lang, reinterpret_cast<int*>(&this->m_architecture), Disassembler::ArchitectureNames, Disassembler::getArchitectureSupportedCount());
|
||||||
|
|
||||||
|
|
||||||
if (ImGui::BeginChild("modes", ImVec2(0, 100), true)) {
|
if (ImGui::BeginChild("modes", ImVec2(0, ImGui::GetTextLineHeightWithSpacing() * 6), true, ImGuiWindowFlags_AlwaysAutoResize)) {
|
||||||
|
|
||||||
if (ImGui::RadioButton("hex.common.little_endian"_lang, this->m_littleEndianMode))
|
if (ImGui::RadioButton("hex.common.little_endian"_lang, this->m_littleEndianMode))
|
||||||
this->m_littleEndianMode = true;
|
this->m_littleEndianMode = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user