PollResultTableViewCell.swift 863 B

12345678910111213141516171819202122232425262728
  1. //
  2. // SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
  3. // SPDX-License-Identifier: GPL-3.0-or-later
  4. //
  5. import UIKit
  6. class PollResultTableViewCell: UITableViewCell {
  7. @IBOutlet weak var optionLabel: UILabel!
  8. @IBOutlet weak var optionProgressView: UIProgressView!
  9. @IBOutlet weak var resultLabel: UILabel!
  10. override func awakeFromNib() {
  11. super.awakeFromNib()
  12. optionProgressView.progressTintColor = NCAppBranding.elementColor()
  13. }
  14. override func prepareForReuse() {
  15. optionLabel.font = UIFont.systemFont(ofSize: 17, weight: .regular)
  16. resultLabel.font = UIFont.systemFont(ofSize: 17, weight: .regular)
  17. }
  18. func highlightResult() {
  19. optionLabel.font = UIFont.systemFont(ofSize: 17, weight: .bold)
  20. resultLabel.font = UIFont.systemFont(ofSize: 17, weight: .bold)
  21. }
  22. }