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