NativeScript / NativeScript/nativescript-cli

tns resources generate splashes : use CSS background property values for the --background option

オープン
#4,831 コメント 1 件 リアクション 6 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

feature help wanted resources generation
主要言語
JavaScript
スター
1.1k
フォーク
204
平均マージ
1日 9時間
マージ済み PR(30日)
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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

tns resources generate splashes コマンドの実装から始め、--background オプションがどのように解析され、生成された splash リソースに適用されるかを追跡してください。Android と iOS の既存の splash 生成動作を確認し、サポートされている CSS の背景値によって意図した生成アセットが作成され、単色の背景が壊れないことを検証してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
css, javascript
領域
cli, mobile-dev
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。