Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

Commit

Permalink
v1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckFire committed Jun 14, 2021
1 parent b5deb65 commit 566e782
Show file tree
Hide file tree
Showing 19 changed files with 762 additions and 874 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# v1.4.0
Some minor adjustments / changes.
- Repo has been completely redone.
- New README & assets.
- Redid the file structure.
- Some class changes for badges being applied.
- There is no longer any Vizality support, as I have no way to add it (for the recent rework anyways). If you're an Alpha tester for Vizality, and want to add it "properly," feel free to make a pull request doing so.

# v1.3.0
Some minor adjustments / changes:
- A lot less specific on what classes are used.
Expand Down
35 changes: 18 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
![Banner](./assets/banner.png)

# Discord Name Badges
Some nice custom badges for next to usernames. If you want your **OWN, COOL, and AMAZING** custom badge, please read the **[badge request](https://github.com/Discord-Theme-Addons/discord-name-badges#badge-request)** segment of this readme.
# Name badges
Some nice custom badges for next to usernames.
- If you'd like your own badges, please read the [badge request](https://github.com/Discord-Theme-Addons/discord-name-badges#badge-request) segment.

![Preview](./screenshots/UsermodalPreview.png)
![Preview](./screenshots/MessagePreview.png)

## Installation
For **[Powercord](http://powercord.dev/)** or **[Vizality](https://vizality.com/)** installation, go to **Themes -> Open a CMD / Powershell / Terminal / Gitbash** in the folder, and enter the following:
For **[Powercord](http://powercord.dev/)** installation, **locate and head over to your themes folder, open a terminal of choice, and enter the following:**
```
git clone https://github.com/Discord-Theme-Addons/discord-name-badges
git clone https://github.com/Discord-Theme-Addons/name-badges
```

#### For BetterDiscord:
In order for this to work on BetterDiscord, you will need DevilBro's **[Plugin Library](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Library/)**. I don't reccomend using this as it can cause performance issues due to it not being optimized that well. Proceed at your own risk.
- [Direct Download](https://betterdiscord.net/ghdl?id=3670)
- [View Source](https://raw.githack.com/Discord-Theme-Addons/discord-name-badges/main/src/main/mods/betterdiscord/NameBadges.theme.css)
For **[BetterDiscord](http://betterdiscord.app/)** installation, you will need **[DevilBro's Plugin Library](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Library/)**. I do not recommend the sue of this, as it can possibly cause performance issues due to it not being optimized that well. Proceed at your own risk.
- [Direct Download]()
- [View Source]()

## Badge Request
I get it, you want your **VERY OWN** custom name badge. You may be wondering to yourself "omGGGG lucKFiEr HOw to gEt the CoOLeSt NamE bADgE/!?!" Well.. the process is a lot simpler than you would think. All you have to do is make an **[issue request](https://github.com/Discord-Theme-Addons/discord-name-badges/issues/new/choose)** using the right template. If you're first time requesting a badge, make sure you use the "Badge Request" template. If you're updating your badge, use the "Change Badge Request" template. As soon as I can, either Hoofer or I will update to give you your badge. Be on the lookout for your badge being added, because usually we will close the issue request and comment on it when it is added. Once your badge is added, please make sure you update the theme so it appears!
- **Please make sure your image is hosted on a trusted domain (such as i.imgur or cdn.discordapp) and that they are the same width by height so it wont look off.**
- **Please do NOT make a pull request adding your badge. It's easier for me to just add it along with others in a batch of users.**
To request your **VERY OWN** custom badge, make an **[issue](https://github.com/Discord-Theme-Addons/discord-name-badges/issues/new/choose)** using the "Request a Badge" template. Before submitting, please make sure you do the following:
- Images **MUST** be hosted on a trusted domain, such as imgur or discordapp itself.
- They should be the same width by height, otherwise it may look weird.

## Add it Yourself (POWERCORD AND VIZALITY ONLY)
If you're impatient and don't like waiting, you can add your badge yourself! However, for some people this process may be complicated, so I recommend waiting. Please note that others who have this theme will not be able to see your badge since it's added through your end.
If at any point in time you want your badge changed, please make another issue, however use the "Request Badge Change" template instead. As soon as I can, either Hoofer or I will add or update your badge. Usually, these are usually added in batches, so it may take some time as it is done manually.
- Please DO NOT make a pull request adding your badge, as it's easier just for me to add them in a batch of users.

If you know what you're doing, you can proceed to follow the steps listed below.
1. Head over to `./src/main` an open `./_users.scss`.
## Add it Yourself (POWERCORD ONLY)
If you don't want to wait for your badge to be added, you can add it yourself on your end. Only people who know what they're doing should proceed, as I won't offer any help for this.

1. Head over to `./src/badges/_users.scss`.
2. All the way at the bottom (inside of `$users:();`), make a new line and enter:
```scss
$users: (
Expand All @@ -39,4 +40,4 @@ $users: (
A big thank you to everyone who helped with this!
- **[botato](https://github.com/bototo2)** (aka the CUTEST panda in the world) for helping me learn more CSS to make badges appear on the user profile popout modal.
- **[Hoofer](https://github.com/HooferDevelops)** for helping me maintain this as well as adding basic Vizality support.
- **[Snapperito](https://github.com/Snapperito)** for touching up the readme by fixing issues with the grammar.
- **[Snapperito](https://github.com/Snapperito)** for touching up the readme by fixing issues with the grammar.
Binary file modified assets/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@use './src/powercord';
9 changes: 0 additions & 9 deletions manifest.json

This file was deleted.

4 changes: 2 additions & 2 deletions powercord_manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "Name Badges",
"description": "Some nice custom badges for next to usernames.",
"version": "1.3.0",
"version": "1.4.0",
"author": "LuckFire#4800",
"theme": "./src/main/mods/powercord.scss",
"theme": "index.scss",
"consent": "true",
"license": "MIT"
}
14 changes: 14 additions & 0 deletions src/_powercord.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@use 'badges';

@each $userID, $badgeLink in badges.$users {
[data-author-id='#{$userID}'] .username-1A8OIy, // Messaegs
[data-user-id="#{$userID}"] + .header-3uLluP, // Beginning of DMs
[data-user-id="#{$userID}"] + .text-37NqbO .username-2b1r56, // Friends List
[data-user-id="#{$userID}"] + .listName-U3shDM .username-2b1r56 // Mutual Friends
{
&::before {
content: '';
background: url($badgeLink) center/100% no-repeat;
}
}
}
2 changes: 2 additions & 0 deletions src/badges/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@forward 'users';
@forward 'positioning';
30 changes: 30 additions & 0 deletions src/badges/_positioning.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#app-mount {
.nameAndDecorators-5FJ2dg .name-uJV0GL .overflow-WK9Ogt, // Private Messages List
.nameAndDecorators-5FJ2dg .name-uJV0GL span, // Members List
.listAvatar-1BbvHX + .listName-U3shDM .username-2b1r56 // Mutual Friends
{
&::before {
padding: 0 8px 0 8px;
margin-right: 4px;
}
}

.wrapper-2a6GCs h2 .username-1A8OIy, // Messages
.userInfo-2zN2z8 .wrapper-3t9DeA + .text-37NqbO .username-2b1r56, // Friends List
.userPopout-xaxa6l .headerTagUsernameNoNickname-1ZLDYY, // User Popout - No Nickname
.userPopout-xaxa6l .nickname-2gQ76l // User Popout - Has Nickname
{
&::before {
padding: 0 10px 0 10px;
margin-right: 4px;
}
}

.wrapper-3t9DeA + .header-3uLluP // Beginning of DMs
{
&::before {
padding: 0 12px 0 12px;
margin-right: 4px;
}
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* @name Name Badges
* @version 1.3.0
* @version 1.4.0
* @description Some nice custom badges for next to usernames.
* @author LuckFire#4800
*
* @website https://github.com/Discord-Theme-Addons
* @source https://github.com/Discord-Theme-Addons/name-badges/tree/main/src
**/

@import url('https://discord-theme-addons.github.io/name-badges/src/main/mods/betterdiscord/bd-compile.css');
@import url('https://discord-theme-addons.github.io/name-badges/src/betterdiscord/bd-compile.css');
Loading

0 comments on commit 566e782

Please sign in to comment.