GNDecorator
Modern window decorator for javafx applications
Install / Use
/learn @gleidsonmt/GNDecoratorREADME
📑 Contents
<!-- TOC -->- 📑 Contents
- 💻 Environment
- 🚀 Installing Decorator
- ☕ Using Decorator
- 🧬 Basic Structure
- 📺 On Youtube
- 🛠 Enhancements
- 📫 Contributing to Project
- 😄 Be a contritubutor<br>
- 📝 License
💻 Environment
This lib is a compnent for JavaFx: Get in the offical website JavaFx, Tutorial Getting Started
I have a great workstation here, then I've using a gradle 7.2 and Java and JavaFx +16 on Windows. (I really want to test in other systems in future).
🚀 Installing Decorator
Now you have many ways to get that! !🗒️Note ** The release has the first changes I made and releases in nexus are more stable 🥸***
👌In code blocks find the copy button... is cooler, it automatically knows if your target is a pom.xml or gradle.build
For installing decorator, you have this options:
- For Pros - Click on the badge release or click badge nexus on the top of this document, and you're going to redirect to hosted sources.
- For Github Users - On the right side, you can see the packages and releases, click on them and download it, in case you are in packages just copy them into your build file.
- For Faster users - Just copy and paste the code bellow
If you use maven add in pom.xml:
<dependency>
<groupId>io.github.gleidsonmt</groupId>
<artifactId>gndecorator</artifactId>
<version>2.2.25</version>
</dependency>
.. or in gradle.build:
implementation 'io.github.gleidsonmt:replaceVersionInREADME:2.2.25'
☕ Using Decorator
Begin to use... Java Code!
GNDecorator decorator = new GNDecorator();
decorator.setTitle("JavaFx Application");
decorator.setContent(content);
decorator.fullBody() // the content occupies all of size
// Adding menus
Menu menu = new Menu("File");
menu.getItems().add(new MenuItem("Open"));
menu.getItems().add(new MenuItem("Close"));
decorator.addMenu(menu);
decorator.addMenu(1, menu);// add with a index
// Adding custom controls
ButtonTest a1 = new ButtonTest("Button 1");
decorator.addControl(a1);
decorator.addControl(index, a1); // add with a index
🧬 Basic Structure
root -> SstackPane
body -> AnchorPane
top_left -> Path
top_right -> Path -- rotation 90°
bottom_left -> Path -- rotation 270°
bottom_right -> Path -- rotation 180°
Structure - by Scenic View

Default Structure

View Default

View Darkula

With gradient and image

📺 On Youtube
Short Presentation here
🛠 Enhancements
Next steps:
- [x] Add Yosemite Theme
- [ ] Add Windows Theme
- [ ] The decoratorTheme in blank to customize
- [ ] Public methods to update window icons with css.
- [X] Better pratices for one class receives state scope event (Clean Code)
- [ ] Default Property to change bar height
- [ ] Float options (css too)
📫 Contributing to Project
<!---Se o seu README for longo ou se você tiver algum processo ou etapas específicas que deseja que os contribuidores sigam, considere a criação de um arquivo CONTRIBUTING.md separado--->To contributing to project, follow these steps:
- Fork this repository.
- Creates a branch:
git checkout -b <branch_name>. - Do your changes and commit:
git commit -m '<commit_message>' - Send a branch to origin:
git push origin GNDecorator / <local> - Creates pull request.
However, if you don't know How to create a pull Request.
😄 Be a contritubutor<br>
🤖I really need more friends.. Send me a <a href='mailto:gleidisonmt@gmail.com?subject=Hi, I see you need my help!.. I am here.'> email <a/>.
📝 License
This project is under license. See the file LICENSE to more details.
Related Skills
clearshot
Structured screenshot analysis for UI implementation and critique. Analyzes every UI screenshot with a 5×5 spatial grid, full element inventory, and design system extraction — facts and taste together, every time. Escalates to full implementation blueprint when building. Trigger on any digital interface image file (png, jpg, gif, webp — websites, apps, dashboards, mockups, wireframes) or commands like 'analyse this screenshot,' 'rebuild this,' 'match this design,' 'clone this.' Skip for non-UI images (photos, memes, charts) unless the user explicitly wants to build a UI from them. Does NOT trigger on HTML source code, CSS, SVGs, or any code pasted as text.
openpencil
2.1kThe world's first open-source AI-native vector design tool and the first to feature concurrent Agent Teams. Design-as-Code. Turn prompts into UI directly on the live canvas. A modern alternative to Pencil.
ui-ux-pro-max-skill
60.4kAn AI SKILL that provide design intelligence for building professional UI/UX multiple platforms
ui-ux-pro-max-skill
60.4kAn AI SKILL that provide design intelligence for building professional UI/UX multiple platforms
