Coder Social home page Coder Social logo

Comments (7)

ianharrigan avatar ianharrigan commented on June 16, 2024 1

Nice catch - ill check it out - thanks!

from haxeui-theme-kenney.

anissen avatar anissen commented on June 16, 2024

The <splitter>-component isn't rendered but doesn't cause any errors.

from haxeui-theme-kenney.

ianharrigan avatar ianharrigan commented on June 16, 2024

OK, this should be fixed now in latest kenney theme (git version).

Can you close this if that works.

Cheers,
Ian

from haxeui-theme-kenney.

anissen avatar anissen commented on June 16, 2024

Fantastic, thanks a lot for the quick fix! 👍🏻

However, there seems to be a difference in how the different themes handles the sidebar.

Dark theme:

Screen.Recording.2021-10-25.at.21.06.38.mov

Kenney theme:

Screen.Recording.2021-10-25.at.21.07.18.mov

from haxeui-theme-kenney.

ianharrigan avatar ianharrigan commented on June 16, 2024

hmmm, that seems a little strange, it looks like its running it in reverse or something? There shouldnt be any difference what-so-ever between the two... are you sure thats the only difference in those recordings?

from haxeui-theme-kenney.

anissen avatar anissen commented on June 16, 2024

Yeah, the only difference is changing haxe.ui.Toolkit.theme from dark to kenney. I'll do some more digging when time allows.

By the way, here's the ui.xml-file I'm using:

<sidebar width="100%" height="500" position="top" method="float" modal="true" hidden="false">
    <vbox width="100%">
        <splitter width="100%" height="500">
            <frame text="Code" width="100%" height="100%">
                <vbox width="100%" height="100%">
                    <textarea id="script" width="100%" height="100%" text="I am a text area 1" style="font-size: 16px; font-name: 'BrassMono';" />
                    <button width="100%" text="Reload" />
                </vbox>
            </frame>
            <frame text="Issues" width="100%" height="100%">
                <listview width="100%" height="100%">
                    <item-renderer width="100%" layoutName="horizontal">
                        <image resource="haxeui-core/styles/default/haxeui_small.png" verticalAlign="center" />
                        <vbox width="100%">
                            <label id="text" width="100%" style="font-bold: true;font-underline:true;" />
                            <label id="subText" width="100%" style="color: #888888;font-size:12px;" />
                        </vbox>
                        <button id="action" verticalAlign="center" />
                    </item-renderer>
                    <data>
                        <item text="Item 1" subText="Sub text for item 1" action="Action 1" />
                        <item text="Item 2" subText="Sub text for item 2" action="Action 2" />
                        <item text="Item 3" subText="Sub text for item 3" action="Action 3" />
                        <item text="Item 4" subText="Sub text for item 4" action="Action 4" />
                        <item text="Item 5" subText="Sub text for item 5" action="Action 5" />
                        <item text="Item 6" subText="Sub text for item 6" action="Action 6" />
                        <item text="Item 7" subText="Sub text for item 7" action="Action 7" />
                        <item text="Item 8" subText="Sub text for item 8" action="Action 8" />
                        <item text="Item 9" subText="Sub text for item 9" action="Action 9" />
                    </data>
                </listview>
            </frame>
        </splitter>
    </vbox>
</sidebar>

from haxeui-theme-kenney.

anissen avatar anissen commented on June 16, 2024

I found the issue! 🎉

I was doing the following:

final ui = haxe.ui.macros.ComponentMacros.buildComponent("ui.xml");
ui.show();

ui.show() was a leftover from before I added hidden="false" to the sidebar in ui.xml. When I removed that line, it worked as expected (and the same) with both the "dark" and "kenney" theme.

So it appears there's something in the SideBar.show-function that works differently on different themes -- maybe there's a difference in the style class names or in the default values?

from haxeui-theme-kenney.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.