https://linen.dev logo
Join Discord
Powered by
# react
  • u

    user

    01/08/2020, 3:50 PM
    The rest should work
  • a

    ambitious-knife-25690

    01/08/2020, 3:50 PM
    Does MuiTheme.DefaultTheme get the actual default theme props or is it a template for a base theme?
  • u

    user

    01/08/2020, 3:51 PM
    It's the typing of current default material-ui theme
  • u

    user

    01/08/2020, 3:51 PM
    I think it's mostly complete
  • u

    user

    01/08/2020, 3:51 PM
    Declaring your own theme is a little trickier because of the lack of default type parameters in haxe =/
  • u

    user

    01/08/2020, 3:51 PM
    (not really hard, just ugly)
  • a

    ambitious-knife-25690

    01/08/2020, 3:52 PM
    That's fine, that's all I want
  • a

    ambitious-knife-25690

    01/08/2020, 3:52 PM
    default miu theme
  • u

    user

    01/08/2020, 3:52 PM
    You can still override values without changing types / adding fields anyway
  • u

    user

    01/08/2020, 3:52 PM
    Most of the time that's enough
  • a

    ambitious-knife-25690

    01/08/2020, 3:52 PM
    if I can get that working then I can port alternative themes following the structure you've defined when I need them
  • u

    user

    01/08/2020, 3:53 PM
    Ping me when you do, I can help (provide an example implementation, etc.)
  • a

    ambitious-knife-25690

    01/08/2020, 3:55 PM
    What am I meant to define for something like
    toolbar: theme.mixins.toolbar,
  • a

    ambitious-knife-25690

    01/08/2020, 3:55 PM
    I'd need to get access to the present theme, but
    DefaultTheme
    is just a typedef which also "apparently doesn't have mixins"
  • u

    user

    01/08/2020, 3:55 PM
    Oo it should have mixins
  • a

    ambitious-knife-25690

    01/08/2020, 3:56 PM
    I have no autocompletion for it
  • u

    user

    01/08/2020, 3:56 PM
    Don't add var theme, it's the theme argument that should be typed as DefaultTheme
  • a

    ambitious-knife-25690

    01/08/2020, 3:56 PM
    and app isn't compiling
  • a

    ambitious-knife-25690

    01/08/2020, 3:56 PM
    🤦‍♂️
  • a

    ambitious-knife-25690

    01/08/2020, 3:57 PM
    Is the API perhaps out of sync?
  • u

    user

    01/08/2020, 3:58 PM
    Hmm
  • u

    user

    01/08/2020, 3:58 PM
    Damn, I failed for this mixin :D it should be an abstract with @:to css.Properties
  • u

    user

    01/08/2020, 3:58 PM
    Can you cast for now? it should work :x
  • u

    user

    01/08/2020, 4:00 PM
    ... or it could just be css.Properties..
  • a

    ambitious-knife-25690

    01/08/2020, 4:02 PM
    nah cast works
  • a

    ambitious-knife-25690

    01/08/2020, 4:03 PM
    just changing things like
    fixed
    to
    Fixed
    now
  • u

    user

    01/08/2020, 4:03 PM
    Yeah that's painful to migrate..
  • u

    user

    01/08/2020, 4:03 PM
    Sorry x)
  • a

    ambitious-knife-25690

    01/08/2020, 4:03 PM
    😂
  • a

    ambitious-knife-25690

    01/08/2020, 4:03 PM
    Fixing that wouldn't be hard in regards to the haxe api
1...262728...80Latest