Skip to content

Comments

Adding TextButton control#60

Merged
mdwigley merged 1 commit intoenterlucent:mainfrom
mdwigley:issue#59-mdwigley
Feb 21, 2026
Merged

Adding TextButton control#60
mdwigley merged 1 commit intoenterlucent:mainfrom
mdwigley:issue#59-mdwigley

Conversation

@mdwigley
Copy link
Member

Description

This PR introduces the TextButton control, a clickable button with an integrated text label. It supports configurable border colors and thickness, alignment, and interaction states including hover and pressed. The control measures and renders its child text label according to alignment, padding, and clipping, providing a reusable and consistent button component for UI developers.

Related Issue

Motivation and Context

The TextButton control streamlines the creation of clickable buttons with styled text in the UI, reducing repetitive layout and interaction handling code. It ensures consistent visual behavior and alignment across applications.

How Has This Been Tested?

  • Verified that the control compiles successfully.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Asset change (adds or updates icons, templates, or other assets)
  • Documentation change (adds or updates documentation)
  • Plugin change (adds or updates a plugin)

Checklist:

  • I have read the CONTRIBUTING document.
  • My change requires a change to the core logic.
    • I have linked the project issue above.
  • My change requires a change to the assets.
    • I have linked the asset issue above.
  • My change requires a change to the documentation.
    • I have linked the documentation issue above.
  • My change requires a change to a plugin.
    • I have linked the plugin issue above.

@mdwigley mdwigley added this to the Core Controls Library milestone Feb 21, 2026
@mdwigley mdwigley self-assigned this Feb 21, 2026
@mdwigley mdwigley added the approved Change issue has been accepted for implementation label Feb 21, 2026
@mdwigley mdwigley moved this to In review in PhotonUI Timeline Feb 21, 2026
@mdwigley mdwigley merged commit 04a8f61 into enterlucent:main Feb 21, 2026
3 checks passed
@github-project-automation github-project-automation bot moved this from In review to Done in PhotonUI Timeline Feb 21, 2026
@mdwigley mdwigley deleted the issue#59-mdwigley branch February 21, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Change issue has been accepted for implementation

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

TextButton Control

1 participant