Skip to content

Conversation

@wellingtoncosta
Copy link
Collaborator

@wellingtoncosta wellingtoncosta commented Dec 23, 2025

Summary

This PR introduces a new button variant called SlimButton, which has both default and outlined styles and it's intended to be used in toolbars and space-constrained UIs. As part of the public API, there are both DefaultSlimButton and OutlinedSlimButton, following the pattern for other button variants.

A slim button section was added to the sample app, showcasing how it looks like.

Screenshot
image

Release notes

New features

  • Added a new button variant called SlimButton, which has both DefaultSlimButton and OutlinedSlimButton styles

Note

Adds a compact button variant for space-constrained UIs.

  • New DefaultSlimButton and OutlinedSlimButton components with reduced padding/height (24dp) and toolbar-friendly metrics
  • Introduces ButtonMetrics.slim and ButtonStyle.Slim factories in Int UI styling
  • Theme plumbing: exposes defaultSlimButtonStyle/outlinedSlimButtonStyle via JewelTheme, composition locals, and DefaultComponentStyling; integrates into IntUi themes and Swing bridge readers
  • Showcase app: adds a “Slim buttons” section demonstrating both variants

Written by Cursor Bugbot for commit 018413d. This will update automatically on new commits. Configure here.

@wellingtoncosta wellingtoncosta requested review from faogustavo and rock3r and removed request for rock3r December 23, 2025 22:47
@wellingtoncosta wellingtoncosta self-assigned this Dec 23, 2025
Copy link
Collaborator

@faogustavo faogustavo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as the ad text. Just make sure to follow the deprecation cycle (keeping a method with the old signature to prevent breaking changes) and make sure you update the API Dumps

menuStyle: MenuStyle = MenuStyle.dark(),
outlinedButtonStyle: ButtonStyle = ButtonStyle.Outlined.dark(),
defaultSlimButtonStyle: ButtonStyle = ButtonStyle.Slim.dark(),
outlinedSlimButtonStyle: ButtonStyle = ButtonStyle.Slim.dark(colors = ButtonColors.Outlined.dark()),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deprecation cycle :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants