Skip to content

Commit

Permalink
Update for Xcode 6.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Le Van Nghia committed Dec 5, 2014
1 parent 1d65295 commit d569b0e
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 23 deletions.
10 changes: 5 additions & 5 deletions Client/Frontend/Bookmarks/BookmarksViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,20 @@ class BookmarksViewController: UITableViewController {
let cell: UITableViewCell = tableView.dequeueReusableCellWithIdentifier(BOOKMARK_CELL_IDENTIFIER, forIndexPath: indexPath) as UITableViewCell;

if let image = (UIImage(named: "leaf.png")) {
cell.imageView.image = createMockFavicon(image)
cell.imageView!.image = createMockFavicon(image)
}

let bookmark = bookmarks[indexPath.row]
// TODO: We need an async image loader api here
favicons.getForUrl(NSURL(string: bookmark.url)!, options: nil, callback: { (icon: Favicon) -> Void in
if let img = icon.img {
cell.imageView.image = createMockFavicon(img);
cell.imageView!.image = createMockFavicon(img);
}
});

cell.textLabel.text = bookmark.title
cell.textLabel.font = UIFont(name: "FiraSans-SemiBold", size: 13)
cell.textLabel.textColor = UIColor.darkGrayColor()
cell.textLabel!.text = bookmark.title
cell.textLabel!.font = UIFont(name: "FiraSans-SemiBold", size: 13)
cell.textLabel!.textColor = UIColor.darkGrayColor()
cell.indentationWidth = 20

return cell
Expand Down
8 changes: 4 additions & 4 deletions Client/Frontend/Reader/SiteTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ class SiteTableViewController: UITableViewController {
// TODO: We need better async image loading here
favicons.getForUrl(NSURL(string: site.url)!, options: nil, callback: { (icon: Favicon) -> Void in
if var img = icon.img {
cell.imageView.image = createMockFavicon(img);
cell.imageView!.image = createMockFavicon(img);
cell.setNeedsLayout()
}
});

cell.textLabel.text = site.title
cell.textLabel.font = UIFont(name: "FiraSans-SemiBold", size: 13)
cell.textLabel.textColor = UIColor.darkGrayColor()
cell.textLabel!.text = site.title
cell.textLabel!.font = UIFont(name: "FiraSans-SemiBold", size: 13)
cell.textLabel!.textColor = UIColor.darkGrayColor()
cell.indentationWidth = 20

return cell
Expand Down
6 changes: 3 additions & 3 deletions Client/Frontend/Settings/SettingsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ class SettingsViewController: UIViewController, ToolbarViewProtocol, UITableView
let cell: UITableViewCell = tableView.dequeueReusableCellWithIdentifier(SETTING_CELL_ID, forIndexPath: indexPath) as UITableViewCell

if var item = panels[indexPath.item] {
cell.textLabel.text = item.title
cell.textLabel.font = UIFont(name: "FiraSans-Light", size: cell.textLabel.font.pointSize)
cell.textLabel.textColor = UIColor.whiteColor()
cell.textLabel!.text = item.title
cell.textLabel!.font = UIFont(name: "FiraSans-Light", size: cell.textLabel!.font.pointSize)
cell.textLabel!.textColor = UIColor.whiteColor()
cell.backgroundColor = self.view.backgroundColor
cell.separatorInset = UIEdgeInsetsZero
cell.selectionStyle = UITableViewCellSelectionStyle.None
Expand Down
8 changes: 4 additions & 4 deletions Client/Frontend/Tabs/TabsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ class TabsViewController: UITableViewController
// TODO: We need better async image loading here
favicons.getForUrl(NSURL(string: tab.url)!, options: nil, callback: { (icon: Favicon) -> Void in
if var img = icon.img {
cell.imageView.image = createMockFavicon(img);
cell.imageView!.image = createMockFavicon(img);
cell.setNeedsLayout()
}
});
cell.textLabel.text = tab.title
cell.textLabel!.text = tab.title
}

cell.textLabel.font = UIFont(name: "FiraSans-SemiBold", size: 13)
cell.textLabel.textColor = UIColor.darkGrayColor()
cell.textLabel!.font = UIFont(name: "FiraSans-SemiBold", size: 13)
cell.textLabel!.textColor = UIColor.darkGrayColor()
cell.indentationWidth = 20
return cell
}
Expand Down
4 changes: 2 additions & 2 deletions Extensions/SendTo/ActionViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ class ClientPickerViewController: UITableViewController {

override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = UITableViewCell()
cell.textLabel.font = UIFont(name: "FiraSans-Regular", size: 17)
cell.textLabel.text = NSLocalizedString("Send to ", comment: "") + clients[indexPath.row].name // TODO This needs a localized format string
cell.textLabel!.font = UIFont(name: "FiraSans-Regular", size: 17)
cell.textLabel!.text = NSLocalizedString("Send to ", comment: "") + clients[indexPath.row].name // TODO This needs a localized format string
return cell
}

Expand Down
10 changes: 5 additions & 5 deletions Extensions/ShareTo/ShareViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,14 @@ class ShareDialogController: UIViewController, UITableViewDataSource, UITableVie

func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = UITableViewCell()
cell.textLabel.textColor = UIColor(red:0.733, green:0.729, blue:0.757, alpha:1.000)
cell.textLabel.font = UIFont(name: "FiraSans-Regular", size: 17)
cell.imageView.transform = CGAffineTransformMakeScale(0.5, 0.5)
cell.textLabel!.textColor = UIColor(red:0.733, green:0.729, blue:0.757, alpha:1.000)
cell.textLabel!.font = UIFont(name: "FiraSans-Regular", size: 17)
cell.imageView!.transform = CGAffineTransformMakeScale(0.5, 0.5)
cell.accessoryType = selectedShareDestinations.containsObject(ShareDestinations[indexPath.row].code) ? UITableViewCellAccessoryType.Checkmark : UITableViewCellAccessoryType.None
cell.tintColor = UIColor(red:0.427, green:0.800, blue:0.102, alpha:1.0)
cell.layoutMargins = UIEdgeInsetsZero
cell.textLabel.text = ShareDestinations[indexPath.row].name
cell.imageView.image = UIImage(named: ShareDestinations[indexPath.row].image)
cell.textLabel!.text = ShareDestinations[indexPath.row].name
cell.imageView!.image = UIImage(named: ShareDestinations[indexPath.row].image)
return cell
}

Expand Down

0 comments on commit d569b0e

Please sign in to comment.