From 47615b143c03f98d2668f2d29098ccc0df0a7455 Mon Sep 17 00:00:00 2001 From: Egzon Arifi Date: Wed, 29 Nov 2023 12:19:25 +0100 Subject: [PATCH 1/2] Menu bar Lingua icon --- Lingua-App/Lingua/Lingua/App/LinguaApp.swift | 4 +-- .../Contents.json | 23 ++++++++++++++++++ .../lingua_menu_bar_icon.png | Bin 0 -> 435 bytes .../lingua_menu_bar_icon@2x.png | Bin 0 -> 828 bytes .../lingua_menu_bar_icon@3x.png | Bin 0 -> 1335 bytes 5 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/Contents.json create mode 100644 Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/lingua_menu_bar_icon.png create mode 100644 Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/lingua_menu_bar_icon@2x.png create mode 100644 Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/lingua_menu_bar_icon@3x.png diff --git a/Lingua-App/Lingua/Lingua/App/LinguaApp.swift b/Lingua-App/Lingua/Lingua/App/LinguaApp.swift index 3b2c82e..e75438b 100644 --- a/Lingua-App/Lingua/Lingua/App/LinguaApp.swift +++ b/Lingua-App/Lingua/Lingua/App/LinguaApp.swift @@ -24,8 +24,8 @@ struct LinguaApp: App { commands.aboutApp() commands.projectCommands } - - MenuBarExtra(String.packageName, systemImage: "globe") { + + MenuBarExtra(String.packageName, image: "lingua_menu_bar_icon") { VStack(spacing: 0) { ProjectListView(shouldAddLocalizeButton: true) .environmentObject(viewModel) diff --git a/Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/Contents.json b/Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/Contents.json new file mode 100644 index 0000000..7b71809 --- /dev/null +++ b/Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "lingua_menu_bar_icon.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "lingua_menu_bar_icon@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "lingua_menu_bar_icon@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/lingua_menu_bar_icon.png b/Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/lingua_menu_bar_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..93f78c3aced64c2f3595cfb32c7b1c5b53ebbfe8 GIT binary patch literal 435 zcmV;k0ZjghP)Um zv}=8>B=3qGS`Nmb0UcR@5`=#6iStL`30!kM2QwyAy8&Nd4W2=(o0$_=U1?R36t?G=W ztA7DrnCusPSQ}RU1O2HRT%=#J|656S;ovc8@Q}V%FlUmErE6tNNpIs{3$lGQdWv0~ dM$)kN><>O8Yl%+Q-@E_-002ovPDHLkV1nd^u#o@& literal 0 HcmV?d00001 diff --git a/Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/lingua_menu_bar_icon@2x.png b/Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/lingua_menu_bar_icon@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..8ce97c3d27dd48c1c949ad0e4d72116cb1749cf5 GIT binary patch literal 828 zcmV-C1H=4@P)AzO4mdK{EzmmwNA3-NZ^*|PeuIm{PC3CV;fy(N#ll4- z1p@5oZ#l50IgR3TUG4M)PXkAkEyUOp&ttg*868R*9O*m@C%hDH1+x)?6*-kD7}SxR zHO4wCVYCs!UU!o-qOM^#mq$tOr~^c*YmB!Iqk6#5VTP}D2Z*}jrP8ogATQhTMw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xE$YIkMggJe4OwKo`sFT={tOgD z;&z3ya9zbZE*fhPMuWA)N2o*>jf)p7_vRGnk+yz| zuo`+?hzFd0L85DKUTIe*Gq*uTWr$Fu&x8y+b+g zE`~??ys|MCj}@3la|fJ$IQRHqIMltd?h%Gp>0c8(>{pu~0*9kzOYb;yjTD<*BKQri t1BdbL#4S!=6Yep-V*Jj}7hK_v@joXWaqdGY(jx!>002ovPDHLkV1j?af@c5# literal 0 HcmV?d00001 From a0dbe55d591fc732a8463428babf5cf03c63f904 Mon Sep 17 00:00:00 2001 From: Egzon Arifi Date: Wed, 29 Nov 2023 12:28:28 +0100 Subject: [PATCH 2/2] Replace to svg icon --- .../Contents.json | 15 ++----------- .../lingua_menu_bar_icon.png | Bin 435 -> 0 bytes .../lingua_menu_bar_icon.svg | 20 ++++++++++++++++++ .../lingua_menu_bar_icon@2x.png | Bin 828 -> 0 bytes .../lingua_menu_bar_icon@3x.png | Bin 1335 -> 0 bytes 5 files changed, 22 insertions(+), 13 deletions(-) delete mode 100644 Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/lingua_menu_bar_icon.png create mode 100644 Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/lingua_menu_bar_icon.svg delete mode 100644 Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/lingua_menu_bar_icon@2x.png delete mode 100644 Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/lingua_menu_bar_icon@3x.png diff --git a/Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/Contents.json b/Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/Contents.json index 7b71809..e6673bb 100644 --- a/Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/Contents.json +++ b/Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/Contents.json @@ -1,19 +1,8 @@ { "images" : [ { - "filename" : "lingua_menu_bar_icon.png", - "idiom" : "universal", - "scale" : "1x" - }, - { - "filename" : "lingua_menu_bar_icon@2x.png", - "idiom" : "universal", - "scale" : "2x" - }, - { - "filename" : "lingua_menu_bar_icon@3x.png", - "idiom" : "universal", - "scale" : "3x" + "filename" : "lingua_menu_bar_icon.svg", + "idiom" : "universal" } ], "info" : { diff --git a/Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/lingua_menu_bar_icon.png b/Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/lingua_menu_bar_icon.png deleted file mode 100644 index 93f78c3aced64c2f3595cfb32c7b1c5b53ebbfe8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 435 zcmV;k0ZjghP)Um zv}=8>B=3qGS`Nmb0UcR@5`=#6iStL`30!kM2QwyAy8&Nd4W2=(o0$_=U1?R36t?G=W ztA7DrnCusPSQ}RU1O2HRT%=#J|656S;ovc8@Q}V%FlUmErE6tNNpIs{3$lGQdWv0~ dM$)kN><>O8Yl%+Q-@E_-002ovPDHLkV1nd^u#o@& diff --git a/Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/lingua_menu_bar_icon.svg b/Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/lingua_menu_bar_icon.svg new file mode 100644 index 0000000..3634ab8 --- /dev/null +++ b/Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/lingua_menu_bar_icon.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/lingua_menu_bar_icon@2x.png b/Lingua-App/Lingua/Lingua/Resources/Assets.xcassets/lingua_menu_bar_icon.imageset/lingua_menu_bar_icon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