-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: add Icon schema #152
Conversation
large = 2; | ||
} | ||
|
||
enum PixelDensity { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is horrible but you can't use numbers as elements of an enum
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ha! I guess so, maybe align the field numbers for sanity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enums must start at 0
:'|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it work if you do something like 1x
, 2x
(or maybe x1
, x2
)? not sure if any better but just an idea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, the second option works. I'm adding it since its less confusing to look at...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work, all looks fine to me. Some small suggestions, nothing blocking.
large = 2; | ||
} | ||
|
||
enum PixelDensity { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ha! I guess so, maybe align the field numbers for sanity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work, all looks fine to me. Some small suggestions, nothing blocking.
Co-authored-by: Gregor MacLennan <[email protected]>
Co-authored-by: Gregor MacLennan <[email protected]>
in protobufs, enums need to start at 0, so we can't align the numbers...
This would close #149
Default values have been set as:
mimeType: 'svg'
pixelDensity: 1,
size: 'small'
Should tests for
Icon
be added on this ticket??