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

    bright-gpu-74537

    05/07/2023, 2:32 PM
    there is this, but its only for button currently: http://haxeui.org/api/haxe/ui/components/button/ was more of an idea, and now im not sure if the more complicated components would just be overly complicated
  • b

    bright-gpu-74537

    05/07/2023, 2:33 PM
    what did you change? Padding on the title bar?
  • i

    icy-zebra-52882

    05/07/2023, 2:33 PM
    yeah, at low resolutions the padding is very overkill
  • i

    icy-zebra-52882

    05/07/2023, 2:33 PM
    same with most of the padding and spacing
  • b

    bright-gpu-74537

    05/07/2023, 2:34 PM
    maybe it should be relative... dunno
  • b

    bright-gpu-74537

    05/07/2023, 2:34 PM
    or like related to "rem" or something dunno... i had the same problems with pdcurses... each "pixel" there is a char... so "5px" padding is massive
  • i

    icy-zebra-52882

    05/07/2023, 2:35 PM
    not sure if it'd help with flixel as such, unlike browsers where you can change the root font size by increasing/decreasing zoom (or just font size itself, independent of zoom), I'm not sure there's a way to set root font size for openFL/flixel
  • i

    icy-zebra-52882

    05/07/2023, 2:36 PM
    font size in that image is set to 8pt
  • i

    icy-zebra-52882

    05/07/2023, 2:36 PM
    I think it defaults to 16pt by default
  • b

    bright-gpu-74537

    05/07/2023, 2:42 PM
    yeah, or, well, maybe some variable or something for ease of changing
  • b

    bright-gpu-74537

    05/07/2023, 2:43 PM
    for pdcurses i basically had to just override (via css) pretty much all the paddings... its not the end of the world, and in reality, is quite valid. But i remember thinking at the time it'd nice if there was a simpler way (perhaps there isnt)
  • b

    bright-gpu-74537

    05/07/2023, 2:44 PM
    maybe, just thinking now, just a "normal-padding" var in the theme, 5px is used pretty much everywhere i think
  • b

    bright-gpu-74537

    05/07/2023, 3:39 PM
    alright, haxe 4+ is now a requirement for haxeui
  • b

    bright-gpu-74537

    05/07/2023, 3:39 PM

    https://cdn.discordapp.com/attachments/565569107701923852/1104794662822236270/image.png▾

  • a

    ambitious-knife-25690

    05/07/2023, 5:37 PM
    everything appears to be good on my end
  • b

    bright-gpu-74537

    05/07/2023, 5:38 PM
    alright... cool... 🤞
  • b

    bright-gpu-74537

    05/07/2023, 5:39 PM
    (and ta)
  • h

    happy-agent-4114

    05/10/2023, 2:38 PM
    necroposting: how did you do the curve smoothing for this and/or is it open source?
  • h

    happy-agent-4114

    05/10/2023, 2:39 PM
    I have a project I'm working on that this would be perfect for
  • b

    bright-gpu-74537

    05/10/2023, 2:44 PM
    iirc, in that version, there is "one big" svg sitting behind and that contains the lines... ... now i would do the same, but use a canvas... maybe even make a descrete "curve" component (which would just be a canvas)
  • h

    happy-agent-4114

    05/10/2023, 2:44 PM
    wait so the lines are a dynamically generated svg
  • h

    happy-agent-4114

    05/10/2023, 2:46 PM
    wild
  • b

    bright-gpu-74537

    05/10/2023, 2:47 PM
    yeah, pretty sure thats how i went about it
  • b

    bright-gpu-74537

    05/10/2023, 2:48 PM
    same as this: https://twitter.com/IanHarrigan1982/status/1308355969999613957
  • h

    happy-agent-4114

    05/10/2023, 2:49 PM
    is there a way to actually generate svg in haxeui or would I have to interact with the html lib directly
  • h

    happy-agent-4114

    05/10/2023, 2:49 PM
    or I guess I could technically generate it in script and embed it but that seems weird
  • b

    bright-gpu-74537

    05/10/2023, 2:49 PM
    haxeui canvas, by default, on haxui-html5 builds an svg (which you can change by setting a property)
  • h

    happy-agent-4114

    05/10/2023, 2:51 PM
    I gotta read the docs for the canvas hold on
  • b

    bright-gpu-74537

    05/10/2023, 2:51 PM
    docs? HaxeUI? 😄
  • b

    bright-gpu-74537

    05/10/2023, 2:51 PM
    to be fair it is there...
1...166116621663...1687Latest