This repository was archived by the owner on Sep 12, 2026. It is now read-only.
Repository navigation
feat: 背景画像と透明度を設定画面で設定可能に - #4
Merged
Merged
Conversation
- assets/images/wallpaper[1-3].jpg を assets/images/wallpaper/ 配下へ移動 - pubspec.yaml / AppConstants.wallpaperAsset を新パスに更新 - docs/design/feature/settings.md に背景画像・透明度の仕様を追記 - README にユーザー背景画像の配置方法を追記 - docs/design/feature/images/画面構成-設定.webp を更新 - AppConstants.wallpaperOpacity のデフォルトを 0.4 に変更 - AGENTS.md に git 操作の禁止事項を追記 壁紙設定は settings.json に保存される仕様に準拠
- SettingsScreenSettings に wallpaper / wallpaperOpacity を追加し settings.json で永続化 - WallpaperOption / WallpaperService を追加し、同梱壁紙 (assets/images/wallpaper) とユーザー壁紙 (.config/tree-image-optimizer/wallpaper) を統合して一覧化 - 対応拡張子 jpg/png、ファイル名ソート、(サンプル)prefix、存在しない場合のフォールバックを仕様通りに実装 - SettingsViewModel で壁紙一覧の読み込みと選択補正を追加 - HomeShell を Consumer化し、設定値の壁紙を Opacity で表示 (assets は Image.asset、ユーザー壁紙は Image.file) - SettingsScreen に壁紙プルダウンと透明度スライダー (0.0-1.0) を追加 - l10n に wallpaper / infoWallpaper / wallpaperOpacity を追加 - providers に wallpaperServiceProvider を追加
- 背景画像を BoxFit.contain + Alignment.center でアスペクト比を保ったまま表示 - SettingsScreenSettings に wallpaperBackgroundColor (#FFFFFF 初期値) を追加 - SettingsRepository で hex バリデーションと永続化 - SettingsViewModel で背景色の管理と保存 - HomeShell で背景色を Container(color:) で適用し、letterbox に対応 - SettingsScreen に背景色カラーピッカー (プリセット12色、ダイアログ) を追加 - l10n に wallpaperBackgroundColor / infoWallpaperBackgroundColor を追加 - docs/design/feature/settings.md / 画面構成-設定.webp を新仕様に更新
- pubspec.yaml に flutter_color_picker_plus 2.2.1 を追加 - SettingsScreen の _showColorPicker を ColorPicker (HSV, hexInputBar, enableAlpha:false) に置換し高機能化 - プリセット12色の GridView から HSV/RGB スライダー・hex 入力対応のピッカーへ変更
- ColorPicker の Dropdown/TextField が Material なしで例外を投げていたため、labelTypes を空にし hexInputBar を無効化 - portraitOnly: true と colorPickerWidth: 300 でレイアウト崩れ (RenderFlex overflow) を解消 - 選択ボタン押下時の StackTrace を解消し、HSV ピッカーが正常に表示されることを確認
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
背景画像と背景画像の透明度を設定画面で選択できるようにし、
settings.jsonに保存されるようにしました。仕様
docs/design/feature/settings.md/README.md/docs/design/feature/images/画面構成-設定.webpに記載の新仕様に準拠変更内容
assets/images/wallpaper1.jpg等をassets/images/wallpaper/配下へ移動、pubspec.yaml/AppConstants.wallpaperAssetを新パスに更新WallpaperOption(name/source/isBundled, label) /WallpaperService(同梱assets/images/wallpaper/とユーザー~/.config/tree-image-optimizer/wallpaperを統合、jpg/png 対応、ソート、(サンプル)prefix、フォールバック)SettingsScreenSettingsにwallpaper/wallpaperOpacity追加、SettingsRepositoryでdouble対応と永続化SettingsViewModelで壁紙一覧読み込みと選択補正、SettingsStateにwallpaper/wallpaperOpacity/wallpapers/webpVersion追加HomeShellをConsumerStatefulWidget化し、設定値の壁紙をOpacity+Image.asset/Image.fileで表示SettingsScreenに壁紙プルダウン (DropdownButtonFormField+InfoTooltip) と透明度スライダー (Slider0.0-1.0, divisions 10) をsectionBasicに追加wallpaper/infoWallpaper/wallpaperOpacity/infoWallpaperOpacityをapp_ja/en.arbに追加検証
fvm flutter gen-l10n/fvm dart format/fvm flutter analyze=> No issuesfvm flutter test=> 40 passedfvm flutter build macos --debug=> Built~/.config/tree-image-optimizer/wallpaperに画像配置時の表示・フォールバックを確認関連
docs/design/feature/settings.mddocs/design/feature/images/画面構成-設定.webp