From 7e3c9d38cd945ac69d254812615ce03d3be00014 Mon Sep 17 00:00:00 2001 From: SBiOSoftWhare Date: Mon, 11 Jan 2021 18:23:37 +0100 Subject: [PATCH] Invite friends: Add string and assets. --- .../Images.xcassets/Common/Contents.json | 6 ++--- .../Contents.json | 23 ++++++++++++++++++ .../share_action_button.png | Bin 0 -> 286 bytes .../share_action_button@2x.png | Bin 0 -> 436 bytes .../share_action_button@3x.png | Bin 0 -> 670 bytes Riot/Assets/en.lproj/Vector.strings | 5 ++++ Riot/Generated/Images.swift | 1 + Riot/Generated/Strings.swift | 8 ++++++ 8 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 Riot/Assets/Images.xcassets/Common/share_action_button.imageset/Contents.json create mode 100644 Riot/Assets/Images.xcassets/Common/share_action_button.imageset/share_action_button.png create mode 100644 Riot/Assets/Images.xcassets/Common/share_action_button.imageset/share_action_button@2x.png create mode 100644 Riot/Assets/Images.xcassets/Common/share_action_button.imageset/share_action_button@3x.png diff --git a/Riot/Assets/Images.xcassets/Common/Contents.json b/Riot/Assets/Images.xcassets/Common/Contents.json index da4a164c9..73c00596a 100644 --- a/Riot/Assets/Images.xcassets/Common/Contents.json +++ b/Riot/Assets/Images.xcassets/Common/Contents.json @@ -1,6 +1,6 @@ { "info" : { - "version" : 1, - "author" : "xcode" + "author" : "xcode", + "version" : 1 } -} \ No newline at end of file +} diff --git a/Riot/Assets/Images.xcassets/Common/share_action_button.imageset/Contents.json b/Riot/Assets/Images.xcassets/Common/share_action_button.imageset/Contents.json new file mode 100644 index 000000000..a6bb96098 --- /dev/null +++ b/Riot/Assets/Images.xcassets/Common/share_action_button.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "share_action_button.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "share_action_button@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "share_action_button@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Riot/Assets/Images.xcassets/Common/share_action_button.imageset/share_action_button.png b/Riot/Assets/Images.xcassets/Common/share_action_button.imageset/share_action_button.png new file mode 100644 index 0000000000000000000000000000000000000000..0419bed49c29ba3053562be83a156e7236bc733c GIT binary patch literal 286 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`GjoCO|{#S9GG!XV7ZFl!D-1!HlL zyA#8@b22Z19F}xPUq=Rpjs4tz5?O)#&7LlfAr*{ICq3kBG2n4~T*z$EwD^wN_Ct5s zb~Q>{HYs1>Eoq+NbW}pgEK2Z;l&KDndd z_@Uc}g;e(>H2vAoGONxg!7H3?#X+wbJDyxFWSl%@M!`ewgZC!rhxT&?sTAxpcY6@V zw2ft6+_TiKgs+@NO5e^M;r4r0a`1N1%(!RH?&%pD-zsQ*D6`(-VsM~tm&8H&9(&aX d?5iJ?_1vt9l?>e$eh}z<22WQ%mvv4FO#lq7Z3X}U literal 0 HcmV?d00001 diff --git a/Riot/Assets/Images.xcassets/Common/share_action_button.imageset/share_action_button@2x.png b/Riot/Assets/Images.xcassets/Common/share_action_button.imageset/share_action_button@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..23b7e2e7fd3b7bb7169e3afe4023705ca6b37d64 GIT binary patch literal 436 zcmV;l0ZaagP)PS%G z!}&HkJ|nJ4E5U{D6JV}QCxMHdsqmBlBQb>(ya?9_dS=o2R}#qtmLZ@Iu1!Y-Bm&>y4+^Jv0THInQ{fW<7uKw}e3Gxw1}n|u z?HRx3mTQs-EI^N%Ysmd3W_R8mquQ8&HYPyuAH5%CmW(N|2~&KEHQF$oa1DN@gCY}z zI&b%YHYT8r325^Z0(Zz5iNFQ)IB*S;NnGK}8PfkR_B%hvL42i}*c}KTFvr?M8hr2* e2*MkN0q_7D?wmi-R+n}F0000xZ%jZwB zns!;=Q};;=cdUtwbn$%Ety3Nc?dwYRbbhyZ$+n`PHTgnQ`o4Qla`o%_{+ea!j5?1^ zr#w^lsA(MCI7kAGh9^Cr)<`>QhD|nE5;Sr0?!?7&Le6a$o$~0q=d6HsnSkwQ zuK%gCl;C-Gh4GWU^GUgtJJ%IGe7dnaed*_vWbR*qc^PX@pK93FFy~2c%JWJ0RC}NH z)oXo>Gur-W!sJczUN^H(>Z!C^&D*kTmCAP3w@vGQFSy6($R)5vcS*g)Ba5tgAD)@? zmfPeX>v_zby#2#3{SPwRR9{G+pSk}39e16cFxjiklT9A>yf@jb(C2$Cu-3x!dy2|( z*1Lgw=SV-^%rZAHhzW;?#qCIXG7f z>WhS{ANqc;gX_SaH^OQ2S0trGo+vr{VhL7LpoS{CUzqahX>ZRHj;f_qm1@eCmt_;V zPxidJ{m^jwOuo-&mhNO-n!9a!$gj4y_s?j~+dOlPpVgZg{^gIS8O?hwYqWHS^8Yof gWB&o8*}=Ak@u1q~(+7UtGXO=qr>mdKI;Vst0K%mkT>t<8 literal 0 HcmV?d00001 diff --git a/Riot/Assets/en.lproj/Vector.strings b/Riot/Assets/en.lproj/Vector.strings index 392b37ea0..a3a7ea4c5 100644 --- a/Riot/Assets/en.lproj/Vector.strings +++ b/Riot/Assets/en.lproj/Vector.strings @@ -1543,3 +1543,8 @@ Tap the + to start adding people."; "favourites_empty_view_title" = "Favourite rooms and people"; "favourites_empty_view_information" = "You can favourite a few ways - the quickest is just to press and hold. Tap the star and they’ll automatically appear here for safe keeping."; + +// MARK: - Invite friends + +"invite_friends_action" = "Invite friends"; +"invite_friends_share_text" = "Hey, talk to me on Element: %@"; diff --git a/Riot/Generated/Images.swift b/Riot/Generated/Images.swift index a6b1ae49f..9b66dc731 100644 --- a/Riot/Generated/Images.swift +++ b/Riot/Generated/Images.swift @@ -51,6 +51,7 @@ internal enum Asset { internal static let revealPasswordButton = ImageAsset(name: "reveal_password_button") internal static let selectionTick = ImageAsset(name: "selection_tick") internal static let selectionUntick = ImageAsset(name: "selection_untick") + internal static let shareActionButton = ImageAsset(name: "share_action_button") internal static let shrinkIcon = ImageAsset(name: "shrink_icon") internal static let smartphone = ImageAsset(name: "smartphone") internal static let startChat = ImageAsset(name: "start_chat") diff --git a/Riot/Generated/Strings.swift b/Riot/Generated/Strings.swift index 3e1f4216f..baa539c40 100644 --- a/Riot/Generated/Strings.swift +++ b/Riot/Generated/Strings.swift @@ -1454,6 +1454,14 @@ internal enum VectorL10n { internal static var invite: String { return VectorL10n.tr("Vector", "invite") } + /// Invite friends + internal static var inviteFriendsAction: String { + return VectorL10n.tr("Vector", "invite_friends_action") + } + /// Hey, talk to me on Element: %@ + internal static func inviteFriendsShareText(_ p1: String) -> String { + return VectorL10n.tr("Vector", "invite_friends_share_text", p1) + } /// Join internal static var join: String { return VectorL10n.tr("Vector", "join")