Ensure borders on IME mode foreground icon

This commit is contained in:
Soreepeong 2023-12-08 15:41:37 +09:00
parent 01b45c98ac
commit 2c3139d8b7
3 changed files with 59 additions and 10 deletions

View file

@ -133,6 +133,20 @@ internal unsafe class DalamudImeWindow : Window
if (!expandUpward && drawIme)
{
for (var dx = -2; dx <= 2; dx++)
{
for (var dy = -2; dy <= 2; dy++)
{
if (dx != 0 || dy != 0)
{
drawList.AddText(
cursor + new Vector2(dx, dy),
ImGui.GetColorU32(ImGuiCol.WindowBg),
ime.InputModeIcon);
}
}
}
drawList.AddText(cursor, ImGui.GetColorU32(ImGuiCol.Text), ime.InputModeIcon);
cursor.Y += candTextSize.Y + spaceY;
}
@ -179,6 +193,20 @@ internal unsafe class DalamudImeWindow : Window
if (expandUpward && drawIme)
{
for (var dx = -2; dx <= 2; dx++)
{
for (var dy = -2; dy <= 2; dy++)
{
if (dx != 0 || dy != 0)
{
drawList.AddText(
cursor + new Vector2(dx, dy),
ImGui.GetColorU32(ImGuiCol.WindowBg),
ime.InputModeIcon);
}
}
}
drawList.AddText(cursor, ImGui.GetColorU32(ImGuiCol.Text), ime.InputModeIcon);
}