Skip to content

Commit

Permalink
Add ModTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
Saltssaumure committed Sep 15, 2023
1 parent 008cb2a commit 4ec671b
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 0 deletions.
1 change: 1 addition & 0 deletions ModTitle/ModTitle.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions ModTitle/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Client Mod Title
![Status: working](https://img.shields.io/badge/status-working-green?style=flat-square)

Changes the wordmark in the titlebar to the current client mod.

Currently supported client mods:
- BetterDiscord
- Replugged
- Vencord
- Shelter

If none of the above are detected, the wordmark will display "Modified Discord".

![ModTitle applied to Vencord](preview.avif)

## Usage
### Custom / Quick CSS
Paste the following at the start:
```css
@import url("https://minidiscordthemes.github.io/Snippets/ModTitle/ModTitle.css");
```
### Vencord Themes
```
https://minidiscordthemes.github.io/Snippets/ModTitle/ModTitle.css
```
Binary file added ModTitle/preview.avif
Binary file not shown.
35 changes: 35 additions & 0 deletions ModTitle/scss/ModTitle.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Wordmark by client mod
.wordmark-2u86JB {
pointer-events: unset;
padding: 0;

> svg {
display: none;
}

&::after {
position: absolute;
top: 4px;
padding: 4px 9px 3px;
font-size: 9px;
letter-spacing: 0.4px;
white-space: nowrap;
font-family: var(--font-headline);

content: "Modified Discord";

:root:has(#vencord-css-core) & {
content: "Vencord";
}
:root:has(link[href^="replugged"]) & {
content: "Replugged";
}
.bd-transparency & {
content: "BetterDiscord";
}
:root:has(script[src^="chrome-extension://cpojbkbhfkkljmlojagocnbmiaagkhkn"])
{
content: "Shelter";
}
}
}

0 comments on commit 4ec671b

Please sign in to comment.