pike
08/15/2017, 2:01 AMedvin
08/15/2017, 7:58 AMedvin
08/16/2017, 5:09 PMpim
08/17/2017, 5:02 PMnimakro
08/17/2017, 5:12 PMorangy
08/17/2017, 5:17 PMeddy_wm
08/17/2017, 5:29 PMnimakro
08/17/2017, 9:15 PMedvin
08/19/2017, 9:24 PMedvin
08/21/2017, 8:56 AMedvin
08/21/2017, 10:37 AMron
08/22/2017, 7:36 AMgtnarg
08/22/2017, 12:33 PMedvin
08/23/2017, 6:10 AMlabel
builder? If you really have a legit use case for createLabel
you could use the same pattern we use in our extension functions to add it to the parent automatically.ron
08/23/2017, 11:17 AMedvin
08/25/2017, 11:45 AMthomasnield
08/31/2017, 9:40 PMedvin
09/01/2017, 6:49 PMedvin
09/01/2017, 6:50 PMaayush
09/04/2017, 10:24 AMFont.loadFont(javaClass.getResourceAsStream("/fonts/Lato-Regular.ttf"), 16.0)
And according to the method loadfont documentation
* Loads a font resource from the specified input stream.
* If the load is successful such that the stream can be
* fully read, and it represents a supported font format then a
* <code>Font</code> object will be returned.
When I print this I do get a Font Object like mentioned in Font.java file
Font[name=Lato Regular, family=Lato, style=Regular, size=16.0]
Is this only loading the font & not applying to the application?carlw
09/04/2017, 1:19 PMedvin
09/06/2017, 8:33 AMroot { font = latoRegularFont }
edvin
09/06/2017, 8:39 AMloadFont
from double to number without issues?edvin
09/06/2017, 9:21 PMpike
09/06/2017, 11:09 PMpim
09/08/2017, 12:33 PMedvin
09/10/2017, 9:40 PMcontextMenu.items.clear()
. I will add an API to control this more elegantly. It should still be single select by default though?thomasnield
09/11/2017, 2:10 PMedvin
09/13/2017, 11:38 AMedvin
09/15/2017, 9:31 AMSVGPath(resources.text())
might work, havent tried though. We could add a constructor to SVGPath that accepts a source path as well. Let me know if it works, I can add it.edvin
09/15/2017, 9:31 AMSVGPath(resources.text())
might work, havent tried though. We could add a constructor to SVGPath that accepts a source path as well. Let me know if it works, I can add it.aayush
09/15/2017, 10:03 AMSVGPath(resources.text("M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"))
edvin
09/15/2017, 10:17 AMSVGPath("M3...
aayush
09/15/2017, 10:32 AMitem(icon = SVGPath("M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"), expanded = true) {
add(PlaceHolderView::class)
}
This is giving me error: Too many arguments for public constructor SVGPath()edvin
09/15/2017, 12:14 PMSVGPath().apply { content = "M3" }
aayush
09/15/2017, 12:19 PMedvin
09/15/2017, 12:20 PMaayush
09/15/2017, 12:23 PMval menuIcon= SVGPath().apply { content = "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" }
override val root = drawer {
item(icon = menuIcon, expanded = true) {
add(PlaceHolderView::class)
}
edvin
09/15/2017, 12:23 PMaddClass
? 🙂SVGPath().apply { content = "M3"; addClass() }
aayush
09/15/2017, 12:23 PM