Skip to content

Commit

Permalink
Friend request, deleted user, banner class fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bitslayn committed Jul 28, 2024
1 parent bde1a7d commit c1501fe
Show file tree
Hide file tree
Showing 11 changed files with 3,615 additions and 15 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Bitslayn's silly Replugged addons

This is my Github repo for all my Replugged addons.
This is where I keep all my Replugged addons :3

### Themes
- [Dis-Cons](https://github.com/Bitslayn/RepluggedAddons/tree/main/themes/btw.bitslayn.discordicons)
- [Revert Profiles](https://github.com/Bitslayn/RepluggedAddons/tree/main/themes/btw.bitslayn.revertProfiles)

### Plugins
- [Channel Icons](https://github.com/Bitslayn/RepluggedAddons/tree/main/plugins/btw.bitslayn.channelIcons)
1 change: 1 addition & 0 deletions themes/btw.bitslayn.discordicons/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Dis-Cons
[![Install in Replugged](https://img.shields.io/badge/-Install%20in%20Replugged-blue?style=for-the-badge&logo=none)](https://replugged.dev/install?identifier=btw.bitslayn.discordicons)
[Vencord (Online Theme)](https://raw.githubusercontent.com/Bitslayn/RepluggedAddons/main/themes/btw.bitslayn.discordicons/raw/main.css)

Just a little Replugged theme which adds icons to context menus which don't have them

Expand Down
260 changes: 260 additions & 0 deletions themes/btw.bitslayn.discordicons/raw/main.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions themes/btw.bitslayn.revertProfiles/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Revert Profiles
[![Install in Replugged](https://img.shields.io/badge/-Install%20in%20Replugged-blue?style=for-the-badge&logo=none)](https://replugged.dev/install?identifier=btw.bitslayn.revertProfiles)
[Vencord (Online Theme)](https://raw.githubusercontent.com/Bitslayn/RepluggedAddons/main/themes/btw.bitslayn.revertProfiles/raw/main.css)

Reverts user profiles to the layout before they were simplified. This does not increase how many roles are shown in popout profiles.

Expand Down
3,302 changes: 3,302 additions & 0 deletions themes/btw.bitslayn.revertProfiles/raw/main.css

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions themes/btw.bitslayn.revertProfiles/src/banners.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Solid color
[class*="biteSizeOuter"]
> [class*="userProfileInner"]
> header:not(:has([style^="background-image"])) {
> header:not(:has([style*="background-image"])) {
> [class^="avatar"] {
top: 16px;
left: 22px;
Expand Down Expand Up @@ -34,7 +34,7 @@
}
[class*="fullSizeOuter"]
> [class*="userProfileInner"]
> header:not(:has([style^="background-image"])) {
> header:not(:has([style*="background-image"])) {
height: 106px;
> [class^="headerInner"] > [class^="avatar"] {
position: fixed;
Expand Down Expand Up @@ -68,7 +68,7 @@

// Premium + solid color
[class*="biteSizeOuter"][class*="userProfileOuterThemed"] > [class*="userProfileInner"] {
> header:not(:has([style^="background-image"])) > [class^="bannerSVGWrapper"] {
> header:not(:has([style*="background-image"])) > [class^="bannerSVGWrapper"] {
@include dumbmaxing;
mask circle {
cx: 51.25;
Expand All @@ -77,15 +77,15 @@
}
}
[class*="fullSizeOuter"][class*="userProfileOuterThemed"] > [class*="userProfileInner"] {
> header:not(:has([style^="background-image"])) > [class^="headerInner"] > [class^="avatar"] {
> header:not(:has([style*="background-image"])) > [class^="headerInner"] > [class^="avatar"] {
top: 45px;
left: 26px;
}
}

// USRBG
[class*="biteSizeOuter"]:not([class*="userProfileOuterThemed"]) > [class*="userProfileInner"] {
> header:has([style^="background-image"]) > svg {
> header:has([style*="background-image"]) > svg {
@include dumbmaxing;
mask circle {
cx: 54.5 !important;
Expand All @@ -94,7 +94,7 @@
}
}
[class*="fullSizeOuter"]:not([class*="userProfileOuterThemed"]) > [class*="userProfileInner"] {
> header:has([style^="background-image"]) > svg {
> header:has([style*="background-image"]) > svg {
@include dumbmaxing;
mask circle {
cx: 88;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
> [class^="wrapper"] > div:has(
> button > div > svg > path[d^="M19 14a1 1 0"], /* Add Friend */
> button > div > svg > path[d^="M12 10a4 4 0"], /* Friends */
> button > div > svg > path[d^="M5.26 12.45c"] /* Mod View */
> button > div > svg > path[d^="M5.26 12.45c"], /* Mod View */
> button > div > svg > path[d^="M16 6a4 4 0 "] /* Pending */
) {
display: none;
}
Expand Down
27 changes: 23 additions & 4 deletions themes/btw.bitslayn.revertProfiles/src/fixes/static.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Fix static profiles
[data-popout-animating="false"]:has(> div > [class^="biteSizeOuter"]),
div[id^="popout"] > [data-popout-animating="false"],
[class^="accountProfilePopoutWrapper"],
[class^="customizationSection"],
[class^="previewContainer"] > [class^="biteSizeOuter"],
Expand Down Expand Up @@ -33,9 +33,10 @@

// Fix profiles with no body or footer
[class*="biteSizeOuter"] > [class*="userProfileInner"] {
&:not(:has(> footer > *)),
&:has(footer > button [d^="m13.96 5.46 4.58 4.58a1"]):not(
footer > *:not(button [d^="m13.96 5.46 4.58 4.58a1"])
&:not(:has(> footer > *)), // Includes my profile static, Discord's profile, and deleted users
// My bitesize profile edit button
&:has(footer > button [d^="m13.96 5.46 "]):not(
footer > *:not(button [d^="m13.96 5.46 "])
) {
> footer {
visibility: hidden;
Expand All @@ -50,10 +51,28 @@
&:not(:has(> div:nth-child(2) > *))::before {
display: none;
}
&:not(:has(> div:nth-child(2) > *)) {
padding: unset !important;
> [class^="container"] {
border-bottom-left-radius: var(--radius-sm);
border-bottom-right-radius: var(--radius-sm);
}
}
}
}
}

// "Unable to load profile banner, badges, and about me." indicator
[class^="nicknameIcons"] > div[aria-label]:not([class^="clickTarget"]) {
position: fixed;
top: 8px;
right: 16px;
> svg {
width: 20px;
height: 20px;
}
}

// Fix dropdown menu positioning
[class^="accountProfilePopoutWrapper"]
[class^="biteSizeOverlayBackground"]
Expand Down
4 changes: 2 additions & 2 deletions themes/btw.bitslayn.revertProfiles/src/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
&[class^="biteSizeOuter"] {
--banner-height: 60px;
--banner-offset: calc(120px - var(--banner-height));
&:has(foreignObject > [style^="background-image"]) {
&:has(foreignObject > [style*="background-image"]) {
--banner-height: 120px;
}
--badge-container-height: 22px; // 0 rows (Minimal gap of 16px)
Expand All @@ -19,7 +19,7 @@
&[class^="fullSizeOuter"] {
--banner-height: 105px; // Pretty sure this should be 206px
--banner-offset: calc(210px - var(--banner-height));
&:has(foreignObject > [style^="background-image"]) {
&:has(foreignObject > [style*="background-image"]) {
--banner-height: 210px; // Should be 212px but I got lazy
}
--badge-container-height: 22px; // 0 rows (Minimal gap of 24px)
Expand Down
4 changes: 4 additions & 0 deletions themes/btw.bitslayn.revertProfiles/src/profiles/full.scss
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@
}
}
> [class^="fullSizeOverlayBackground"] {
// Accept friend request
&:is([class*="friendRequestBannerOverlay"]) {
display: none;
}
border-top-left-radius: unset;
border-top-right-radius: unset;
border: unset;
Expand Down
7 changes: 6 additions & 1 deletion themes/btw.bitslayn.revertProfiles/src/profiles/popout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
> [class^="bannerSVGWrapper"] {
padding: 0 0 calc(83px + var(--badge-container-height) - var(--banner-offset));
display: block;
&:has(foreignObject > [style^="background-image"]) {
&:has(foreignObject > [style*="background-image"]) {
transform: scaleY(1.0084) translateY(1px);
mask circle {
cx: 51;
Expand Down Expand Up @@ -182,6 +182,11 @@
//overflow: unset !important;
background-color: var(--profile-body-background-color);

// Accept friend request
> [class^="biteSizeOverlayBackground"] {
display: none;
}

// Divider
&::before {
content: "";
Expand Down

0 comments on commit c1501fe

Please sign in to comment.