mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
impr: Better reset icon for shortcut settings
This commit is contained in:
@@ -287,7 +287,7 @@ namespace hex::plugin::builtin {
|
||||
bool settingChanged = false;
|
||||
|
||||
ImGui::BeginDisabled(m_drawShortcut.matches(m_defaultShortcut));
|
||||
if (ImGui::Button("X", ImGui::GetStyle().FramePadding * 2 + ImVec2(ImGui::GetTextLineHeight(), ImGui::GetTextLineHeight()))) {
|
||||
if (ImGuiExt::DimmedButton(ICON_VS_DISCARD, ImGui::GetStyle().FramePadding * 2 + ImVec2(ImGui::GetTextLineHeight(), ImGui::GetTextLineHeight()))) {
|
||||
this->reset();
|
||||
if (!m_hasDuplicate) {
|
||||
m_shortcut = m_defaultShortcut;
|
||||
|
||||
Reference in New Issue
Block a user