Skip to content

Commit

Permalink
- Adds margins in textview
Browse files Browse the repository at this point in the history
  • Loading branch information
glushchenko committed Jan 13, 2022
1 parent 7d1cb5f commit ba7ed05
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion FSNotes iOS/EditorViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class EditorViewController: UIViewController, UITextViewDelegate, UIDocumentPick

override func viewDidLoad() {
storageQueue.maxConcurrentOperationCount = 1
editArea.textContainerInset = UIEdgeInsets(top: 13, left: 10, bottom: 0, right: 10)

navigationController?.navigationBar.mixedTitleTextAttributes = [NNForegroundColorAttributeName: Colors.titleText]
navigationController?.navigationBar.mixedTintColor = Colors.buttonText
Expand Down Expand Up @@ -992,7 +993,7 @@ class EditorViewController: UIViewController, UITextViewDelegate, UIDocumentPick
}
}

let toolBar = UIToolbar(frame: CGRect.init(x: 0, y: 0, width: width, height: 40))
let toolBar = UIToolbar(frame: CGRect.init(x: 0, y: 0, width: width, height: 50))
toolBar.backgroundColor = .darkGray
toolBar.isTranslucent = false
toolBar.mixedTintColor = MixedColor(normal: 0x4d8be6, night: 0x7eeba1)
Expand Down
16 changes: 8 additions & 8 deletions FSNotes.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -4494,12 +4494,12 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 229;
CURRENT_PROJECT_VERSION = 230;
DEVELOPMENT_TEAM = 866P6MTE92;
INFOPLIST_FILE = "FSNotes iOS Share/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
MARKETING_VERSION = 4.8.6;
MARKETING_VERSION = 4.8.7;
PRODUCT_BUNDLE_IDENTIFIER = "co.fluder.mobile.FSNotes-iOS.FSNotes-iOS-Share";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
Expand All @@ -4518,13 +4518,13 @@
CODE_SIGN_IDENTITY = "iPhone Distribution";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 229;
CURRENT_PROJECT_VERSION = 230;
DEVELOPMENT_TEAM = 866P6MTE92;
ENABLE_NS_ASSERTIONS = NO;
INFOPLIST_FILE = "FSNotes iOS Share/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
MARKETING_VERSION = 4.8.6;
MARKETING_VERSION = 4.8.7;
PRODUCT_BUNDLE_IDENTIFIER = "co.fluder.mobile.FSNotes-iOS.FSNotes-iOS-Share";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
Expand All @@ -4546,12 +4546,12 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 229;
CURRENT_PROJECT_VERSION = 230;
DEVELOPMENT_TEAM = 866P6MTE92;
INFOPLIST_FILE = "FSNotes iOS/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 4.8.6;
MARKETING_VERSION = 4.8.7;
PRODUCT_BUNDLE_IDENTIFIER = "co.fluder.mobile.FSNotes-iOS";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
Expand All @@ -4576,13 +4576,13 @@
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 229;
CURRENT_PROJECT_VERSION = 230;
DEVELOPMENT_TEAM = 866P6MTE92;
ENABLE_NS_ASSERTIONS = NO;
INFOPLIST_FILE = "FSNotes iOS/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 4.8.6;
MARKETING_VERSION = 4.8.7;
PRODUCT_BUNDLE_IDENTIFIER = "co.fluder.mobile.FSNotes-iOS";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
Expand Down
2 changes: 1 addition & 1 deletion FSNotes/MPreviewView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ class MPreviewView: WKWebView, WKUIDelegate, WKNavigationDelegate {
}

#if os(iOS)
var width = 0
var width = 10
#else
var width = ViewController.shared()!.editArea.getWidth()
#endif
Expand Down

0 comments on commit ba7ed05

Please sign in to comment.