This commit is contained in:
MathMan05
2025-07-05 09:53:21 -05:00
parent 5d6cafe2f0
commit aa69856be0
3 changed files with 28 additions and 6 deletions
+13 -1
View File
@@ -441,6 +441,18 @@ class Member extends SnowFlake {
}
return false;
}
getTopColor() {
if (!this.localuser.perminfo.user.disableColors) {
return "";
}
for (const thing of this.roles) {
const color = thing.getColor();
if (color) {
return thing.id;
}
}
return "";
}
getColor() {
if (!this.localuser.perminfo.user.disableColors) {
return "";
@@ -471,7 +483,7 @@ class Member extends SnowFlake {
}
*/
html.style.color = this.getColor();
html.style.color = `var(--role-${this.getTopColor()})`;
}
//this.profileclick(html);
+2
View File
@@ -31,6 +31,7 @@ class Role extends SnowFlake {
}
(this as any)[thing] = (json as any)[thing];
}
document.body.style.setProperty(`--role-${this.id}`, this.getColor());
this.permissions = new Permissions(json.permissions);
this.owner = owner;
}
@@ -41,6 +42,7 @@ class Role extends SnowFlake {
}
(this as any)[thing] = (json as any)[thing];
}
document.body.style.setProperty(`--role-${this.id}`, this.getColor());
this.permissions.allow = BigInt(json.permissions);
}
get guild(): Guild {
+13 -5
View File
@@ -2191,10 +2191,12 @@ img.bigembedimg {
}
.profile .pfpDiv {
position: absolute;
z-index: 2;
top: 20px;
}
.profile .pfp {
height: 48px;
width: 48px;
height: 64px;
width: 64px;
margin: 8px 0 0 8px;
cursor: auto;
}
@@ -2208,6 +2210,10 @@ img.bigembedimg {
border: 2.5px solid var(--black);
border-radius: 50%;
}
.profile .statusDiv {
width: 14px;
height: 14px;
}
.onlinestatus {
background: var(--green);
}
@@ -2215,9 +2221,12 @@ img.bigembedimg {
background: var(--primary-bg);
}
.banner {
background: yellow;
height: 100px;
width: 100%;
object-fit: cover;
position: absolute !important;
/* z-index: 2; */
}
.badge {
display: inline-flex;
@@ -2241,9 +2250,8 @@ img.bigembedimg {
border-radius: 8px;
box-sizing: border-box;
overflow-y: auto;
}
.profile:has(.banner) .infosection {
margin-top: 8px;
padding-top: 30px;
z-index: 1;
}
.infosection h2,
.infosection h3 {