-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10794 from wordpress-mobile/gutenberg/post-title-…
…in-rn Implements the editor title in RN for Gutenberg.
- Loading branch information
Showing
5 changed files
with
29 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
WordPress/Classes/ViewRelated/Gutenberg/GutenbergContainerView.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,5 @@ | ||
import UIKit | ||
|
||
class GutenbergContainerView: UIView, NibLoadable { | ||
|
||
@IBOutlet weak var titleTextField: UITextField! | ||
@IBOutlet weak var separatorView: UIView! | ||
@IBOutlet weak var editorContainerView: UIView! | ||
|
||
override func awakeFromNib() { | ||
super.awakeFromNib() | ||
configureTitleTextField() | ||
configureSeparatorView() | ||
} | ||
|
||
func configureTitleTextField() { | ||
titleTextField.borderStyle = .none | ||
titleTextField.font = Fonts.title | ||
titleTextField.textColor = Colors.title | ||
titleTextField.backgroundColor = Colors.background | ||
titleTextField.placeholder = NSLocalizedString("Title", comment: "Placeholder for the post title.") | ||
titleTextField.autocapitalizationType = .sentences | ||
} | ||
|
||
func configureSeparatorView() { | ||
separatorView.backgroundColor = Colors.separator | ||
} | ||
} | ||
|
||
private extension GutenbergContainerView { | ||
|
||
enum Colors { | ||
static let title = UIColor.darkText | ||
static let separator = WPStyleGuide.greyLighten30() | ||
static let background = UIColor.white | ||
} | ||
|
||
enum Fonts { | ||
static let title = WPFontManager.notoBoldFont(ofSize: 24.0) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters