From cefb229ce61ed1bf26b377e969b6ba34e3fd5abb Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Fri, 15 May 2020 14:13:39 +0300
Subject: Transparent text editor
---
.../TextBackground.colorset/Contents.json | 38 ++++++++++++++++++++++
Juick/Main.storyboard | 17 +++-------
Juick/ViewControllers/NewPostViewController.m | 1 -
3 files changed, 43 insertions(+), 13 deletions(-)
create mode 100644 Juick/Colors.xcassets/TextBackground.colorset/Contents.json
(limited to 'Juick')
diff --git a/Juick/Colors.xcassets/TextBackground.colorset/Contents.json b/Juick/Colors.xcassets/TextBackground.colorset/Contents.json
new file mode 100644
index 0000000..57e2586
--- /dev/null
+++ b/Juick/Colors.xcassets/TextBackground.colorset/Contents.json
@@ -0,0 +1,38 @@
+{
+ "colors" : [
+ {
+ "color" : {
+ "color-space" : "srgb",
+ "components" : {
+ "alpha" : "0.750",
+ "blue" : "0.996",
+ "green" : "0.992",
+ "red" : "0.992"
+ }
+ },
+ "idiom" : "universal"
+ },
+ {
+ "appearances" : [
+ {
+ "appearance" : "luminosity",
+ "value" : "dark"
+ }
+ ],
+ "color" : {
+ "color-space" : "srgb",
+ "components" : {
+ "alpha" : "0.750",
+ "blue" : "0.133",
+ "green" : "0.133",
+ "red" : "0.133"
+ }
+ },
+ "idiom" : "universal"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/Juick/Main.storyboard b/Juick/Main.storyboard
index 5fc9a0e..026665b 100644
--- a/Juick/Main.storyboard
+++ b/Juick/Main.storyboard
@@ -236,22 +236,12 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
+
@@ -452,6 +442,9 @@
+
+
+
diff --git a/Juick/ViewControllers/NewPostViewController.m b/Juick/ViewControllers/NewPostViewController.m
index 344e7b9..8e61006 100644
--- a/Juick/ViewControllers/NewPostViewController.m
+++ b/Juick/ViewControllers/NewPostViewController.m
@@ -28,7 +28,6 @@ NSString * const ReplyPostedNotificationName = @"ReplyPosted";
{
[super viewDidLoad];
self.paddingValue = self.bottomConstraint.constant;
- [self.view setBackgroundColor:[UIColor colorNamed:@"Background"]];
if (_replyTo != nil) {
QuoteView *inputView = (QuoteView *) self.inputAccessoryView;
inputView.quoteText.text = _replyTo.text;
--
cgit v1.2.3