NativeScript / NativeScript/nativescript-cli
tns resources generate splashes : use CSS background property values for the --background option
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 tns resources generate splashes 命令的实现入手,跟踪 --background 选项如何被解析并应用于生成的 splash 资源。检查 Android 和 iOS 现有的 splash 生成行为,然后验证受支持的 CSS 背景值能够生成预期的资源,同时不会破坏纯色背景。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- css, javascript
- 领域
- cli, mobile-dev
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100