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

    early-butcher-76809

    02/16/2023, 11:19 AM
    I like the idea of referencing stuff in one place. I was wondering if it was possible to assign a theme to a component (and children) and another one to another component. Guess not. it's okay :P
  • b

    bright-gpu-74537

    02/16/2023, 11:31 AM
    yeah, you cant really do that... i mean, there is no such thing as a "theme", its just a set of css
  • b

    bright-gpu-74537

    02/16/2023, 11:41 AM
    what would be the usecase here anyway? I mean, wouldnt mixing themes be... ugly?
  • e

    early-butcher-76809

    02/16/2023, 11:46 AM
    Well, yeah, I thought of it as a way to have smaller css files but it doesn't make much sense anyway ^^
  • b

    bright-gpu-74537

    02/16/2023, 11:50 AM
    btw, if you just want to make tiny modifications to a "variablized" theme (default / dark)... the theme variables are your friend
  • b

    bright-gpu-74537

    02/16/2023, 11:51 AM
    https://community.haxeui.org/t/haxeui-v1-4-released/428
  • b

    bright-gpu-74537

    02/16/2023, 11:51 AM
    "CSS Variables" section
  • b

    bright-gpu-74537

    02/16/2023, 11:52 AM
    > Another very simple test was editing just these css variables:
    Copy code
    xml
    <var name="normal-background-color-start" value="#fdcccc" />
    <var name="normal-background-color-end" value="#f6bbbb" />
    <var name="normal-border-color" value="#d26666" />
    <var name="normal-border-size" value="2px" />
    <var name="normal-border-radius" value="6px" />
    <var name="normal-text-color" value="#444444" />
    
    <var name="selected-background-color" value="#d28888" />
    
    <var name="disabled-background-color-start" value="#fdeeee" />
    <var name="disabled-background-color-end" value="#f6cccc" />
    <var name="disabled-text-color" value="#cc9999" />
    <var name="disabled-border-color" value="#d2aaaa" />
  • e

    early-butcher-76809

    02/16/2023, 12:03 PM
    Very nice !
  • b

    bumpy-engineer-49082

    02/16/2023, 12:43 PM
    https://www.haxeui.org/api/guides/modules.html
  • b

    bumpy-engineer-49082

    02/16/2023, 12:43 PM
    I guess it has some answers too.
  • b

    bumpy-engineer-49082

    02/16/2023, 2:15 PM
    Are you planning on adding new Examples in Playground?
  • b

    bright-gpu-74537

    02/16/2023, 2:32 PM
    new examples for what?
  • b

    bright-gpu-74537

    02/16/2023, 2:32 PM
    playground or explorer?
  • b

    bumpy-engineer-49082

    02/16/2023, 2:33 PM
    For complex templates e.g. Windows.
  • b

    bright-gpu-74537

    02/16/2023, 2:34 PM
    yeah, valid idea... it would be nice for the explorer "pages" to be able to be run in the builder, but there are a fair few other resources, its not just code + xml (usually)
  • b

    bright-gpu-74537

    02/16/2023, 2:34 PM
    my concern about adding more examples is its yet another thing i have to keep up to date
  • b

    bumpy-engineer-49082

    02/16/2023, 2:34 PM
    Yes, that's the reason they are necessary.
  • b

    bright-gpu-74537

    02/16/2023, 2:35 PM
    fair point
  • b

    bright-gpu-74537

    02/16/2023, 2:36 PM
    what i might do at some point is another set of examples, but simpler and not "for the explorer" and then somehow integrate them automatically as example for the builder.. ... ill have a think
  • b

    bumpy-engineer-49082

    02/16/2023, 2:37 PM
    Why not just add them as projects? You probably already have them on your desktop.
  • b

    bumpy-engineer-49082

    02/16/2023, 2:37 PM
    (assuming by videos from your Facebook/twitter)
  • b

    bright-gpu-74537

    02/16/2023, 2:41 PM
    well, thats what i mean, a set of distinct projects for one type of "thing" (like a "buttons" project). I actually dont have anything that neatly arranged or separate ... ive got one set of projects ("test benches") where i just keep on piling on test app after test app
  • c

    clever-yak-82528

    02/16/2023, 2:44 PM
    it's been long enough that i can't remember how i was supposed to implement displaying images generated from data
  • c

    clever-yak-82528

    02/16/2023, 2:44 PM
    in hxwidgets
  • c

    clever-yak-82528

    02/16/2023, 2:44 PM
    @bright-gpu-74537 do you remember?
  • b

    bright-gpu-74537

    02/16/2023, 2:44 PM
    what is the "generated data" ?
  • c

    clever-yak-82528

    02/16/2023, 2:44 PM
    raw pixel data
  • b

    bright-gpu-74537

    02/16/2023, 2:44 PM
    RGBA?
  • c

    clever-yak-82528

    02/16/2023, 2:44 PM
    yeah
1...151815191520...1687Latest