Skip to content

Styleable focus outline#16914

Open
siliconsniffer wants to merge 3 commits intoluanti-org:masterfrom
siliconsniffer:style_focus
Open

Styleable focus outline#16914
siliconsniffer wants to merge 3 commits intoluanti-org:masterfrom
siliconsniffer:style_focus

Conversation

@siliconsniffer
Copy link
Contributor

Add compact, short information about your PR for easier understanding:

Note

I used an LLM Chatbot/Assistant during development, but I take full responsibility for the submitted changes.

  • Goal of the PR
    Allow the focus outline to by styled to increase visibility or fit to the surrounding style.
  • How does the PR work?
    This PR adds a new focus state and properties for color, width and offset.
  • Does it resolve any reported issue?
    Closes [Formspec] Ability to style focus outline #16819
  • Does this relate to a goal in the roadmap?
    Not directly, maybe 2.3.
  • If not a bug fix, why is this PR needed? What usecases does it solve?
    Increased visibility and increased possibility for artistic expression.
  • If you have used an LLM/AI to help with code or assets, you must disclose this.
    Disclosed.

To do

This PR is ready for review.

How to test

open luanti → devtest → /test_formspec → press tab/shift+tab → observe that the focus outline changes the appearance

@siliconsniffer

This comment was marked as outdated.

@Zughy Zughy added @ Script API Roadmap The change matches an item on the current roadmap Feature ✨ PRs that add or enhance a feature Formspec UI/UX labels Feb 5, 2026
@sfan5 sfan5 changed the title Style focus Styleable focus outline Feb 6, 2026
@Wuzzy2
Copy link
Contributor

Wuzzy2 commented Feb 16, 2026

Please update lua_api.md.

I also suggest to include the * selector in the test since that will likely be the most commonly-used one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature ✨ PRs that add or enhance a feature Formspec Roadmap The change matches an item on the current roadmap @ Script API UI/UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Formspec] Ability to style focus outline

3 participants