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

    user

    07/10/2020, 2:15 PM
    nvm, wrong one too
  • u

    user

    07/10/2020, 2:16 PM
    node_modules/@material-ui/core/styles/colorManipulator.d.ts
  • u

    user

    07/10/2020, 2:16 PM
    Copy code
    export type ColorFormat = 'rgb' | 'rgba' | 'hsl' | 'hsla';
    export interface ColorObject {
      type: ColorFormat;
      values: [number, number, number] | [number, number, number, number];
    }
    
    export function hexToRgb(hex: string): string;
    export function rgbToHex(color: string): string;
    export function hslToRgb(color: string): string;
    export function decomposeColor(color: string): ColorObject;
    export function recomposeColor(color: ColorObject): string;
    export function getContrastRatio(foreground: string, background: string): number;
    export function getLuminance(color: string): number;
    export function emphasize(color: string, coefficient?: number): string;
    export function fade(color: string, value: number): string;
    export function darken(color: string, coefficient?: number): string;
    export function lighten(color: string, coefficient?: number): string;
  • u

    user

    07/10/2020, 2:16 PM
    This should be added as an extern class to haxe mui
  • a

    ambitious-knife-25690

    07/10/2020, 2:21 PM
    @:jsRequire('@material-ui/core/styles')
    I'd just reference this in a
    ColorManipulator
    class?
  • u

    user

    07/10/2020, 2:27 PM
    I'll add it
  • u

    user

    07/10/2020, 2:33 PM
    https://github.com/kLabz/haxe-material-ui/commit/5b7e955e3a76352e3c3cc8fa1b3007645633a782
  • u

    user

    07/10/2020, 2:33 PM
    You can do things like this
    Copy code
    import mui.Colors;
    import mui.core.styles.ColorManipulator.*;
    
    trace(fade('#DD8800', 0.42));
    trace(fade(RGB(255, 255, 0), 0.2));
    trace(darken(RGB(255, 255, 0), 0.2));
  • a

    ambitious-knife-25690

    07/10/2020, 2:42 PM
    sick!
  • a

    ambitious-knife-25690

    07/10/2020, 2:42 PM
    But that's just made me realise something
  • a

    ambitious-knife-25690

    07/10/2020, 2:42 PM
    quoting 'calc()' isn't how i'm meant to use 'calc' xD
  • a

    ambitious-knife-25690

    07/10/2020, 2:42 PM
    need function auto imports 😂
  • u

    user

    07/10/2020, 2:48 PM
    You mean that?
    maxHeight: 'calc(100% - ${FOOTER_HEIGHT}px)',
  • a

    ambitious-knife-25690

    07/10/2020, 2:50 PM
    yeah
  • u

    user

    07/10/2020, 2:51 PM
    Well that works, do you have issues with it?
  • a

    ambitious-knife-25690

    07/10/2020, 2:56 PM
    I thought I did, but it appears like I missed a css property
  • a

    ambitious-knife-25690

    07/10/2020, 2:56 PM
    Header matches appropriately!
  • a

    ambitious-knife-25690

    07/10/2020, 2:56 PM
    Thanks 😁
  • u

    user

    07/10/2020, 2:56 PM
    👍
  • u

    user

    07/10/2020, 2:56 PM
    I'll see what I can do for string interpolation tonight or this week-end
  • a

    ambitious-knife-25690

    07/10/2020, 2:59 PM
    Much appreciated!
  • u

    user

    07/12/2020, 12:58 PM
    Probably more like next week x)
  • a

    ambitious-knife-25690

    07/12/2020, 7:02 PM
    don't worry about it broski
  • a

    ambitious-knife-25690

    07/12/2020, 7:02 PM
    tomorrow or 2 weeks it's still appreciated 😂
  • a

    ambitious-knife-25690

    07/13/2020, 12:38 AM
    It's on the standard html code
    <b></b>
  • a

    ambitious-knife-25690

    07/13/2020, 12:38 AM
    This works, but some times it breaks the language server?
  • a

    ambitious-knife-25690

    07/13/2020, 12:38 AM
    I have to restart the language server or close vscode to get the error to go away
  • a

    ambitious-knife-25690

    07/13/2020, 12:58 AM
    noooo it's something else causing the issue 😭
  • a

    ambitious-knife-25690

    07/13/2020, 12:58 AM
    this is manifesting like the
    x
    is redefined error
  • u

    user

    07/13/2020, 5:37 AM
    What is "this.good_hours" ?
1...515253...80Latest