Skip to content

Commit

Permalink
Bug 1136900 - Make Settings be a sheet accessible from the Tabs Tray.…
Browse files Browse the repository at this point in the history
… r=bnicholson,darrin
  • Loading branch information
ncalexan committed Feb 26, 2015
2 parents a43542a + 3afbdb2 commit 1605b34
Show file tree
Hide file tree
Showing 13 changed files with 99 additions and 633 deletions.
110 changes: 50 additions & 60 deletions Client.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions Client/Frontend/Browser/TabTrayController.swift
Expand Up @@ -129,11 +129,10 @@ class TabTrayController: UIViewController, UITabBarDelegate, UITableViewDelegate
toolbar.backgroundColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0)
view.addSubview(toolbar)

let settingsItem = UIBarButtonItem(title: "\u{2699}", style: .Plain, target: self, action: "SELdidClickSettingsItem")
let signinItem = UIBarButtonItem(title: "Sign in", style: .Plain, target: self, action: "SELdidClickDone")
signinItem.enabled = false
let addTabItem = UIBarButtonItem(barButtonSystemItem: .Add, target: self, action: "SELdidClickAddTab")
let settingsItem = UIBarButtonItem(image: UIImage(named: "nav-settings-off.png"), style: .Plain, target: self, action: "SELdidClickSettingsItem")
settingsItem.enabled = false
let spacer = UIBarButtonItem(barButtonSystemItem: .FlexibleSpace, target: nil, action: nil)
toolbar.setItems([settingsItem, spacer, signinItem, spacer, addTabItem], animated: true)

Expand Down Expand Up @@ -162,7 +161,7 @@ class TabTrayController: UIViewController, UITabBarDelegate, UITableViewDelegate
}

func SELdidClickSettingsItem() {
let controller = SettingsPanel(nibName: "SettingsPanel", bundle: nil)
let controller = SettingsNavigationController()
controller.profile = profile
presentViewController(controller, animated: true, completion: nil)
}
Expand Down
5 changes: 0 additions & 5 deletions Client/Frontend/Home/Panels.swift
Expand Up @@ -47,11 +47,6 @@ private var Controllers: Protector<[ToolbarItem]> = Protector(name: "Controllers
controller.profile = profile
return controller
}, enabled: true),
ToolbarItem(title: "Settings", imageName: "settings", generator: { (profile: Profile) -> UIViewController in
let controller = SettingsPanel(nibName: nil, bundle: nil)
controller.profile = profile
return controller
}, enabled: true),
])

private var setup: Bool = false // True if we've already loaded the order/enabled prefs once and the Controllers array has been updated
Expand Down

This file was deleted.

Binary file not shown.
22 changes: 0 additions & 22 deletions Client/Frontend/Home/Settings.xcassets/x.imageset/Contents.json

This file was deleted.

Binary file removed Client/Frontend/Home/Settings.xcassets/x.imageset/x.png
Binary file not shown.
Binary file not shown.
250 changes: 0 additions & 250 deletions Client/Frontend/Home/SettingsPanel.swift

This file was deleted.

0 comments on commit 1605b34

Please sign in to comment.