mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
fix: Disable alpha display in various color buttons
This commit is contained in:
@@ -747,7 +747,7 @@ namespace hex::plugin::builtin {
|
||||
auto copyValue = hex::format("#{:02X}{:02X}{:02X}", u8(0xFF * (color.Value.x)), u8(0xFF * (color.Value.y)), u8(0xFF * (color.Value.z)), 0xFF);
|
||||
|
||||
return [color, copyValue] {
|
||||
ImGui::ColorButton("##inspectorColor", color, ImGuiColorEditFlags_None, ImVec2(ImGui::GetColumnWidth(), ImGui::GetTextLineHeight()));
|
||||
ImGui::ColorButton("##inspectorColor", color, ImGuiColorEditFlags_AlphaOpaque, ImVec2(ImGui::GetColumnWidth(), ImGui::GetTextLineHeight()));
|
||||
return copyValue;
|
||||
};
|
||||
});
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace hex::plugin::builtin {
|
||||
|
||||
{
|
||||
// Draw bookmark header
|
||||
ImGui::ColorButton("##color", ImColor(bookmark.color));
|
||||
ImGui::ColorButton("##color", ImColor(bookmark.color), ImGuiColorEditFlags_AlphaOpaque);
|
||||
ImGui::SameLine(0, 10);
|
||||
ImGuiExt::TextFormatted("{} ", bookmark.name);
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace hex::plugin::builtin {
|
||||
auto region = occurrence.value.region;
|
||||
const auto value = this->decodeValue(ImHexApi::Provider::get(), occurrence.value, 256);
|
||||
|
||||
ImGui::ColorButton("##color", ImColor(HighlightColor()));
|
||||
ImGui::ColorButton("##color", ImColor(HighlightColor()), ImGuiColorEditFlags_AlphaOpaque);
|
||||
ImGui::SameLine(0, 10);
|
||||
ImGuiExt::TextFormatted("{} ", value);
|
||||
|
||||
|
||||
@@ -622,7 +622,7 @@ namespace hex::plugin::builtin {
|
||||
ImGui::TableNextRow();
|
||||
ImGui::TableNextColumn();
|
||||
|
||||
ImGui::ColorButton(tooltip.getValue().c_str(), ImColor(tooltip.getColor()));
|
||||
ImGui::ColorButton(tooltip.getValue().c_str(), ImColor(tooltip.getColor()), ImGuiColorEditFlags_AlphaOpaque);
|
||||
ImGui::SameLine(0, 10);
|
||||
ImGui::TextUnformatted(tooltip.getValue().c_str());
|
||||
|
||||
|
||||
@@ -1696,7 +1696,7 @@ namespace hex::plugin::builtin {
|
||||
ImGui::PushID(pattern);
|
||||
{
|
||||
const bool shiftHeld = ImGui::GetIO().KeyShift;
|
||||
ImGui::ColorButton(pattern->getVariableName().c_str(), ImColor(pattern->getColor()));
|
||||
ImGui::ColorButton(pattern->getVariableName().c_str(), ImColor(pattern->getColor()), ImGuiColorEditFlags_AlphaOpaque);
|
||||
ImGui::SameLine(0, 10);
|
||||
ImGuiExt::TextFormattedColored(TextEditor::GetPalette()[u32(TextEditor::PaletteIndex::KnownIdentifier)], "{} ", pattern->getFormattedName());
|
||||
ImGui::SameLine(0, 5);
|
||||
|
||||
Reference in New Issue
Block a user