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

    creamy-animal-95850

    01/16/2023, 10:45 PM
    dunno... just tried them for the first time, but it spits out all kinds of errors when processing the xml. trying a few different things now
  • b

    bright-gpu-74537

    01/16/2023, 10:46 PM
    i dont think anything has changed there, ill check in the morning, ill also add an example to the component explorer so that, if they are broken, it shouldnt happen again
  • c

    creamy-animal-95850

    01/16/2023, 11:13 PM
    I wonder if I have to import 'theme' somewhere
  • h

    happy-agent-4114

    01/17/2023, 12:22 AM
    is there an equivalent to CSS
    vw
    and
    vh
    scaling?
  • h

    happy-agent-4114

    01/17/2023, 12:23 AM
    oh %s do that??
  • h

    happy-agent-4114

    01/17/2023, 12:23 AM
    I'm way too used to html
  • h

    happy-agent-4114

    01/17/2023, 7:04 AM
    Question from 4 hours ago i forgot to ask:
  • h

    happy-agent-4114

    01/17/2023, 7:05 AM
    Is there a way to make it so a treeview expands when the label is clicked
  • h

    happy-agent-4114

    01/17/2023, 7:05 AM
    And a custom child tree element's checkbox responds to the label being clicked
  • f

    full-journalist-82607

    01/17/2023, 9:27 AM
    yes there is 🙂
  • f

    full-journalist-82607

    01/17/2023, 9:28 AM
    You have all these dimensiosn enum Dimension { PERCENT(value:Float); PX(value:Float); VW(value:Float); VH(value:Float); REM(value:Float); CALC(s:String); But calc is only if use hscript
  • f

    full-journalist-82607

    01/17/2023, 9:28 AM
    themes must be in your module.xml
  • b

    bright-gpu-74537

    01/17/2023, 9:37 AM
    one think i would say about vw/vh, is i think they are static, ie, if you change the size of the window css rules that use them wont rerun, iirc, its an oversight in the css engine at a base level - once css is parsed, it is never reparsed, which is a kinda bug i think... but i need to be very careful about allowing it as i could totally oliterate performance by mistake
  • b

    bright-gpu-74537

    01/17/2023, 9:38 AM
    at the moment you can double click to expand, i wonder if a property like
    .singleClickExpand
    is appropriate
  • b

    bright-gpu-74537

    01/17/2023, 9:38 AM
    i think i get what you mean, the problem here is that, i guess, you have a totally seperate label and checkbox in your renderer
  • b

    bright-gpu-74537

    01/17/2023, 9:39 AM
    ive often thought a "labelFor" might be a nice idea - ill have a think
  • c

    creamy-animal-95850

    01/17/2023, 10:16 AM
    module.xml has the themes global, default, dark I'm building app.xml from a custom class extending component box and that class is throwing errors as soon as I add '${theme.icon('thing')}' to the xml
  • c

    creamy-animal-95850

    01/17/2023, 10:17 AM
    even with hscript it gets an error
  • b

    bright-gpu-74537

    01/17/2023, 10:19 AM
    shouldnt have anything to do with hscript... unless its a leftover from when i was overusing it... ill check a little later
  • b

    bright-gpu-74537

    01/17/2023, 10:32 AM
    yup, broken:
    Copy code
    MainView.hx:29: characters 1-6 : Unknown identifier : theme
    MainView.hx:29: characters 1-6 : ... For function argument 'value'
    MainView.hx:30: lines 30-42 : ... Defined in this class
  • b

    bright-gpu-74537

    01/17/2023, 10:32 AM
    is this similar to what you get @creamy-animal-95850 ?
  • b

    bright-gpu-74537

    01/17/2023, 10:32 AM
    this feels like something i didnt convert to proper haxe expressions when i ditched hscript
  • b

    bright-gpu-74537

    01/17/2023, 10:34 AM
    <button text="Theme Icon" icon="${haxe.ui.themes.ThemeManager.instance.icon('save')}" />
    is fine though, so i just need to walk the expr and make substs
  • c

    creamy-animal-95850

    01/17/2023, 11:07 AM
    that is the exact error I was getting
  • c

    creamy-animal-95850

    01/17/2023, 11:07 AM
    it works, just doesnt change with the theme
  • b

    bright-gpu-74537

    01/17/2023, 11:08 AM
    cool - simple enough fix, just need to turn
    theme
    into
    haxe.ui.themes.ThemeManager.instance
    in the expression walker... no biggie, ill sort it later
  • c

    creamy-animal-95850

    01/17/2023, 11:08 AM
    👍 👍
  • b

    bright-gpu-74537

    01/17/2023, 11:08 AM
    ... good catch 🙂
  • b

    best-agent-85158

    01/17/2023, 2:29 PM
    https://spacebubble.io/vision/vision-explorer/build/html5/
  • b

    best-agent-85158

    01/17/2023, 2:30 PM
    the first run makes the page hang, the second run works, but switching filters makes the page hang. on the next run, each already "hung upon" filter works
1...138513861387...1687Latest