Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 20 additions & 15 deletions wa.user.styl
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
@name Dark-WhatsApp
@description Dark and light, very customizable theme for WhatsApp.
@namespace github.com/vednoc/dark-whatsapp
@homepageURL https://github.com/vednoc/dark-whatsapp
@homepageURL https://github.com/boghicieusebiu/dark-whatsapp
@supportURL https://github.com/vednoc/dark-whatsapp/issues
@updateURL https://userstyles.world/api/style/4.user.css
@updateURL https://github.com/boghicieusebiu/dark-whatsapp/raw/refs/heads/master/wa.user.styl
@author vednoc <vednoc@pm.me> (https://github.com/vednoc)
@version 3.7.2
@version 3.7.3
@license MIT
@preprocessor stylus

Expand Down Expand Up @@ -90,6 +90,7 @@

@var checkbox chat_h_p_p 'Hide profile pictures' 0
@var checkbox chat_b_c 'Blurred contacts' 0
@var range chat_b_c_i 'Blurred intensity' [6, 2, 15, 1, "px"]
@var checkbox chat_b_img 'Blurred media' 0
@var text chat_b_in 'Blurred media hover-on delay' 0.4s
@var text chat_b_out 'Blurred media hover-off delay' 0.2s
Expand Down Expand Up @@ -1523,21 +1524,25 @@ msg += "P.S. CSS can not create clickable links."
}

// Sidebar.
#side {
#pane-side {
/// Feat -> Blur contacts.
if (chat_b_c) {
[style *= '0s; height'] {
/// Remove odd shadow.
> [aria-selected = 'true'] {
> div::after { display: none i }
}
div > div {
[aria-label="Chat list"] {
> div > div {
/// Remove odd shadow.
> [aria-selected = 'true'] {
> div::after { display: none i }
}

/// Do the blur.
> :not([aria-selected = 'true']) {
overflow: hidden i
> div { transition: background, filter 300ms ease-in-out i }
&:not(:hover) > div { filter: blur(6px) }
&:hover { filter: blur(0px) }
/// Do the blur.
> :not([aria-selected = 'true']) {
overflow: hidden i
> div { transition: background, filter 300ms ease-in-out i }
&:not(:hover) > div { filter: blur(chat_b_c_i) }
&:hover { filter: blur(0px) }
}
}
}
}
}
Expand Down