https://linen.dev logo
Join Discord
Powered by
# ceramic
  • a

    ambitious-knife-25690

    05/01/2023, 11:05 PM
    i'm not sure it would be easy 🤔 I guess haxeui-ceramic could just start off with elements that have rounded corners can only support solid colours
  • b

    billowy-waiter-28954

    05/02/2023, 7:23 AM
    I think Ceramic desperately need a rounded rect visual, you are the second person needing it in a week 😄
  • b

    billowy-waiter-28954

    05/02/2023, 7:24 AM
    But basically RoundedRect would be a mesh subclass (like Arc or Line)
  • b

    billowy-waiter-28954

    05/02/2023, 7:25 AM
    And you would be able to create a gradient by setting the right color on every vertices
  • a

    ambitious-knife-25690

    05/02/2023, 12:44 PM
    would that work? how so? each corner arc is composed of its own visual
  • a

    ambitious-knife-25690

    05/02/2023, 12:47 PM
    ohh.. hmm maybe there's a way to remake this so its less compartmented
  • b

    billowy-waiter-28954

    05/02/2023, 12:59 PM
    @bright-gpu-74537 does it have to be separated into multiple parts?
  • a

    ambitious-knife-25690

    05/02/2023, 12:59 PM
    I was actually just thinking about
  • a

    ambitious-knife-25690

    05/02/2023, 1:00 PM
    haxeui does allow a user to set color on "sides"
  • a

    ambitious-knife-25690

    05/02/2023, 1:00 PM
    and it does allow each corner to have its own radius
  • a

    ambitious-knife-25690

    05/02/2023, 1:01 PM

    https://cdn.discordapp.com/attachments/853414608747364352/1102942903317299250/gif.gifâ–¾

  • a

    ambitious-knife-25690

    05/02/2023, 1:01 PM
    here's one example of where it is used
  • b

    billowy-waiter-28954

    05/02/2023, 1:13 PM
    And how do you currently render those borders?
  • a

    ambitious-knife-25690

    05/02/2023, 1:26 PM
    ooh, memory might not be 100% here but its something like each border is its own line, background is its own visual and they're all grouped into a single visual
  • b

    billowy-waiter-28954

    05/02/2023, 1:34 PM
    If the line is just straight and either vertical or horizontal, it's better to simply use a quad
  • b

    billowy-waiter-28954

    05/02/2023, 1:34 PM
    (with border radius, that's another story...)
  • a

    ambitious-knife-25690

    05/02/2023, 1:40 PM
    ahh, i'll switch that out at some point then
  • a

    ambitious-knife-25690

    05/02/2023, 1:40 PM
    i thought quad would be over engineered for a line 😆
  • b

    billowy-waiter-28954

    05/02/2023, 2:11 PM
    Ah ah quite the opposite. A quad is pretty lightweight compared to a line object
  • b

    billowy-waiter-28954

    05/02/2023, 2:12 PM
    A line object is actually a mesh with a lot of vertices if you start to draw curves etc...
  • b

    bright-gpu-74537

    05/02/2023, 2:22 PM
    it doesnt have to be... rounded, composite borders are kinda optional... in the sense they are used pretty sparingly, it sounds like it would be quite the job to support them?
  • a

    ambitious-knife-25690

    05/02/2023, 2:36 PM
    it might be yeah, just trying to find areas that don't work and see if i can sort them out
  • a

    ambitious-knife-25690

    05/02/2023, 2:37 PM
    if i had to give an importance to anything, it would be the blurred text in any scrollview vs corner radius'
  • b

    bright-gpu-74537

    05/02/2023, 2:41 PM
    for borders, you can just do something like:
    Copy code
    haxe
    switch (style.borderType) {
        case StyleBorderType.Compound:
            // means you will ignore border radius
        case StyleBorderType.Full:
            // means you can use border radius
        case StyleBorderType.None:
           // doesnt matter
    }
  • a

    ambitious-knife-25690

    05/02/2023, 2:42 PM
    ooo nice, do i have to render no radius in
    None
    or is this prop only for borders with radius'?
  • b

    bright-gpu-74537

    05/02/2023, 2:42 PM
    well, technically yeah, you can have a component that doesnt have a border, but does have border-radius set
  • b

    bright-gpu-74537

    05/02/2023, 2:44 PM
    http://haxeui.org/builder/?5275d458
  • a

    ambitious-knife-25690

    05/02/2023, 2:44 PM
    it's often funny how seemingly "small" things have some fun complications to them 😄
  • b

    bright-gpu-74537

    05/02/2023, 2:44 PM
    compound rounded borders with gradients is like the holy grail of haxeui backends... alot dont support them
  • a

    ambitious-knife-25690

    05/02/2023, 2:45 PM
    yeah, i can see my self using them now and then
1...114115116...124Latest