Skip to content

Commit

Permalink
feat: added UIGradient support, added gradients.story.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon4ik committed Mar 19, 2024
1 parent 4ae82c4 commit 25c1e1b
Show file tree
Hide file tree
Showing 7 changed files with 338 additions and 205 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ Also see **[introduction](docs/1_Introduction.md)**

- [X] UIAspectRatioConstraint
- [X] UICorner
- [ ] UIGradient
- [X] UIGradient
- [X] UIGridLayout [(see GridLayout)](src/components/GridLayout.tsx)
- [X] UIListLayout [(see ListLayout)](src/components/ListLayout.tsx)
- [ ] ~~UIFlexLayout~~ (in Roblox Studio Beta Features)
- [X] UIPadding
- [ ] UIPageLayout
- [ ] UIScale
Expand Down
10 changes: 9 additions & 1 deletion docs/2_Modifiers.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,15 @@ Add roblox's properties to element
```tsx
<Frame
noBackground // same as backgroundTransparency={1}
background={Color3 | string} // if its string, it will be converted from HEX color to Color3
background={Color3 | string} // if its string, it will be converted from HEX value to Color3

//
// Gradients: (NEW)
// background={Array<Color3 | string> | Array<ColorSequenceKeypoint>}
//
// see example at /stories/src/tests/gradients.story.tsx
//

backgroundTransparency={number}
>
...
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@
},
"devDependencies": {
"@rbxts/compiler-types": "2.2.0-types.0",
"@rbxts/types": "^1.0.754",
"@rbxts/types": "^1.0.763",
"@semantic-release/git": "^10.0.1",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.56.0",
"eslint": "^8.57.0",
"eslint-plugin-roblox-ts": "^0.0.36",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-unused-imports": "^3.1.0",
"roblox-ts": "2.3.0-dev-eb0ff9c",
"semantic-release": "^23.0.2",
"typescript": "^5.3.3"
"semantic-release": "^23.0.5",
"typescript": "^5.4.2"
},
"dependencies": {
"@rbxts/object-utils": "^1.0.4",
"@rbxts/pretty-react-hooks": "^0.4.1",
"@rbxts/react": "^0.1.0",
"@rbxts/react-roblox": "^0.3.0",
"@rbxts/pretty-react-hooks": "^0.4.2",
"@rbxts/react": "^0.1.1",
"@rbxts/react-roblox": "^0.3.4",
"@rbxts/ripple": "^0.7.1",
"@rbxts/services": "^1.5.4"
},
Expand Down
Loading

0 comments on commit 25c1e1b

Please sign in to comment.