From 979affef22b05b9cb922b0a4ffa15ba16dfcb8c2 Mon Sep 17 00:00:00 2001 From: Alinson Xavier Date: Sun, 31 Mar 2019 19:08:07 -0500 Subject: [PATCH] Replace action sheet icon --- .../ic_more.imageset/Contents.json | 23 ++++++++++++++++++ .../baseline_more_horiz_black_24pt_1x.png | Bin 0 -> 116 bytes .../baseline_more_horiz_black_24pt_2x.png | Bin 0 -> 156 bytes .../baseline_more_horiz_black_24pt_3x.png | Bin 0 -> 199 bytes .../Frontend/MainScreenController.swift | 3 ++- 5 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 ios/Application/Assets.xcassets/ic_more.imageset/Contents.json create mode 100644 ios/Application/Assets.xcassets/ic_more.imageset/baseline_more_horiz_black_24pt_1x.png create mode 100644 ios/Application/Assets.xcassets/ic_more.imageset/baseline_more_horiz_black_24pt_2x.png create mode 100644 ios/Application/Assets.xcassets/ic_more.imageset/baseline_more_horiz_black_24pt_3x.png diff --git a/ios/Application/Assets.xcassets/ic_more.imageset/Contents.json b/ios/Application/Assets.xcassets/ic_more.imageset/Contents.json new file mode 100644 index 000000000..0a782055b --- /dev/null +++ b/ios/Application/Assets.xcassets/ic_more.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "baseline_more_horiz_black_24pt_1x.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "baseline_more_horiz_black_24pt_2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "baseline_more_horiz_black_24pt_3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/ios/Application/Assets.xcassets/ic_more.imageset/baseline_more_horiz_black_24pt_1x.png b/ios/Application/Assets.xcassets/ic_more.imageset/baseline_more_horiz_black_24pt_1x.png new file mode 100644 index 0000000000000000000000000000000000000000..cd5bd1d9a96a3996664812c0b6a9a1ff48ecdf8f GIT binary patch literal 116 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`Gj)}AhoAr*|t63Y@qdYS?s@E^Ip z;Kuxt!b1-@1^%}`I=-Y^n5}<;iH(x~oC1N^_N4krN81%8SQjUVFffQ2sYF=0yu1K3 OhQZU-&t;ucLK6UAB_t~V literal 0 HcmV?d00001 diff --git a/ios/Application/Assets.xcassets/ic_more.imageset/baseline_more_horiz_black_24pt_2x.png b/ios/Application/Assets.xcassets/ic_more.imageset/baseline_more_horiz_black_24pt_2x.png new file mode 100644 index 0000000000000000000000000000000000000000..a104c327e8f58a51fe8f443d9102a262c2aeb411 GIT binary patch literal 156 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA0wn)(8}b0DWKS2zkP61P7a7?OC`cUrSl+sD zVz+QW`KE{l&_WI0^sPwMFC*b`neDdUatT3(=a44$rjF6*2U FngDC>%KBvGGY& z!zYe~{yoJmF5(t;>C+r%uQ3t)v;F0Dmx4phj6fX>4U0T?uUb{+t94Ip{pDr9%4b`} zPrjZJw)f7OV|P?|RvqMhrk2Rre(#yuLt#EyAlcD=#`lo6OjOKSUb|Oje`2GnCtt|6 sJ-g=BUthnAKdL{ui$;Hr02$1{5TE)r;Av+s&qWZ&)78&qol`;+0Ic^=2><{9 literal 0 HcmV?d00001 diff --git a/ios/Application/Frontend/MainScreenController.swift b/ios/Application/Frontend/MainScreenController.swift index 0c220dd28..f50d25f54 100644 --- a/ios/Application/Frontend/MainScreenController.swift +++ b/ios/Application/Frontend/MainScreenController.swift @@ -113,7 +113,8 @@ class MainScreenController: UITableViewController, MainScreenDataSourceListener self.title = "Habits" self.navigationItem.rightBarButtonItems = [ - UIBarButtonItem(barButtonSystemItem: .bookmarks, /* TODO: Replace by appropriate icon */ + UIBarButtonItem(image: UIImage(named: "ic_more"), + style: .plain, target: self, action: #selector(self.onMoreActionsClicked)), UIBarButtonItem(barButtonSystemItem: .add,