Skip to content

Commit

Permalink
PrivacyScreen: create
Browse files Browse the repository at this point in the history
  • Loading branch information
Saltssaumure committed Jun 18, 2024
1 parent 029a60a commit 6464a41
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 0 deletions.
31 changes: 31 additions & 0 deletions themes/PrivacyScreen/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[preview]: https://minidiscordthemes.github.io/Snippets/PrivacyScreen/preview.avif

# Privacy Screen
![Status: working](https://img.shields.io/badge/status-working-green?style=flat-square)

Hides Discord behind a screen when tabbed out.

![PrivacyScreen applied to Discord][preview]

## Usage
### `@import`
```css
@import url("https://minidiscordthemes.github.io/Snippets/PrivacyScreen/main.css");
```
### Replugged automatic theme
[Install now](https://replugged.dev/install?identifier=net.saltssaumure.PrivacyScreen)
### Replugged manual theme
[Download now](https://github.com/MiniDiscordThemes/Snippets/releases/latest/download/net.saltssaumure.PrivacyScreen.asar)
### Vencord online theme
```
https://minidiscordthemes.github.io/Snippets/PrivacyScreen/main.css
```

## Customisation
Paste the following at the end of Custom / Quick CSS, then edit the values:
```css
:root {
--privacy-bg-image: var(--privacy-discord-icon);
--privacy-bg-color: var(--background-primary);
}
```
22 changes: 22 additions & 0 deletions themes/PrivacyScreen/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"id": "net.saltssaumure.PrivacyScreen",
"name": "Privacy Screen",
"description": "Hides Discord behind a screen when tabbed out. See GitHub for customisation options.",
"author": [
{
"name": "Saltssaumure",
"discordID": "134142022092062720",
"github": "Saltssaumure"
}
],
"version": "1.0.0",
"updater": {
"type": "store",
"id": "net.saltssaumure.PrivacyScreen"
},
"license": "MIT",
"type": "replugged-theme",
"main": "scss/main.scss",
"source": "https://github.com/MiniDiscordThemes/Snippets/blob/main/themes/PrivacyScreen",
"image": ["https://minidiscordthemes.github.io/Snippets/PrivacyScreen/preview.avif"]
}
Binary file not shown.
Binary file added themes/PrivacyScreen/preview/preview-vesktop.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/PrivacyScreen/preview/preview.avif
Binary file not shown.
Binary file added themes/PrivacyScreen/preview/preview.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions themes/PrivacyScreen/scss/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
:root {
--privacy-discord-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 127.14 96.36'%3E%3Cpath fill='%23fff' d='M107.7 8.07A105.2 105.2 0 0 0 81.47 0a72 72 0 0 0-3.36 6.83 97.7 97.7 0 0 0-29.11 0A72 72 0 0 0 45.64 0a106 106 0 0 0-26.25 8.09C2.79 32.65-1.71 56.6.54 80.21a105.7 105.7 0 0 0 32.17 16.15 77.7 77.7 0 0 0 6.89-11.11 68.4 68.4 0 0 1-10.85-5.18c.91-.66 1.8-1.34 2.66-2a75.57 75.57 0 0 0 64.32 0c.87.71 1.76 1.39 2.66 2a68.7 68.7 0 0 1-10.87 5.19 77 77 0 0 0 6.89 11.1 105.3 105.3 0 0 0 32.19-16.14c2.64-27.38-4.51-51.11-18.9-72.15M42.45 65.69C36.18 65.69 31 60 31 53s5-12.74 11.43-12.74S54 46 53.89 53s-5.05 12.69-11.44 12.69m42.24 0C78.41 65.69 73.25 60 73.25 53s5-12.74 11.44-12.74S96.23 46 96.12 53s-5.04 12.69-11.43 12.69'/%3E%3C/svg%3E");
--privacy-bg-image: var(--privacy-discord-icon);
--privacy-bg-color: var(--background-primary);
}

.layers_a23c37::after {
content: "";
position: absolute;
inset: 0;
z-index: 999999;
cursor: pointer;
background:
var(--privacy-bg-image) center/150px no-repeat,
var(--privacy-bg-color);
background-blend-mode: difference;
transition: opacity 0.2s ease;
}

.app-focused .layers_a23c37::after {
opacity: 0;
transition-duration: 1s;
pointer-events: none;
}

0 comments on commit 6464a41

Please sign in to comment.