diff --git a/assets/icon/app_button_256.png b/assets/icon/app_button_256.png new file mode 100644 index 0000000..b025d72 Binary files /dev/null and b/assets/icon/app_button_256.png differ diff --git a/lib/ui/app_actions.dart b/lib/ui/app_actions.dart index 6c7786c..98f6448 100644 --- a/lib/ui/app_actions.dart +++ b/lib/ui/app_actions.dart @@ -84,7 +84,7 @@ class AppNavButtons extends StatelessWidget { width: width, child: Row(children: [ btn( - Image.asset('assets/icon/app_icon_256.png', width: 26, height: 26, filterQuality: FilterQuality.medium), + Image.asset('assets/icon/app_button_256.png', width: 26, height: 26, filterQuality: FilterQuality.medium), trf('홈 화면 ({0}) · 환경 설정에서 바꿈', [homeIsBrowser ? tr('웹 브라우저') : tr('MKV 화면')]), scope == null ? null : () => toHome(context), ), diff --git a/pubspec.yaml b/pubspec.yaml index ffe4863..9f7e14c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -94,6 +94,7 @@ flutter: - assets/tray_icon.ico - assets/l10n/ - assets/icon/app_icon_256.png + - assets/icon/app_button_256.png # To add assets to your application, add an assets section, like this: # assets: diff --git a/tool/make_icon.py b/tool/make_icon.py index a28f971..2fbfc5f 100644 --- a/tool/make_icon.py +++ b/tool/make_icon.py @@ -138,6 +138,17 @@ def main(): master.save(out / 'app_icon_1024.png') master.resize((256, 256), Image.LANCZOS).save(out / 'app_icon_256.png') + # 앱 안 왼쪽 위 홈 버튼 (26px 정도): 바탕 + 큰 노란 JJ 만 (작아도 또렷하게) + button = Image.new('RGBA', (S, S), (0, 0, 0, 0)) + button.paste(gradient(S), (0, 0), rounded_mask(S, int(S * 0.22))) + font = ImageFont.truetype(FONT, int(S * 0.62)) + d = ImageDraw.Draw(button) + stroke = int(S * 0.035) + l, t, r, b = d.textbbox((0, 0), 'JJ', font=font, stroke_width=stroke) + d.text(((S - (r - l)) / 2 - l, (S - (b - t)) / 2 - t), 'JJ', font=font, fill=YELLOW + (255,), + stroke_width=stroke, stroke_fill=OUTLINE + (255,)) + button.resize((256, 256), Image.LANCZOS).save(out / 'app_button_256.png') + # 작은 크기 (16~32px) 는 단순 버전, 큰 크기는 필름 띠 포함 버전 simple = make_master(small=True) simple.resize((256, 256), Image.LANCZOS).save(out / 'app_icon_small_256.png')