diff --git a/about.html b/about.html
index 6cf866743e..8544c8a806 100644
--- a/about.html
+++ b/about.html
@@ -18,8 +18,8 @@
diff --git a/debug_log.html b/debug_log.html
index 267c842c57..e354d086d6 100644
--- a/debug_log.html
+++ b/debug_log.html
@@ -17,7 +17,7 @@
diff --git a/package.json b/package.json
index d61780afff..6f2f785818 100644
--- a/package.json
+++ b/package.json
@@ -47,8 +47,8 @@
"scripts": {
"start-prod": "cross-env NODE_ENV=production NODE_APP_INSTANCE=devprod$MULTI electron .",
- "build-everything": "yarn clean && yarn protobuf && grunt && yarn sass && tsc && yarn parcel-util-worker",
- "build-everything:watch": "yarn clean && yarn protobuf && grunt && yarn sass && yarn parcel-util-worker && tsc -w",
+ "build-everything": "yarn clean && yarn protobuf && grunt && yarn sass && tsc && yarn parcel-util-worker",
+ "build-everything:watch": "yarn clean && yarn protobuf && grunt && yarn sass && yarn parcel-util-worker && tsc -w",
"protobuf": "pbjs --target static-module --wrap commonjs --out ts/protobuf/compiled.js protos/*.proto && pbts --out ts/protobuf/compiled.d.ts ts/protobuf/compiled.js --force-long",
"sass": "rimraf 'stylesheets/dist/' && parcel build --target sass --no-autoinstall --no-cache",
diff --git a/stylesheets/_avatar.scss b/stylesheets/_avatar.scss
index 053c9297dc..8ca4873f8c 100644
--- a/stylesheets/_avatar.scss
+++ b/stylesheets/_avatar.scss
@@ -9,6 +9,7 @@
img {
object-fit: cover;
border-radius: 50%;
+ // TODO Theming update
border: 1px solid var(--color-avatar-border-color);
}
}
diff --git a/stylesheets/_conversation.scss b/stylesheets/_conversation.scss
index 7ba1566088..4f67b96907 100644
--- a/stylesheets/_conversation.scss
+++ b/stylesheets/_conversation.scss
@@ -55,13 +55,14 @@
}
.session-icon-button {
- background-color: var(--color-accent);
+ background-color: var(--button-icon-background-color);
box-shadow: none;
filter: brightness(1.05);
svg path {
transition: var(--default-duration);
opacity: 0.6;
+ // TODO Theming remove
fill: var(--color-text-opposite);
}
}
diff --git a/stylesheets/_mentions.scss b/stylesheets/_mentions.scss
index 9af3f74ccd..8e12e500ec 100644
--- a/stylesheets/_mentions.scss
+++ b/stylesheets/_mentions.scss
@@ -26,5 +26,5 @@
}
.module-conversation-list-item--mentioned-us {
- border-left: 4px solid var(--color-session-green-color) !important;
+ border-left: 4px solid var(--conversation-tab-color-strip-color) !important;
}
diff --git a/stylesheets/_modal.scss b/stylesheets/_modal.scss
index e98c1186f4..cbc1cd11d4 100644
--- a/stylesheets/_modal.scss
+++ b/stylesheets/_modal.scss
@@ -178,6 +178,7 @@
position: relative;
.module-avatar {
+ // TODO Theming update
box-shadow: 0px 0px 13px 0.5px var(--color-session-shadow);
}
diff --git a/stylesheets/_modules.scss b/stylesheets/_modules.scss
index c43faf8228..627356d228 100644
--- a/stylesheets/_modules.scss
+++ b/stylesheets/_modules.scss
@@ -42,7 +42,7 @@
display: inline-block;
position: absolute;
bottom: 4px;
- @include color-svg('../images/error.svg', var(--color-destructive));
+ @include color-svg('../images/error.svg', var(--danger-color));
}
.module-message__error--outgoing {
@@ -393,7 +393,7 @@
.module-message-detail__delete-button {
@include button-reset;
- background-color: var(--color-destructive);
+ background-color: var(--danger-color);
color: var(--color-white-color);
box-shadow: 0 0 10px -3px rgba(97, 97, 97, 0.7);
border-radius: 5px;
@@ -421,7 +421,7 @@
}
.module-message-detail__contact__error {
- color: var(--color-destructive);
+ color: var(--danger-color);
font-weight: 300;
}
@@ -633,17 +633,17 @@
cursor: pointer;
&:hover {
- background-color: var(--color-dark-gray-color);
+ background-color: var(--conversation-tab-background-hover-color);
}
&--is-blocked {
- border-left: 4px solid var(--color-destructive) !important;
+ border-left: 4px solid var(--danger-color) !important;
}
}
.module-conversation-list-item__unread-count {
- color: var(--color-white-color);
- background-color: var(--color-session-green-color);
+ background-color: var(--unread-messages-alert-background-color);
+ color: var(--unread-messages-alert-text-color);
text-align: center;
padding-top: 1px;
@@ -662,7 +662,7 @@
min-width: 16px;
line-height: 16px;
border-radius: 8px;
-
+ // TODO Theming Should we remove this?
box-shadow: 0px 0px 0px 1px var(--color-darkest-gray-color);
}
@@ -704,7 +704,7 @@
.module-conversation-list-item__header__date--has-unread {
font-weight: 300;
- color: var(--color-lighter-gray-color);
+ color: var(--conversation-tab-text-unread-color);
}
.module-conversation-list-item__message {
@@ -720,7 +720,7 @@
font-size: var(--font-size-sm);
line-height: 18px;
- color: var(--color-light-gray-color);
+ color: var(--conversation-tab-text-color);
height: 1.3em;
overflow: hidden;
@@ -733,7 +733,7 @@
.module-conversation-list-item__message__text--has-unread {
font-weight: 400;
- color: var(--color-lighter-gray-color);
+ color: var(--conversation-tab-text-unread-color);
}
// Module: Image
diff --git a/stylesheets/_session.scss b/stylesheets/_session.scss
index 8a7feb81c7..29688fad13 100644
--- a/stylesheets/_session.scss
+++ b/stylesheets/_session.scss
@@ -342,6 +342,7 @@ label {
.conversation-header {
.module-avatar img {
+ // TODO Theming Update
box-shadow: 0px 0px 5px 0px rgba(var(--color-white-color-rgb), 0.2);
}
@@ -693,7 +694,7 @@ label {
width: 13px;
height: 13px;
border-radius: 50%;
- background: var(--color-session-green-color);
+ background: var(--primary-color);
animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
div:nth-child(1) {
@@ -836,17 +837,18 @@ input {
width: 40px;
border-radius: 50%;
opacity: 1;
- background-color: var(--color-cell-background);
+ background-color: var(--button-icon-background-color);
box-shadow: var(--color-session-shadow);
svg path {
transition: var(--default-duration);
opacity: 0.6;
- fill: var(--color-text);
+ fill: var(--button-icon-stroke-color);
}
&:hover svg path {
opacity: 1;
+ fill: var(--button-icon-stroke-hover-color);
}
}
}
diff --git a/stylesheets/_session_left_pane.scss b/stylesheets/_session_left_pane.scss
index 4e4e2ca29d..3872d6a899 100644
--- a/stylesheets/_session_left_pane.scss
+++ b/stylesheets/_session_left_pane.scss
@@ -13,30 +13,31 @@ $session-compose-margin: 20px;
}
&-list-item {
+ background: var(--conversation-tab-background-color);
transition: var(--default-duration);
&:hover {
- background: var(--color-clickable-hovered);
+ background: var(--conversation-tab-background-hover-color);
}
&--is-selected {
- background: var(--color-conversation-item-selected);
+ background: var(--conversation-tab-background-selected-color);
.module-conversation__user__profile-number,
.module-conversation__user__profile-name,
.module-conversation-list-item__message__text {
- color: var(--color-text);
+ color: var(--conversation-tab-text-selected-color);
}
}
&--has-unread {
- border-left: var(--border-unread);
- background: var(--color-conversation-item-has-unread);
+ background: var(--conversation-tab-background-unread-color);
+ border-left: 4px solid var(--conversation-tab-color-strip-color);
}
&__unread-count {
- color: var(--color-text);
- background: var(--color-clickable-hovered);
+ background: var(--conversation-tab-bubble-background-color);
+ color: var(--conversation-tab-bubble-text-color);
position: static !important;
font-weight: 700 !important;
@@ -52,9 +53,9 @@ $session-compose-margin: 20px;
}
&__message__text {
- color: var(--color-light-gray-color);
+ color: var(--conversation-tab-text-color);
&--has-unread {
- color: var(--color-text);
+ color: var(--conversation-tab-text-unread-color);
}
}
@@ -65,7 +66,7 @@ $session-compose-margin: 20px;
&__header__name--with-unread .module-conversation__user__profile-number,
&__header__name--with-unread .module-conversation__user__profile-name {
- color: var(--color-text);
+ color: var(--conversation-tab-text-unread-color);
}
}
}
@@ -98,7 +99,7 @@ $session-compose-margin: 20px;
}
&-overlay {
- background: var(--color-left-pane-overlay-background);
+ background: var(--background-primary-color);
display: flex;
flex-direction: column;
@@ -164,10 +165,6 @@ $session-compose-margin: 20px;
margin-top: 10px;
width: 250px;
filter: var(--filter-session-text);
-
transition: 0s;
- .path {
- fill: red;
- }
}
}
diff --git a/stylesheets/_theme_dark.scss b/stylesheets/_theme_dark.scss
index 21e4d82f51..3f070d178c 100644
--- a/stylesheets/_theme_dark.scss
+++ b/stylesheets/_theme_dark.scss
@@ -259,33 +259,35 @@
.module-empty-state {
color: var(--color-light-gray-color);
}
+
+ // TODO Theming Remove
// Module: Conversation List Item
- .module-conversation-list-item--is-selected {
- background-color: var(--color-dark-gray-color);
- }
+ // .module-conversation-list-item--is-selected {
+ // background-color: var(--color-dark-gray-color);
+ // }
- .module-conversation-list-item__unread-count {
- color: var(--color-white-color);
- background-color: var(--color-session-green-color);
- box-shadow: 0px 0px 0px 1px var(--color-darkest-gray-color);
- }
+ // .module-conversation-list-item__unread-count {
+ // color: var(--color-white-color);
+ // background-color: var(--color-session-green-color);
+ // box-shadow: 0px 0px 0px 1px var(--color-darkest-gray-color);
+ // }
- .module-conversation-list-item__header__name {
- color: var(--color-lighter-gray-color);
- }
+ // .module-conversation-list-item__header__name {
+ // color: var(--color-lighter-gray-color);
+ // }
- .module-conversation-list-item__header__date--has-unread {
- color: var(--color-lighter-gray-color);
- }
+ // .module-conversation-list-item__header__date--has-unread {
+ // color: var(--color-lighter-gray-color);
+ // }
- .module-conversation-list-item__message__text {
- color: var(--color-light-gray-color);
- }
+ // .module-conversation-list-item__message__text {
+ // color: var(--color-light-gray-color);
+ // }
- .module-conversation-list-item__message__text--has-unread {
- color: var(--color-lighter-gray-color);
- }
+ // .module-conversation-list-item__message__text--has-unread {
+ // color: var(--color-lighter-gray-color);
+ // }
// Module: Image
diff --git a/ts/components/avatar/Avatar.tsx b/ts/components/avatar/Avatar.tsx
index 19148b1e3d..c088a53ab2 100644
--- a/ts/components/avatar/Avatar.tsx
+++ b/ts/components/avatar/Avatar.tsx
@@ -43,20 +43,20 @@ const Identicon = (props: Props) => {
};
const CrownWrapper = styled.div`
- position: absolute;
display: flex;
+ align-items: center;
+ justify-content: center;
+ position: absolute;
bottom: 0%;
right: 12%;
height: 20px;
width: 20px;
transform: translate(25%, 25%);
color: #f7c347;
- background: var(--color-inbox-background);
+ background: var(--background-primary-color);
border-radius: 50%;
+ /* TODO Theming update? */
filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.3));
-
- align-items: center;
- justify-content: center;
`;
export const CrownIcon = () => {
diff --git a/ts/components/avatar/AvatarPlaceHolder/AvatarPlaceHolder.tsx b/ts/components/avatar/AvatarPlaceHolder/AvatarPlaceHolder.tsx
index 296b250524..752655d1c0 100644
--- a/ts/components/avatar/AvatarPlaceHolder/AvatarPlaceHolder.tsx
+++ b/ts/components/avatar/AvatarPlaceHolder/AvatarPlaceHolder.tsx
@@ -1,4 +1,5 @@
import React, { useEffect, useState } from 'react';
+import { COLORS } from '../../../themes/colors';
import { getInitials } from '../../../util/getInitials';
type Props = {
@@ -20,7 +21,7 @@ const sha512FromPubkey = async (pubkey: string): Promise => {
// key is the pubkey, value is the hash
const cachedHashes = new Map();
-const avatarPlaceholderColors = ['#5ff8b0', '#26cdb9', '#f3c615', '#fcac5a'];
+const avatarPlaceholderColors = Object.values(COLORS.PRIMARY);
function useHashBasedOnPubkey(pubkey: string) {
const [hash, setHash] = useState(undefined);
@@ -79,6 +80,7 @@ export const AvatarPlaceHolder = (props: Props) => {
if (loading || !hash) {
// return grey circle
+ // TODO Theming update
return (