앱 안 홈 버튼: 작아도 또렷한 노란 JJ 아이콘 (런처 아이콘과 같은 색감)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main
RyuJongJin 2026-10-04 22:53:38 +09:00
parent 6adb217857
commit 8fec4ae091
4 changed files with 13 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -84,7 +84,7 @@ class AppNavButtons extends StatelessWidget {
width: width, width: width,
child: Row(children: [ child: Row(children: [
btn( 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 화면')]), trf('홈 화면 ({0}) · 환경 설정에서 바꿈', [homeIsBrowser ? tr('웹 브라우저') : tr('MKV 화면')]),
scope == null ? null : () => toHome(context), scope == null ? null : () => toHome(context),
), ),

View File

@ -94,6 +94,7 @@ flutter:
- assets/tray_icon.ico - assets/tray_icon.ico
- assets/l10n/ - assets/l10n/
- assets/icon/app_icon_256.png - assets/icon/app_icon_256.png
- assets/icon/app_button_256.png
# To add assets to your application, add an assets section, like this: # To add assets to your application, add an assets section, like this:
# assets: # assets:

View File

@ -138,6 +138,17 @@ def main():
master.save(out / 'app_icon_1024.png') master.save(out / 'app_icon_1024.png')
master.resize((256, 256), Image.LANCZOS).save(out / 'app_icon_256.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) 는 단순 버전, 큰 크기는 필름 띠 포함 버전 # 작은 크기 (16~32px) 는 단순 버전, 큰 크기는 필름 띠 포함 버전
simple = make_master(small=True) simple = make_master(small=True)
simple.resize((256, 256), Image.LANCZOS).save(out / 'app_icon_small_256.png') simple.resize((256, 256), Image.LANCZOS).save(out / 'app_icon_small_256.png')