https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • f

    flaky-scientist-22842

    11/23/2019, 11:13 PM
    👍
  • f

    flaky-scientist-22842

    11/23/2019, 11:13 PM
    Thanks again!
  • f

    flaky-scientist-22842

    11/25/2019, 11:01 AM
    Hello again! I can't figure out how to resize a
    VBox
    I tried modifying its
    height
    property directly in my main function with
    myVBox.height
    , nope I also tried by adding the component from an xml file as demonstrated in the GitHub readme, then adding
    height: 200px;
    in the VBox's
    style
    attribute, still nope! Anyone can enlighten me on this? Thanks in advance!
  • f

    flaky-scientist-22842

    11/25/2019, 11:02 AM
    P.S. : The compiler gives no error or warning and everything else works as expected
  • b

    bright-gpu-74537

    11/25/2019, 11:08 AM
    ... ..
    myVBox.height
    should certainly work can you share a small example?
  • b

    bright-gpu-74537

    11/25/2019, 11:40 AM
    this seems to work:
  • b

    bright-gpu-74537

    11/25/2019, 11:40 AM
    http://haxeui.org/builder/?bszand
  • b

    bright-gpu-74537

    11/25/2019, 11:40 AM
    its using script, but it shouldnt be a whole lot different
  • f

    flaky-scientist-22842

    11/25/2019, 12:56 PM
    Heya! Sorry for the late response, I was @ lunch break 🙂 Thanks for your answer! I'll try that
  • h

    handsome-television-62908

    11/29/2019, 7:41 AM
    I'm trying to make a class accessible from any component using
    styleNames
    . Right now I'm doing
    haxe.ui.themes.ThemeManager.addStyle(".myClass{}");
    at the start of the application right after initiating the toolkit and the component I have with the
    myClass
    style isn't reflecting what's going on. There's also no documentation or examples of trying to do something like this online, so can anyone point me where I need to look to be able to do this anywhere?
  • h

    handsome-television-62908

    11/29/2019, 7:42 AM
    I kind of need it to be accessible through the Haxe code directly, since the styling I'm using, in this case, isn't available from a file.
  • h

    handsome-television-62908

    11/29/2019, 8:04 AM
    I can clearly see that in the themes there is a stylesheet in the composite style sheet with the name "default", and in that stylesheet I actually can confirm my rule for the class exists. Yet, for some reason, the styleNames is not being used...
  • h

    handsome-television-62908

    11/29/2019, 8:19 AM
    Okay, well now I have something that may be working... but not completely yet.
  • h

    handsome-television-62908

    11/29/2019, 8:21 AM
    got it working . . . but that was weird
  • b

    bright-gpu-74537

    11/29/2019, 8:36 AM
    working now? What was wierd?
  • b

    bright-gpu-74537

    11/29/2019, 8:36 AM
    didnt know "addStyle" existed in the theme... heh heh...
  • h

    handsome-television-62908

    11/29/2019, 8:39 AM
    The thing that was weird was kind of my own doing from not understanding the workflow better and a series of small cascading trial and error issues lol
  • h

    handsome-television-62908

    11/29/2019, 8:39 AM
    ultimately I was just doing things a very very little bit 'wrong'
  • h

    handsome-television-62908

    11/29/2019, 8:40 AM
    lol ... addStyleString that is
  • b

    bright-gpu-74537

    11/29/2019, 8:40 AM
    good to know that function is there though - must have added it a while back and promptly forgotten about it 😄
  • h

    handsome-television-62908

    11/29/2019, 8:41 AM
    but yeah, I was using addStyleString but every time I was trying to make sure my component used the defined class somehow I ended up erasing the reference in the toolkit compositeStyleSheet or I misnamed it or some variation/combination of the two lmao
  • b

    bright-gpu-74537

    11/29/2019, 8:44 AM
    hmmm, and now it works?
  • b

    bright-gpu-74537

    11/29/2019, 8:44 AM
    out of interest, why use the addStyleString?
  • h

    handsome-television-62908

    11/29/2019, 8:45 AM
    I was looking for an entry point that allowed me to just add styles through haxe, or at least someway that isn't just a file; given I might prefer to use a css-preprocessor or other means for styling through a library - like Cix or something
  • h

    handsome-television-62908

    11/29/2019, 8:47 AM
    Do you know-of/know-how one would use something like scss with haxeui perhaps?
  • b

    bright-gpu-74537

    11/29/2019, 8:49 AM
    wouldnt you just preprocess the .css -> .scss files and then use them in haxeui?
  • h

    handsome-television-62908

    11/29/2019, 8:49 AM
    but that would be two different steps?
  • b

    bright-gpu-74537

    11/29/2019, 8:49 AM
    would be interesting to see if the scss files actually work inside haxeui... its a custom css parser, and certainly isnt w3c compliant
  • h

    handsome-television-62908

    11/29/2019, 8:50 AM
    The most obvious way would be to generate them and then have the haxeui-xml link to their generated css, but I think it might actually be far-less streamable than that
  • h

    handsome-television-62908

    11/29/2019, 8:50 AM
    like you said
1...146147148...1687Latest