ui: Make hexadecimal prefix slightly darker than rest of text

This commit is contained in:
WerWolv 2022-02-08 22:19:54 +01:00
parent bd30411ba7
commit 586bca4bf6
1 changed files with 3 additions and 0 deletions

View File

@ -519,7 +519,10 @@ namespace ImGui {
RenderNavHighlight(frame_bb, id);
RenderFrame(frame_bb.Min, frame_bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding);
ImGui::PushStyleVar(ImGuiStyleVar_Alpha, 0.6F);
RenderText(ImVec2(frame_bb.Min.x + style.FramePadding.x, frame_bb.Min.y + style.FramePadding.y), prefix);
ImGui::PopStyleVar();
return value_changed;
}