From 30139a5698c98a2625cb264b5961be52547c63bf Mon Sep 17 00:00:00 2001 From: DanS Date: Sat, 4 Jul 2026 16:32:28 -0500 Subject: [PATCH] feat(security): focus ring on the lock-screen input MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The PIN/passphrase input uses default ImGui framing, which is subtle on the glass card — when focused there was no clear indication the field is active. Draw an accent (Primary) ring around the input while it's focused/being edited so it's obvious the field is ready for typing. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/app_security.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app_security.cpp b/src/app_security.cpp index de18333..7759be7 100644 --- a/src/app_security.cpp +++ b/src/app_security.cpp @@ -955,6 +955,12 @@ void App::renderLockScreen() { ImGui::PopStyleVar(); ImGui::PopItemWidth(); } + // Focus indicator: a clear accent ring around the input while it's focused/being edited — the + // default frame is subtle on the glass card, so this shows the field is active and ready to type. + if (ImGui::IsItemActive() || ImGui::IsItemFocused()) { + dl->AddRect(ImGui::GetItemRectMin(), ImGui::GetItemRectMax(), + ui::material::Primary(), 6.0f, 0, 2.0f); + } cy += 40.0f + 12.0f; // Focus the input when the lock screen first appears.