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

    bright-gpu-74537

    03/04/2023, 5:12 PM
    im heading out for dinner, but lets maybe keep this in a thread from now on? Its literally flooding the channel for days 😄
  • a

    ambitious-knife-25690

    03/04/2023, 5:13 PM
    sure, sorry lol
  • a

    ambitious-knife-25690

    03/04/2023, 5:13 PM
    but just fixed checkbox
  • b

    bright-gpu-74537

    03/04/2023, 5:23 PM
    new component (work in progress): tag / taglist
  • r

    refined-greece-48002

    03/04/2023, 5:27 PM
    I like that
  • b

    bright-gpu-74537

    03/04/2023, 5:28 PM
    stupidly simple 🙂
  • s

    square-angle-35096

    03/04/2023, 5:46 PM
    uhhh, so i'm a complete noob to haxeui, and i tried to make a basic class just for testing here's the haxe file:
    Copy code
    hx
    package ui;
    
    import haxe.ui.containers.VBox;
    
    @:build(haxe.ui.ComponentBuilder.build("assets/main.xml"))
    class App extends VBox
    {
        public function new()
        {
            super(); 
            
            visible = true;
        }
    }
    and here's the xml
    Copy code
    xml
    <vbox width="100%" height="100%">
        <menubar width="100%">
            <menu text="File">
                <menuitem text="Open File"/>
            </menu>
        </menubar>
    </vbox>
  • s

    square-angle-35096

    03/04/2023, 5:46 PM
    But.... the output is this
  • s

    square-angle-35096

    03/04/2023, 5:47 PM
    if you're wondering, here's Main.hx
    Copy code
    hx
    package;
    
    import haxe.ui.Toolkit;
    import openfl.display.Sprite;
    
    class Main extends Sprite
    {
        var app:ui.App;
    
        public function new()
        {
            super();
    
            Toolkit.init();
            Toolkit.theme = "DARK";
    
            app = new ui.App();
            addChild(app);
        }
    }
  • b

    bright-gpu-74537

    03/04/2023, 5:50 PM
    i think the issue here is that the theme you tried to load "DARK" isnt a theme "dark" is
  • b

    bright-gpu-74537

    03/04/2023, 5:51 PM
    though arguably, it shouldnt be case sensitive... .... ... ? 🤔
  • b

    bright-gpu-74537

    03/04/2023, 5:51 PM
    it also might make sense to spit out some warnings if the theme cant be found, so at least you know whats going on
  • s

    square-angle-35096

    03/04/2023, 5:55 PM
    that might be a problem too but, it isn't really the main issue
  • s

    square-angle-35096

    03/04/2023, 5:56 PM
    but the issue really is that the text is being loaded for some reason, but not clickable
  • b

    bright-gpu-74537

    03/04/2023, 5:56 PM
    are you saying if you remove the
    Toolkit.theme = "DARK";
    line, its the same?
  • s

    square-angle-35096

    03/04/2023, 5:56 PM
    i could try to do that, but i don't think that would affect the fact that everything is broken
  • b

    bright-gpu-74537

    03/04/2023, 5:57 PM
    im not sure i follow the "everything is broken"... if the theme isnt loaded then there is no way for haxeui to know how to display things...
  • s

    square-angle-35096

    03/04/2023, 5:57 PM
    ohh
  • s

    square-angle-35096

    03/04/2023, 5:58 PM
    yep that was the problem
  • b

    bright-gpu-74537

    03/04/2023, 5:58 PM
    text will still display, but it wont look like anything
  • s

    square-angle-35096

    03/04/2023, 5:58 PM
    ok i'll try to do lowercase
  • s

    square-angle-35096

    03/04/2023, 5:58 PM
    i put it uppercase because it was like that on the documentation
  • b

    bright-gpu-74537

    03/04/2023, 5:58 PM
    lowercase will work fine
  • b

    bright-gpu-74537

    03/04/2023, 5:58 PM
    which docs?
  • s

    square-angle-35096

    03/04/2023, 5:58 PM
    ¯\_(ツ)_/¯
  • b

    bright-gpu-74537

    03/04/2023, 5:59 PM
    (you put it in uppercase btw)
  • s

    square-angle-35096

    03/04/2023, 5:59 PM
    http://haxeui.org/api/haxe/ui/themes/theme/
  • s

    square-angle-35096

    03/04/2023, 5:59 PM
    oops spelling error
  • b

    bright-gpu-74537

    03/04/2023, 6:00 PM
    ah... ok, thats a constant... so
    Toolkit.theme = Theme.DARK
    would have also been fine
  • s

    square-angle-35096

    03/04/2023, 6:00 PM
    yep, lowercase works
1...157615771578...1687Latest