Embossed CSS buttons
- Java 77.9%
- CSS 19.7%
- HTML 2.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo | ||
| com.io7m.cxbutton.core | ||
| com.io7m.cxbutton.tests | ||
| src/site/resources | ||
| .gitignore | ||
| .gitmodules | ||
| checkstyle-filter.xml | ||
| checkstyle-suppressions-1.0.dtd | ||
| doc7m-books.json | ||
| pom.xml | ||
| README-CHANGES.xml | ||
| README-LICENSE.txt | ||
| README.in | ||
| README.md | ||
cxbutton
cxbutton
Embossed CSS buttons.
Features
- Templated, customizable CSS buttons.
- OSGi ready.
- JPMS ready.
- ISC license.
- High-coverage automated test suite.
Usage
Use the CxButtonCSS class to generate CSS text.
final CxButtonCSS css =
CxButtonCSS.create();
final String text =
css.cssOf(Optional.empty(), false, CxButtonCSS.defaultColors());
It's possible to specify custom colors, and the package can automatically derive the correct color variations for embossing:
final String text =
css.cssOf(
Optional.of("Ocean"),
true,
CxButtonCSS.colorsForScheme(
new CxColor(1.0, 1.0, 1.0),
new CxColor(0.0, 0.0, 0.0),
new CxColor(0.105, 0.313, 0.454),
0.2,
0.2,
0.5
)
);
