damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit dccaf3541087316228fbc82d725cf45805d5b068
parent 45e64dc42c31bd72df01080b1c51ded14e84d278
Author: Ben Weeks <ben.weeks@outlook.com>
Date:   Tue, 10 Jan 2023 08:29:08 -0800

Uses damus image on the homepage

Closes: #291
Changelog-Added: Damus icon at the top

Diffstat:
Adamus/Assets.xcassets/damus-home.imageset/Contents.json | 23+++++++++++++++++++++++
Adamus/Assets.xcassets/damus-home.imageset/damus-home@1x.png | 0
Adamus/Assets.xcassets/damus-home.imageset/damus-home@2x.png | 0
Adamus/Assets.xcassets/damus-home.imageset/damus-home@3x.png | 0
Mdamus/ContentView.swift | 13+++++++++++++
5 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/damus/Assets.xcassets/damus-home.imageset/Contents.json b/damus/Assets.xcassets/damus-home.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "damus-home@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "damus-home@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "damus-home@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/damus/Assets.xcassets/damus-home.imageset/damus-home@1x.png b/damus/Assets.xcassets/damus-home.imageset/damus-home@1x.png Binary files differ. diff --git a/damus/Assets.xcassets/damus-home.imageset/damus-home@2x.png b/damus/Assets.xcassets/damus-home.imageset/damus-home@2x.png Binary files differ. diff --git a/damus/Assets.xcassets/damus-home.imageset/damus-home@3x.png b/damus/Assets.xcassets/damus-home.imageset/damus-home@3x.png Binary files differ. diff --git a/damus/ContentView.swift b/damus/ContentView.swift @@ -169,6 +169,19 @@ struct ContentView: View { } } .navigationBarTitle(selected_timeline == .home ? NSLocalizedString("Home", comment: "Navigation bar title for Home view where posts and replies appear from those who the user is following.") : NSLocalizedString("Global", comment: "Navigation bar title for Global view where posts from all connected relay servers appear."), displayMode: .inline) + .toolbar { + ToolbarItem(placement: .principal) { + if selected_timeline == .home { + Image("damus-home") + .resizable() + .frame(width:30,height:30) + .shadow(color: Color("DamusPurple"), radius: 2) + } else { + Text("Global") + } + } + + } } var MaybeSearchView: some View {