Skip to content

Commit

Permalink
Merge pull request #101 from E-RELevant/patch-29
Browse files Browse the repository at this point in the history
feat: add an option to choose which alerts to show

Closes #88.
  • Loading branch information
vednoc committed Jan 21, 2020
2 parents fc1171e + bdf3f37 commit b705b8e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions wa.user.styl
Expand Up @@ -22,6 +22,12 @@
@var checkbox chat_b_c 'Enable blurred contacts' 0
@var checkbox chat_b_img 'Enable blurred images/videos' 0
@var select alerts 'Alerts' {
'Show all *': 'show ',
'Hide "Allow notifications" ': 'notifications ',
'Hide all ': 'hide ',
}
@var select chat_msg_t 'Message tails style' {
'Default *': 'default ',
'Minimal ': 'minimal ',
Expand Down Expand Up @@ -939,13 +945,17 @@
* { c: blue }
[data-icon ^= 'chevron-'] path { v: blue }
[data-icon ^= 'alert-'] path[fill ^= '#FFF'] { fill: blue }
/// Alerts -> Remove 'allow desktop notifications' alert.
if ( alerts == 'notifications' ) { display: none i }
}
/// Phone battery low.
._2t3oV {
* { c: red }
[data-icon ^= 'chevron-'] path { v: red }
[data-icon ^= 'alert-'] path[fill ^= '#FFF'] { fill: red }
}
/// Alerts -> Remove all alerts.
if ( alerts == 'hide' ) { display: none i }
}
/// Search.
/div[class *= 'ZP8RM'] {
Expand Down

0 comments on commit b705b8e

Please sign in to comment.