Skip to content

Commit

Permalink
removed commented lines
Browse files Browse the repository at this point in the history
  • Loading branch information
noorhashem committed Jun 24, 2020
1 parent 981ead9 commit 4085267
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions Extensions/Today/TodayViewController.swift
Expand Up @@ -42,13 +42,6 @@ class TodayViewController: UIViewController, NCWidgetProviding {

let button = imageButton.button
button.setImage(UIImage(named: "search-button"), for: .normal)
// button.frame = CGRect(width: 100.0, height: 60.0)
// button.backgroundColor = UIColor.white
// button.layer.cornerRadius = button.frame.size.width/2
// button.clipsToBounds = true
// button.setImage(UIImage(named: "search"), for: .normal)
// button.imageEdgeInsets = UIEdgeInsets(top: 30, left: 30, bottom: 30, right: 30)

let label = imageButton.label
label.tintColor = UIColor(named: "widgetLabelColors")
label.textColor = UIColor(named: "widgetLabelColors")
Expand All @@ -63,14 +56,6 @@ class TodayViewController: UIViewController, NCWidgetProviding {
imageButton.label.text = TodayStrings.NewPrivateTabButtonLabel
let button = imageButton.button
button.setImage(UIImage(named: "private-search"), for: .normal)

// button.frame = CGRect(width: 60.0, height: 60.0)
// button.performGradient(colorOne: TodayUX.privateSearchButtonColorFaintDarkPurple, colorTwo: TodayUX.privateSearchButtonColorDarkPurple, colorThree: TodayUX.privateSearchButtonColorBrightPurple)
// button.layer.cornerRadius = button.frame.size.width/2
// button.clipsToBounds = true
// button.setImage(UIImage(named: "quick_action_new_private_tab")?.withRenderingMode(.alwaysTemplate), for: .normal)
// button.tintColor = UIColor.white

let label = imageButton.label
label.tintColor = UIColor(named: "widgetLabelColors")
label.textColor = UIColor(named: "widgetLabelColors")
Expand Down Expand Up @@ -101,7 +86,7 @@ class TodayViewController: UIViewController, NCWidgetProviding {
stackView.axis = .vertical
stackView.alignment = .fill
stackView.spacing = TodayUX.margin / 2
stackView.distribution = UIStackView.Distribution.fill
stackView.distribution = UIStackView.Distribution.fillProportionally
return stackView
}()

Expand Down Expand Up @@ -256,7 +241,7 @@ class ImageButtonWithLabel: UIView {
make.top.equalTo(self.safeAreaLayoutGuide)
make.right.greaterThanOrEqualTo(self.safeAreaLayoutGuide).offset(40)
make.left.greaterThanOrEqualTo(self.safeAreaLayoutGuide).inset(40)
make.width.height.greaterThanOrEqualTo(70)
make.width.height.greaterThanOrEqualTo(60)
}

label.snp.makeConstraints { make in
Expand Down

0 comments on commit 4085267

Please sign in to comment.