From 378a312198e621a8252848315fb23b89747ac42a Mon Sep 17 00:00:00 2001 From: Mikhail Golovko Date: Mon, 5 Aug 2024 16:50:34 +0300 Subject: [PATCH] IOS-3200 Change icon --- Anytype/Generated/ImageAssets.swift | 1 + .../x32/Send Message.imageset/Contents.json | 15 +++++++++++++ .../Send Message.imageset/Send Message.pdf | Bin 0 -> 1566 bytes .../Subviews/Input/DiscusionInput.swift | 20 ++++++++++++------ 4 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 Anytype/Resources/Assets.xcassets/DesignSystem/x32/Send Message.imageset/Contents.json create mode 100644 Anytype/Resources/Assets.xcassets/DesignSystem/x32/Send Message.imageset/Send Message.pdf diff --git a/Anytype/Generated/ImageAssets.swift b/Anytype/Generated/ImageAssets.swift index c9f351d53a..47f20b8655 100644 --- a/Anytype/Generated/ImageAssets.swift +++ b/Anytype/Generated/ImageAssets.swift @@ -262,6 +262,7 @@ internal extension ImageAsset { static let replace = ImageAsset.bundle(name: "x32/Replace") static let restore = ImageAsset.bundle(name: "x32/Restore") static let search = ImageAsset.bundle(name: "x32/Search") + static let sendMessage = ImageAsset.bundle(name: "x32/Send Message") static let slashMenu = ImageAsset.bundle(name: "x32/Slash Menu") static let sort = ImageAsset.bundle(name: "x32/Sort") static let style = ImageAsset.bundle(name: "x32/Style") diff --git a/Anytype/Resources/Assets.xcassets/DesignSystem/x32/Send Message.imageset/Contents.json b/Anytype/Resources/Assets.xcassets/DesignSystem/x32/Send Message.imageset/Contents.json new file mode 100644 index 0000000000..ff442f589b --- /dev/null +++ b/Anytype/Resources/Assets.xcassets/DesignSystem/x32/Send Message.imageset/Contents.json @@ -0,0 +1,15 @@ +{ + "images" : [ + { + "filename" : "Send Message.pdf", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + }, + "properties" : { + "template-rendering-intent" : "template" + } +} diff --git a/Anytype/Resources/Assets.xcassets/DesignSystem/x32/Send Message.imageset/Send Message.pdf b/Anytype/Resources/Assets.xcassets/DesignSystem/x32/Send Message.imageset/Send Message.pdf new file mode 100644 index 0000000000000000000000000000000000000000..5369f7a2d452455d67137a4ee0046fa4072e94d5 GIT binary patch literal 1566 zcmZWpO-~y^486~<@C6ADOvavX2_Y3IRn=Cdp*Pe+nk%^@rTnI3BFwE^hClO|jIPY5HiKch&VM5`YB^pVb-^ zUGB?6nXFQ=73Vkv z)Ccu_tqO(2f*^x1ES4Q=*KD95vznY?iG$1!0G+E0S-IGdxw=Z)j^dFvafSLBoKSz$ zHb6CcbgL(X>3!1tBQk-qY>P;YzAwq88U-Cp73udHIhWCjwK9>5AR3Z}Fp=Y0ZA?+l zMbQ)@@+D#GA+`rM%5ym=6K*{Wlmcl&^3^LRY86HRRXc?&Inpc4VeS+gysJh21ucj3 z5C%2Fwej0DEhI*fFxuvjbsq_aMOx??V`oEwoxr<`2!% zX!qV Void var body: some View { - HStack { + HStack(alignment: .bottom, spacing: 8) { Button { onTapAddObject() } label: { Image(asset: .X32.plus) + .foregroundColor(Color.Button.active) } + .frame(height: 56) ZStack(alignment: .topLeading) { DiscussionTextView(text: $text, editing: $editing, minHeight: 56, maxHeight: 212) if text.isEmpty { @@ -27,14 +29,18 @@ struct DiscusionInput: View { .lineLimit(1) } } - Button { - onTapSend() - } label: { - IconView(asset: .X32.moveTo) - } - .disabled(text.isEmpty) + if !text.isEmpty { + Button { + onTapSend() + } label: { + Image(asset: .X32.sendMessage) + .foregroundColor(Color.Button.button) + } + .frame(height: 56) + } } + .padding(.horizontal, 8) .background(Color.Background.primary) } }