stuff
This commit is contained in:
parent
601151957f
commit
fe50da7407
|
@ -2853,9 +2853,9 @@ module.exports = (_ => {
|
|||
BDFDB.UserUtils.getStatusColor = function (status, useColor) {
|
||||
status = typeof status == "string" ? status.toLowerCase() : null;
|
||||
switch (status) {
|
||||
case "online": return BDFDB.DiscordConstants.Colors.STATUS_GREEN;
|
||||
case "idle": return BDFDB.DiscordConstants.Colors.STATUS_YELLOW;
|
||||
case "dnd": return BDFDB.DiscordConstants.Colors.STATUS_RED;
|
||||
case "online": return useColor ? BDFDB.DiscordConstants.Colors.STATUS_GREEN_600 : "var(--bdfdb-green)";
|
||||
case "idle": return useColor ? BDFDB.DiscordConstants.Colors.STATUS_YELLOW : "var(--bdfdb-yellow)";
|
||||
case "dnd": return useColor ? BDFDB.DiscordConstants.Colors.STATUS_RED : "var(--bdfdb-red)";
|
||||
case "playing": return useColor ? BDFDB.DiscordConstants.Colors.BRAND : "var(--bdfdb-blurple)";
|
||||
case "listening": return BDFDB.DiscordConstants.Colors.SPOTIFY;
|
||||
case "streaming": return BDFDB.DiscordConstants.Colors.TWITCH;
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
@import url(https://mwittrien.github.io/BetterDiscordAddons/Themes/_res/SupporterBadge.css);
|
||||
|
||||
:root {
|
||||
--bdfdb-blurple: var(--brand-experiment, var(--blurple, #5865f2));
|
||||
--bdfdb-blurple: var(--brand-experiment, #5865f2);
|
||||
--bdfdb-green: var(--status-positive-background, #3ba55c);
|
||||
--bdfdb-yellow: var(--status-warning-background, #faa61a);
|
||||
--bdfdb-red: var(--status-danger-background, #ed4245);
|
||||
}
|
||||
|
||||
img:not([src]), img[src=""], img[src="null"] {
|
||||
|
@ -1527,7 +1530,7 @@ img:not([src]), img[src=""], img[src="null"] {
|
|||
color: #FFF;
|
||||
}
|
||||
[REPLACE_CLASS_toastdanger] [REPLACE_CLASS_toastbg] {
|
||||
background-color: #F04747;
|
||||
background-color: var(--bdfdb-red);
|
||||
}
|
||||
[REPLACE_CLASS_toastdanger] [REPLACE_CLASS_toastinner] {
|
||||
color: #FFF;
|
||||
|
@ -1539,13 +1542,13 @@ img:not([src]), img[src=""], img[src="null"] {
|
|||
color: #FFF;
|
||||
}
|
||||
[REPLACE_CLASS_toastsuccess] [REPLACE_CLASS_toastbg] {
|
||||
background-color: #43B581;
|
||||
background-color: var(--bdfdb-green);
|
||||
}
|
||||
[REPLACE_CLASS_toastsuccess] [REPLACE_CLASS_toastinner] {
|
||||
color: #FFF;
|
||||
}
|
||||
[REPLACE_CLASS_toastwarning] [REPLACE_CLASS_toastbg] {
|
||||
background-color: #FFA600;
|
||||
background-color: var(--bdfdb-yellow);
|
||||
}
|
||||
[REPLACE_CLASS_toastwarning] [REPLACE_CLASS_toastinner] {
|
||||
color: #FFF;
|
||||
|
|
|
@ -129,7 +129,7 @@ module.exports = (_ => {
|
|||
DESKTOP: {
|
||||
button: 2,
|
||||
value: 2,
|
||||
color: "STATUS_GREEN"
|
||||
color: "var(--bdfdb-green)"
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -82,13 +82,13 @@ module.exports = (_ => {
|
|||
const buttonData = {
|
||||
INSTALLED: {
|
||||
colorClass: "GREEN",
|
||||
backgroundColor: "STATUS_GREEN",
|
||||
backgroundColor: "var(--bdfdb-green)",
|
||||
icon: "CHECKMARK",
|
||||
text: "USER_SETTINGS_VOICE_INSTALLED_LABEL"
|
||||
},
|
||||
OUTDATED: {
|
||||
colorClass: "RED",
|
||||
backgroundColor: "STATUS_RED",
|
||||
backgroundColor: "var(--bdfdb-red)",
|
||||
icon: "CLOSE",
|
||||
text: "outdated"
|
||||
},
|
||||
|
|
|
@ -83,13 +83,13 @@ module.exports = (_ => {
|
|||
const buttonData = {
|
||||
INSTALLED: {
|
||||
colorClass: "GREEN",
|
||||
backgroundColor: "STATUS_GREEN",
|
||||
backgroundColor: "var(--bdfdb-green)",
|
||||
icon: "CHECKMARK",
|
||||
text: "USER_SETTINGS_VOICE_INSTALLED_LABEL"
|
||||
},
|
||||
OUTDATED: {
|
||||
colorClass: "RED",
|
||||
backgroundColor: "STATUS_RED",
|
||||
backgroundColor: "var(--bdfdb-red)",
|
||||
icon: "CLOSE",
|
||||
text: "outdated"
|
||||
},
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
}
|
||||
.dev-A7f2Rx.hasBadge-4rT8_u .badge-7R_W3s {
|
||||
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 508.52 508.52"><path fill="black" d="M63.565, 476.737c0, 12.84, 7.755, 24.473, 19.61, 29.367c3.941, 1.621, 8.073, 2.415, 12.173, 2.415c8.263, 0, 16.4-3.242, 22.47-9.312L254.26, 362.765l136.442, 136.442c6.07, 6.07, 14.207, 9.312, 22.47, 9.312c4.1, 0, 8.232-0.795, 12.141-2.415c11.887-4.894, 19.642-16.527, 19.642-29.367V165.347H63.565V476.737z"/><path fill="black" d="M413.172, 0H95.347C77.804, 0, 63.565, 14.239, 63.565, 31.782v61.782h381.39V31.782C444.955, 14.239, 430.716, 0, 413.172, 0z"/></svg>') center/cover no-repeat !important;
|
||||
background: var(--bdfdb-blurple, #7289da) !important;
|
||||
background: var(--bdfdb-blurple, #5865f2) !important;
|
||||
position: absolute !important;
|
||||
width: 30% !important;
|
||||
height: 30% !important;
|
||||
|
|
Loading…
Reference in New Issue