mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-20 23:07:43 +01:00
Ensure borders on IME mode foreground icon
This commit is contained in:
parent
01b45c98ac
commit
2c3139d8b7
3 changed files with 59 additions and 10 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue