NativeScript / NativeScript/nativescript-cli
tns resources generate splashes : use CSS background property values for the --background option
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
Description
Is your feature request related to a problem? Please describe.
When generating splash screen with the tns resources generate command I cant set a linear gradient background for example. The background is always one color, thus restricting the possibility of customizing our app.
Describe the solution you'd like
Something like tns resources generate splashes <Path to image> --background 'linear-gradient(135deg, rgba(7,10,61,1) 0%, rgba(18,51,127,1) 100%)'
The --background option can take the value of the CSS background (or background-color at least) property
Describe alternatives you've considered
Or add a --style option that can take the path of a css file that contain the property of the splash screen.
Additional context
None.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the implementation of the tns resources generate splashes command and trace how the --background option is parsed and applied to generated splash resources. Check the existing splash-generation behavior for Android and iOS, then verify that supported CSS background values produce the intended generated assets without breaking solid-color backgrounds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, javascript
- Domain
- cli, mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100