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

    bright-gpu-74537

    02/12/2023, 9:33 AM
    not sure i follow
  • i

    icy-zebra-52882

    02/12/2023, 2:11 PM
    haxeui-html5 doesn't play nice with larger browser-default font sizes
  • i

    icy-zebra-52882

    02/12/2023, 2:12 PM
    though it could just be the component explorer
  • i

    icy-zebra-52882

    02/12/2023, 2:53 PM
    seems like it's just the explorer, I can make the template and increase font size with no issues
  • c

    clever-yak-82528

    02/12/2023, 3:03 PM
    in the examples, we used %itemCount% as a variable in the conditions and as a number
  • c

    clever-yak-82528

    02/12/2023, 3:03 PM
    but i saw that you implemented that using reflection
  • c

    clever-yak-82528

    02/12/2023, 3:04 PM
    there are only a certain number of variables required to cover all languages, so these variables could be hardcoded instead of using reflection
  • b

    bright-gpu-74537

    02/12/2023, 3:17 PM
    well, it doesnt have to be reflection, could just be a map or whatever, but surely you would need the variable?
  • b

    bright-gpu-74537

    02/12/2023, 3:17 PM
    hmmmm, howd you increase the default font size?
  • i

    icy-zebra-52882

    02/12/2023, 3:17 PM
    firefox font options
  • b

    bright-gpu-74537

    02/12/2023, 3:17 PM
    right
  • i

    icy-zebra-52882

    02/12/2023, 3:18 PM
    specifically it seems to be the minimum font size that affects it
  • i

    icy-zebra-52882

    02/12/2023, 3:18 PM
    I'm guessing the explorer is trying to set 12pt font but my settings have minimum font size as 16pt
  • i

    icy-zebra-52882

    02/12/2023, 3:19 PM
    fix would be either remove setting the font size (if it does) on explorer, or set font size default as 1rem
  • b

    bright-gpu-74537

    02/12/2023, 3:19 PM
    yeah, still would have thought it would have got the right metrics... ah! I know... the explorer uses the expermental "rapid_text_metrics" flag
  • b

    bright-gpu-74537

    02/12/2023, 3:20 PM
    so that'll be whats going on... 100%
  • h

    hallowed-ocean-84954

    02/13/2023, 1:28 AM
    If you run this and select the Lighting Test section you'll notice that the element text attr is not greyed out despite the vbox being disabled. Everything else looks and behaves correctly disabled.
  • b

    bright-gpu-74537

    02/13/2023, 8:24 AM
    yeah, fair point... i dont think there are any styles setup for disabled frames, not hard to do though
  • b

    bright-gpu-74537

    02/13/2023, 8:39 AM
    alright, fixed, builder updated so the original repro works now
  • b

    bright-gpu-74537

    02/13/2023, 9:48 AM
    ok, so ive changed it a little, since i like the old call format:
    {{count, 123}}
    , its nice and clean, so ive also added "replacements", so you can do something like:
    Copy code
    count=You {
        none: have no projects
        one: have one project
        many: have [0] projects
    } currently active
  • b

    bright-gpu-74537

    02/13/2023, 9:49 AM
    [0]
    being the parameter
  • b

    bright-gpu-74537

    02/13/2023, 9:49 AM
    (up to 4 params allowed currently, like the current system)
  • b

    bright-gpu-74537

    02/13/2023, 9:50 AM
    the replacements (ie, "many") is just another set of strings in an "expression-replacements.properties" file that is part of the locale:
  • b

    bright-gpu-74537

    02/13/2023, 9:50 AM
    Copy code
    zero=[0]=0
    none=[0]=0
    one=[0]=1
    many=[0]>1
  • b

    bright-gpu-74537

    02/13/2023, 9:50 AM
    again, [0] being the param index
  • b

    bright-gpu-74537

    02/13/2023, 9:51 AM
    so
    many: have [0] projects
    turns into
    [0]>1: have [0] projects
  • b

    bright-gpu-74537

    02/13/2023, 9:52 AM
    thoughts?
  • b

    bright-gpu-74537

    02/13/2023, 9:55 AM
    another eg:
  • b

    bright-gpu-74537

    02/13/2023, 9:55 AM
    Copy code
    count=[1] {
        none: has no projects
        one: has one project
        many: has [0] projects
    } currently active
  • b

    bright-gpu-74537

    02/13/2023, 9:55 AM
    > Ian Harrigan has one project currently active
1...150315041505...1687Latest