fix for new dm classes
This commit is contained in:
parent
e9c8ac427f
commit
52d4a82b7a
File diff suppressed because one or more lines are too long
|
@ -3,7 +3,7 @@
|
|||
class PinDMs {
|
||||
getName () {return "PinDMs";}
|
||||
|
||||
getVersion () {return "1.4.3";}
|
||||
getVersion () {return "1.4.4";}
|
||||
|
||||
getAuthor () {return "DevilBro";}
|
||||
|
||||
|
@ -11,7 +11,7 @@ class PinDMs {
|
|||
|
||||
initConstructor () {
|
||||
this.changelog = {
|
||||
"fixed":[["Vanished Direct Message","Fixed issue where the direct message icon of a user might vanish after a reload"]]
|
||||
"fixed":[["Pinned DMs","Changed to new DM classes"]]
|
||||
};
|
||||
|
||||
this.patchModules = {
|
||||
|
@ -78,34 +78,36 @@ class PinDMs {
|
|||
<div class="${BDFDB.disCNS.guildpillwrapper + BDFDB.disCN.dmpill}">
|
||||
<span class="${BDFDB.disCN.guildpillitem}" style="opacity: 0; height: 8px; transform: translate3d(0px, 0px, 0px);"></span>
|
||||
</div>
|
||||
<div tabindex="0" class="${BDFDB.disCNS.dmcontainer + BDFDB.disCN.guildinner}" role="button">
|
||||
<svg width="48" height="48" viewBox="0 0 48 48" class="${BDFDB.disCN.guildsvg}">
|
||||
<mask id="" fill="black" x="0" y="0" width="48" height="48">
|
||||
<path d="M0 0 l50 0l0 50l-50 0l0 -50Z" fill="white"></path>
|
||||
<rect x="28" y="-4" width="24" height="24" rx="12" ry="12" transform="translate(0 0)" fill="black"></rect>
|
||||
<rect x="28" y="28" width="24" height="24" rx="12" ry="12" transform="translate(-20 20)" fill="black"></rect>
|
||||
</mask>
|
||||
<foreignObject mask="" x="0" y="0" width="48" height="48">
|
||||
<a class="${BDFDB.disCN.guildiconwrapper}" draggable="false" style="border-radius: 50%;">
|
||||
<img class="${BDFDB.disCN.guildicon}" src="" width="48" height="48" draggable="false"></img>
|
||||
</a>
|
||||
</foreignObject>
|
||||
</svg>
|
||||
<div class="${BDFDB.disCN.guildbadgewrapper}">
|
||||
<div class="${BDFDB.disCN.guildupperbadge} pin-badge" style="opacity: 1; transform: translate(0px, 0px);">
|
||||
<div class="${BDFDB.disCNS.guildbadgeiconbadge + BDFDB.disCN.guildbadgeiconbadge2}" style="width: 16px; padding-right: 1px;">
|
||||
<svg class="${BDFDB.disCN.guildbadgeicon}" name="Nova_Pin" width="24" height="24" viewBox="0 0 520 520">
|
||||
<g fill="white">
|
||||
<path d="M291.31, 402.761L109.241, 220.693C79.073, 190.525, 30.166, 190.526, 0, 220.692l291.31, 291.31C321.474, 481.835, 321.476, 432.927, 291.31, 402.761z"></path>
|
||||
<polygon points="273.104, 111.449 154.758, 211.589 300.412, 357.242 400.55, 238.898"></polygon>
|
||||
<path d="M500.688, 175.174L336.827, 11.313c-15.085-15.085-39.539-15.083-54.621, 0c-15.082, 15.082-15.082, 39.538, 0, 54.62 l163.861, 163.861c15.083, 15.085, 39.539, 15.085, 54.621, 0.001C515.773, 214.712, 515.773, 190.257, 500.688, 175.174z"></path>
|
||||
<polygon points="91.032, 366.346 0, 512 145.655, 420.967"></polygon>
|
||||
</g>
|
||||
</svg>
|
||||
<div class="${BDFDB.disCN.dmcontainer}">
|
||||
<div class="${BDFDB.disCN.guildinner}">
|
||||
<svg width="48" height="48" viewBox="0 0 48 48" class="${BDFDB.disCN.guildsvg}">
|
||||
<mask id="" fill="black" x="0" y="0" width="48" height="48">
|
||||
<path d="M0 0 l50 0l0 50l-50 0l0 -50Z" fill="white"></path>
|
||||
<rect x="28" y="-4" width="24" height="24" rx="12" ry="12" transform="translate(0 0)" fill="black"></rect>
|
||||
<rect x="28" y="28" width="24" height="24" rx="12" ry="12" transform="translate(-20 20)" fill="black"></rect>
|
||||
</mask>
|
||||
<foreignObject mask="" x="0" y="0" width="48" height="48">
|
||||
<a class="${BDFDB.disCN.guildiconwrapper}" draggable="false" style="border-radius: 50%;">
|
||||
<img class="${BDFDB.disCN.guildicon}" src="" width="48" height="48" draggable="false"></img>
|
||||
</a>
|
||||
</foreignObject>
|
||||
</svg>
|
||||
<div class="${BDFDB.disCN.guildbadgewrapper}">
|
||||
<div class="${BDFDB.disCN.guildupperbadge} pin-badge" style="opacity: 1; transform: translate(0px, 0px);">
|
||||
<div class="${BDFDB.disCNS.guildbadgeiconbadge + BDFDB.disCN.guildbadgeiconbadge2}" style="width: 16px; padding-right: 1px;">
|
||||
<svg class="${BDFDB.disCN.guildbadgeicon}" name="Nova_Pin" width="24" height="24" viewBox="0 0 520 520">
|
||||
<g fill="white">
|
||||
<path d="M291.31, 402.761L109.241, 220.693C79.073, 190.525, 30.166, 190.526, 0, 220.692l291.31, 291.31C321.474, 481.835, 321.476, 432.927, 291.31, 402.761z"></path>
|
||||
<polygon points="273.104, 111.449 154.758, 211.589 300.412, 357.242 400.55, 238.898"></polygon>
|
||||
<path d="M500.688, 175.174L336.827, 11.313c-15.085-15.085-39.539-15.083-54.621, 0c-15.082, 15.082-15.082, 39.538, 0, 54.62 l163.861, 163.861c15.083, 15.085, 39.539, 15.085, 54.621, 0.001C515.773, 214.712, 515.773, 190.257, 500.688, 175.174z"></path>
|
||||
<polygon points="91.032, 366.346 0, 512 145.655, 420.967"></polygon>
|
||||
</g>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
<div class="${BDFDB.disCN.guildlowerbadge}" style="opacity: 1; transform: translate(0px, 0px); display: none;">
|
||||
<div class="${BDFDB.disCN.guildbadgenumberbadge}" style="background-color: rgb(240, 71, 71); width: 16px; padding-right: 1px;">0</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="${BDFDB.disCN.guildlowerbadge}" style="opacity: 1; transform: translate(0px, 0px); display: none;">
|
||||
<div class="${BDFDB.disCN.guildbadgenumberbadge}" style="background-color: rgb(240, 71, 71); width: 16px; padding-right: 1px;">0</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -68,22 +68,24 @@
|
|||
<div class="pill-1m5BUr wrapper-sa6paO">
|
||||
<span class="item-2hkk8m" style="opacity: 0.7; height: 8px; transform: translate3d(0px, 0px, 0px);"/>
|
||||
</div>
|
||||
<div tabindex="0" class="blob-3RT82C wrapper-25eVIn" role="button">
|
||||
<svg width="48" height="48" viewBox="0 0 48 48" class="svg-1X37T1">
|
||||
<mask id="DiscordPreviewMask0" fill="black" x="0" y="0" width="48" height="48">
|
||||
<path d="M48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24Z" fill="white"/>
|
||||
<rect x="28" y="-4" width="24" height="24" rx="12" ry="12" transform="translate(20 -20)" fill="black"/>
|
||||
<rect x="28" y="28" width="24" height="24" rx="12" ry="12" transform="translate(0 0)" fill="black"/>
|
||||
</mask>
|
||||
<foreignObject mask="url(#DiscordPreviewMask0)" x="0" y="0" width="48" height="48">
|
||||
<a class="wrapper-1BJsBx" href="">
|
||||
<img class="icon-27yU2q" src="https://discordapp.com/assets/0e291f67c9274a1abdddeb3fd919cbaa.png" alt="Server Icon" width="48" height="48"></img>
|
||||
</a>
|
||||
</foreignObject>
|
||||
</svg>
|
||||
<div class="badgeWrapper-3e8pMZ">
|
||||
<div class="lowerBadge-29hYVK" style="opacity: 1; transform: translate(0px, 0px);">
|
||||
<div class="numberBadge-2s8kKX base-PmTxvP" style="background-color: rgb(240, 71, 71); width: 16px; padding-right: 1px;">2</div>
|
||||
<div class="listItemWrapper-3X98Pc">
|
||||
<div class="blob-3RT82C wrapper-25eVIn">
|
||||
<svg width="48" height="48" viewBox="0 0 48 48" class="svg-1X37T1">
|
||||
<mask id="DiscordPreviewMask0" fill="black" x="0" y="0" width="48" height="48">
|
||||
<path d="M48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24Z" fill="white"/>
|
||||
<rect x="28" y="-4" width="24" height="24" rx="12" ry="12" transform="translate(20 -20)" fill="black"/>
|
||||
<rect x="28" y="28" width="24" height="24" rx="12" ry="12" transform="translate(0 0)" fill="black"/>
|
||||
</mask>
|
||||
<foreignObject mask="url(#DiscordPreviewMask0)" x="0" y="0" width="48" height="48">
|
||||
<a class="wrapper-1BJsBx" href="">
|
||||
<img class="icon-27yU2q" src="https://discordapp.com/assets/0e291f67c9274a1abdddeb3fd919cbaa.png" alt="Server Icon" width="48" height="48"></img>
|
||||
</a>
|
||||
</foreignObject>
|
||||
</svg>
|
||||
<div class="badgeWrapper-3e8pMZ">
|
||||
<div class="lowerBadge-29hYVK" style="opacity: 1; transform: translate(0px, 0px);">
|
||||
<div class="numberBadge-2s8kKX base-PmTxvP" style="background-color: rgb(240, 71, 71); width: 16px; padding-right: 1px;">2</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -52,6 +52,7 @@ body.foldercontentopened .titleBar-AC4pGV.typeMacOS-3EmCyP .macButtons-2MuSAC {
|
|||
.wrapper-1Rf91z .blob-1PX1Gp {
|
||||
margin: 0 calc(1px * (((var(--vguildsize) + 10) * (var(--vcolumns) - 1))/2)) 4px calc(1px * ((((var(--vguildsize) + 10) * (var(--vcolumns) - 1))/2) + 2)) !important;
|
||||
}
|
||||
.wrapper-1Rf91z .listItemWrapper-3X98Pc,
|
||||
.wrapper-1Rf91z .blob-3RT82C {
|
||||
margin: 0 calc(1px * ((((var(--vguildsize) + 10) * (var(--vcolumns) - 1))/2) * (1 - var(--valigndms)))) 0 calc(1px * (((0 * var(--valigndms)) + ((((var(--vguildsize) + 10) * (var(--vcolumns) - 1))/2) * (1 - var(--valigndms)))))) !important;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue