From 9e224efa888c82f429e706b7514e52b76c11b295 Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Thu, 4 Jul 2019 00:03:12 -0400 Subject: [PATCH] added DM background color --- .../stream/status/status.component.html | 190 +++++++++--------- .../stream/status/status.component.scss | 4 + .../stream/status/status.component.ts | 2 + src/sass/_variables.scss | 8 +- 4 files changed, 105 insertions(+), 99 deletions(-) diff --git a/src/app/components/stream/status/status.component.html b/src/app/components/stream/status/status.component.html index 714d8498..0b9f9003 100644 --- a/src/app/components/stream/status/status.component.html +++ b/src/app/components/stream/status/status.component.html @@ -1,104 +1,106 @@ -
- boosted -
-
-
- +
+
+ boosted
-
- favorited your status +
+
+ +
+
+ favorited your status +
-
-
-
- +
+
+ +
+
+ boosted your status +
-
- boosted your status +
+
+ +
+
+ A poll you have voted in has ended +
-
-
-
- -
-
- A poll you have voted in has ended -
-
-
- +
+ - - \ No newline at end of file diff --git a/src/app/components/stream/status/status.component.scss b/src/app/components/stream/status/status.component.scss index 84f5892f..f1e64923 100644 --- a/src/app/components/stream/status/status.component.scss +++ b/src/app/components/stream/status/status.component.scss @@ -24,6 +24,10 @@ } } +.direct-message { + background-color: $direct-message-background; +} + .status { margin: 0; padding: 0; diff --git a/src/app/components/stream/status/status.component.ts b/src/app/components/stream/status/status.component.ts index 2ea2420d..9e2ff411 100644 --- a/src/app/components/stream/status/status.component.ts +++ b/src/app/components/stream/status/status.component.ts @@ -35,6 +35,7 @@ export class StatusComponent implements OnInit { isContentWarned: boolean; hasReply: boolean; contentWarningText: string; + isDirectMessage: boolean; @Output() browseAccountEvent = new EventEmitter(); @Output() browseHashtagEvent = new EventEmitter(); @@ -61,6 +62,7 @@ export class StatusComponent implements OnInit { this.displayedStatus = this.status; } + this.isDirectMessage = this.displayedStatus.visibility === 'direct'; this.displayedStatusWrapper = new StatusWrapper(this.displayedStatus, value.provider); this.checkLabels(this.displayedStatus); diff --git a/src/sass/_variables.scss b/src/sass/_variables.scss index b8ed73c2..34384e5c 100644 --- a/src/sass/_variables.scss +++ b/src/sass/_variables.scss @@ -54,11 +54,9 @@ $column-background: #0f111a; $card-border-color: #1e2435; -$context-menu-background: #090b10; $context-menu-background: #d9e1e8; -$context-menu-background-hover: #16171d; $context-menu-background-hover: #a9c9e6; -$context-menu-font-color: #4e5572; $context-menu-font-color: #000000; -$context-menu-border-color: #4e5572; -$context-menu-border-color: #c0cdd9; \ No newline at end of file +$context-menu-border-color: #c0cdd9; + +$direct-message-background: #090a0f; \ No newline at end of file