-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion for the TextSize property #52
Comments
100% agree, changing the Description textSize would solve some problems. |
Well maybe you should think about creating your own skin for that purpose? The description is used in many Skins, which could lead to problems when someone can change the text size. But you can simply create a cooy of the skin that you use, change the fontsize to the one you need and use your own skin with tile.setSkin(yourskin). |
First of All thank you so much for your work, it's amazing. |
No it's not the same, the custom tile skin simply let you add whatever JavaFX node you have to the tile by using the setGraphic() method. In JavaFX controls can be made out of a Control class and more than one Skin classes. The Skin only contains the visualization part of the control. Meaning to say you can show only the parts you like in your skin and the skin also defines the font sizes, colors, etc. So the simplest way is to create a copy of one skin e.g. the TextTileSkin, take a look at the code and make changes to it. Then you can use it by creating a Tile and call it's setSkin() method with an instance of your own skin. With this you can create whatever you like as long as it makes use of the properties in the Tile class. |
i see, thanks a lot. |
I would suggest separating the TextSize property for the different Tile texts (title, text, ...). For example, I want to put in my Text the base date of the Tile information and I do not want this text to be the same size as my Title.
The text was updated successfully, but these errors were encountered: