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

    bright-gpu-74537

    07/03/2020, 3:33 PM
    finally
  • b

    bright-gpu-74537

    07/03/2020, 3:33 PM
    ok, you'll need latest haxeui-core. I also made some (unrelated) changes to haxeui-hxwidgets and hxWidgets so you might as well grab the lot
  • b

    bright-gpu-74537

    07/03/2020, 3:34 PM
    let me know if that works for you 🙂
  • b

    bright-gpu-74537

    07/03/2020, 3:34 PM
    ( @User )
  • t

    tall-dinner-7562

    07/03/2020, 3:38 PM
    Okay! Will try it out
  • t

    tall-dinner-7562

    07/03/2020, 3:53 PM
    Works 👍 thanks!
  • b

    bright-gpu-74537

    07/03/2020, 3:54 PM
    perfect, can you screenshot? Interested to see if it looks as it should
  • b

    bright-gpu-74537

    07/03/2020, 3:54 PM
    (and my macbook is off)
  • t

    tall-dinner-7562

    07/03/2020, 3:56 PM
    Sure one second
  • b

    bright-gpu-74537

    07/03/2020, 3:56 PM
    or better yet, this:
  • b

    bright-gpu-74537

    07/03/2020, 3:57 PM
    https://pastebin.com/yUAqevQm
  • t

    tall-dinner-7562

    07/03/2020, 3:58 PM
    https://prnt.sc/tb93zg
  • b

    bright-gpu-74537

    07/03/2020, 4:03 PM
    thats nice, the top two are composites and the bottom is fully native (ie, wxListCtrl)
  • b

    bright-gpu-74537

    07/03/2020, 4:03 PM
    i actually like the composites more 😄
  • b

    bright-gpu-74537

    07/03/2020, 4:03 PM
    basically, if you use a custom item renderer then its no longer "native native" but instead is a composite built out of native components
  • b

    bright-gpu-74537

    07/03/2020, 4:04 PM
    and then stuff like this to make things "correct":
  • b

    bright-gpu-74537

    07/03/2020, 4:04 PM
    Copy code
    css
    .listview .even {
        background-color: platform-color(listbox);
    }
  • b

    bright-gpu-74537

    07/03/2020, 4:05 PM
    heres the windows version:
  • t

    tall-dinner-7562

    07/03/2020, 4:07 PM
    Ahh okay I see what you're saying. So basically if you use a custom item renderer, you'll have to apply some styling to get that native feel due to it being a composite of components? By the way that's another thing I've been wondering about. In terms of CSS, it's not global correct? So it's something we'd add to the build process?
  • b

    bright-gpu-74537

    07/03/2020, 4:10 PM
    you may have to apply styling... it depends really, for something like the listview, it was kinda "fine" on windows with the default (composite) theme... and "alright" on osx light theme... .... dark theme however looked... ... well, like the light theme... so i came up with the ability to query system colours in the the css
    platform-color(...);
  • b

    bright-gpu-74537

    07/03/2020, 4:10 PM
    im not sure i follow about the css
  • b

    bright-gpu-74537

    07/03/2020, 4:10 PM
    > In terms of CSS, it's not global correct? So it's something we'd add to the build process?
  • b

    bright-gpu-74537

    07/03/2020, 4:11 PM
    you can add inline css to the components, or style sheets, or blocks or themes. Keep in mind though that when it comes to native (especially osx) the OS itself will limit what you can do
  • b

    bright-gpu-74537

    07/03/2020, 4:12 PM
    eg:
  • b

    bright-gpu-74537

    07/03/2020, 4:14 PM
    Copy code
    xml
    <button width="100" text="Styled" height="100" style="font-size: 24;background-color:red" />
  • b

    bright-gpu-74537

    07/03/2020, 4:14 PM
    if you try to create the same on your OSX, you will simply get a 100px wide (not high) button with the same font size and not a red bg
  • b

    bright-gpu-74537

    07/03/2020, 4:15 PM
    because the OS itself will not allow that type of styling (OSX is super limiting in that way) - qt allows alot more control over that, but that is because qt isnt actually native, its custom drawn, but custom drawn very very well
  • b

    bright-gpu-74537

    07/03/2020, 4:15 PM
    (wx on the other hand is 100% native)
  • t

    tall-dinner-7562

    07/03/2020, 4:26 PM
    Gotcha I understand! So essentially for maximum customizations you'd need another layer of abstraction over native like Qt to really maximize styling
  • b

    bright-gpu-74537

    07/03/2020, 4:26 PM
    yup, exactly
1...308309310...1687Latest