Giter Site home page Giter Site logo

Comments (5)

foxy999 avatar foxy999 commented on September 28, 2024

100% agree, changing the Description textSize would solve some problems.

from tilesfx.

HanSolo avatar HanSolo commented on September 28, 2024

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).

from tilesfx.

foxy999 avatar foxy999 commented on September 28, 2024

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.
Secondly, i just discovered yesterday the Custom Tile, however changing the font size manually doesn't seem to follow the grid size like a normal Tile.
I'm not sure if it's the same thing as the skin, is there a sample code for the custom Skin ?
Appreciated.

from tilesfx.

HanSolo avatar HanSolo commented on September 28, 2024

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.

from tilesfx.

foxy999 avatar foxy999 commented on September 28, 2024

i see, thanks a lot.

from tilesfx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.