change unread color

This commit is contained in:
PhilReact 2024-12-17 06:37:34 +02:00
parent 7e2a1db62b
commit f97c91fe35
17 changed files with 35 additions and 31 deletions

View File

@ -2874,6 +2874,7 @@ await showInfo({
backgroundColor: 'var(--green)',
color: 'black',
opacity: 0.7,
fontWeight: 'bold',
'&:hover': {
backgroundColor: 'var(--green)',
color: 'black',
@ -2883,11 +2884,12 @@ await showInfo({
accept
</Button>
<Button sx={{
backgroundColor: 'var(--unread)',
backgroundColor: 'var(--danger)',
color: 'black',
opacity: 0.7,
fontWeight: 'bold',
'&:hover': {
backgroundColor: 'var(--unread)',
backgroundColor: 'var(--danger)',
color: 'black',
opacity: 1
},
@ -3175,7 +3177,7 @@ await showInfo({
</CustomButtonAccept>
<CustomButtonAccept
color="black"
bgColor="var(--unread)"
bgColor="var(--danger)"
sx={{
minWidth: "102px",
}}

View File

@ -541,12 +541,12 @@ const WalletItem = ({ wallet, updateWalletItem, idx, setSelectedWallet }) => {
</Button>
<Button
sx={{
backgroundColor: "var(--unread)",
backgroundColor: "var(--danger)",
"&:hover": {
backgroundColor: "var(--unread)",
backgroundColor: "var(--danger)",
},
"&:focus": {
backgroundColor: "var(--unread)",
backgroundColor: "var(--danger)",
},
}}
size="small"

View File

@ -297,7 +297,7 @@ export const AppsNavBar = ({appsMode}) => {
<PushPinIcon
height={20}
sx={{
color: isSelectedAppPinned ? "red" : "rgba(250, 250, 250, 0.5)",
color: isSelectedAppPinned ? "var(--danger)" : "rgba(250, 250, 250, 0.5)",
}}
/>
</ListItemIcon>
@ -306,7 +306,7 @@ export const AppsNavBar = ({appsMode}) => {
"& .MuiTypography-root": {
fontSize: "12px",
fontWeight: 600,
color: isSelectedAppPinned ? "red" : "rgba(250, 250, 250, 0.5)",
color: isSelectedAppPinned ? "var(--danger)" : "rgba(250, 250, 250, 0.5)",
},
}}
primary={`${isSelectedAppPinned ? "Unpin app" : "Pin app"}`}

View File

@ -712,7 +712,7 @@ const sendMessage = async ()=> {
}}>
<Typography sx={{
fontSize: '12px',
color: messageSize > 4000 ? 'var(--unread)' : 'unset'
color: messageSize > 4000 ? 'var(--danger)' : 'unset'
}}>{`size ${messageSize} of 4000`}</Typography>
</Box>

View File

@ -1010,7 +1010,7 @@ const sendMessage = async ()=> {
}}>
<Typography sx={{
fontSize: '12px',
color: messageSize > 4000 ? 'var(--unread)' : 'unset'
color: messageSize > 4000 ? 'var(--danger)' : 'unset'
}}>{`size ${messageSize} of 4000`}</Typography>
</Box>

View File

@ -369,7 +369,7 @@ export const ChatList = ({ initialMessages, myAddress, tempMessages, chatId, onR
bottom: 20,
right: 20,
backgroundColor: 'var(--unread)',
color: 'white',
color: 'black',
padding: '10px 20px',
borderRadius: '20px',
cursor: 'pointer',

View File

@ -646,7 +646,7 @@ export const GroupAnnouncements = ({
marginTop: "auto",
alignSelf: "center",
cursor: isSending ? "default" : "pointer",
background: "red",
background: "var(--danger)",
flexShrink: 0,
padding: isMobile && "5px",
fontSize: isMobile && "14px",

View File

@ -253,7 +253,7 @@ export const AttachmentCard = ({
<Typography
sx={{
fontSize: "14px",
color: "var(--unread)",
color: "var(--danger)",
}}
>
{errorMsg}

View File

@ -161,7 +161,7 @@ export const ImageCard = ({
<Typography
sx={{
fontSize: "14px",
color: "var(--unread)",
color: "var(--danger)",
}}
>
{errorMsg}

View File

@ -221,7 +221,7 @@ export const PollCard = ({
<Typography
sx={{
fontSize: "14px",
color: "var(--unread)",
color: "var(--danger)",
}}
>
{errorMsg}

View File

@ -240,7 +240,7 @@ export const AddGroupList = ({ setInfoSnack, setOpenSnack }) => {
)}
{group?.isOpen === true && (
<NoEncryptionGmailerrorredIcon sx={{
color: 'var(--unread)'
color: 'var(--danger)'
}} />
)}
<Spacer width="15px" />

View File

@ -534,14 +534,12 @@ export const NewThread = ({
</NewMessageSendP>
{isMessage ? (
<SendNewMessage
color="red"
opacity={1}
height="25px"
width="25px"
/>
) : (
<CreateThreadIcon
color="red"
opacity={1}
height="25px"
width="25px"

View File

@ -718,7 +718,7 @@ export const Group = ({
}
});
return hasUnread;
}, [timestampEnterData, groups, myAddress]);
}, [timestampEnterData, groups, myAddress, groupChatTimestamps]);
const groupsAnnHasUnread = useMemo(() => {
let hasUnread = false;
@ -1851,7 +1851,7 @@ export const Group = ({
direct?.timestamp) && (
<MarkChatUnreadIcon
sx={{
color: "red",
color: "var(--unread)",
}}
/>
)}
@ -2023,7 +2023,7 @@ export const Group = ({
justifyContent: 'center'
}}>
<NoEncryptionGmailerrorredIcon sx={{
color: 'var(--unread)'
color: 'var(--danger)'
}} />
</Box>
@ -2058,7 +2058,7 @@ export const Group = ({
!groupAnnouncements[group?.groupId]?.seentimestamp && (
<CampaignIcon
sx={{
color: "red",
color: "var(--unread)",
marginRight: "5px",
}}
/>
@ -2074,7 +2074,7 @@ export const Group = ({
group?.timestamp) && (
<MarkChatUnreadIcon
sx={{
color: "red",
color: "var(--unread)",
}}
/>
)}
@ -2377,7 +2377,7 @@ export const Group = ({
)}
{isPrivate === false && (
<NoEncryptionGmailerrorredIcon sx={{
color: 'var(--unread)'
color: 'var(--danger)'
}} />
)}
{/* <ExitIcon /> */}

View File

@ -556,7 +556,7 @@ export const ListOfGroupPromotions = () => {
)}
{promotion?.isOpen === true && (
<NoEncryptionGmailerrorredIcon sx={{
color: 'var(--unread)'
color: 'var(--danger)'
}} />
)}
<Typography

View File

@ -192,7 +192,7 @@ export const UserListOfInvites = ({myAddress, setInfoSnack, setOpenSnack}) => {
)}
{invite?.isOpen === true && (
<NoEncryptionGmailerrorredIcon sx={{
color: 'var(--unread)'
color: 'var(--danger)'
}} />
)}
<Spacer width="15px" />

View File

@ -269,6 +269,7 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
backgroundColor: "var(--green)",
color: "black",
opacity: 0.7,
fontWeight: 'bold',
"&:hover": {
backgroundColor: "var(--green)",
color: "black",
@ -300,11 +301,12 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
onClick={revertChanges}
variant="contained"
sx={{
backgroundColor: "var(--unread)",
backgroundColor: "var(--danger)",
color: "black",
fontWeight: 'bold',
opacity: 0.7,
"&:hover": {
backgroundColor: "var(--unread)",
backgroundColor: "var(--danger)",
color: "black",
opacity: 1,
},
@ -360,11 +362,12 @@ export const Save = ({ isDesktop, disableWidth, myName }) => {
onClick={saveToQdn}
variant="contained"
sx={{
backgroundColor: "var(--unread)",
backgroundColor: "var(--danger)",
color: "black",
fontWeight: 'bold',
opacity: 0.7,
"&:hover": {
backgroundColor: "var(--unread)",
backgroundColor: "var(--danger)",
color: "black",
opacity: 1,
},

View File

@ -34,7 +34,8 @@
--bg-primary : rgba(31, 32, 35, 1);
--bg-2: #27282c;
--bg-3: rgba(0, 0, 0, 0.1);
--unread: #B14646;
--unread: #4297e2;
--danger: #B14646;
--apps-circle: #1F2023;
--green: #5EB049;
}