mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-24 12:08:50 +03:00
Fix communites sidebar color
This commit is contained in:
parent
07731f0a2b
commit
ca0340dd81
2 changed files with 6 additions and 3 deletions
|
@ -143,12 +143,14 @@ Page {
|
|||
enabled: false
|
||||
height: avatarSize
|
||||
roomid: model.id
|
||||
textColor: model.avatarUrl.startsWith(":/") ? communityItem.unimportantText : communityItem.importantText
|
||||
url: {
|
||||
if (model.avatarUrl.startsWith("mxc://"))
|
||||
return model.avatarUrl.replace("mxc://", "image://MxcImage/");
|
||||
else if (model.avatarUrl.length > 0)
|
||||
return "image://colorimage/" + model.avatarUrl + "?" + communityItem.unimportantText;
|
||||
else
|
||||
else if (model.avatarUrl.length > 0) {
|
||||
console.log("image://colorimage/" + model.avatarUrl + "?" + communityItem.unimportantText);
|
||||
return model.avatarUrl;
|
||||
} else
|
||||
return "";
|
||||
}
|
||||
width: avatarSize
|
||||
|
|
|
@ -231,6 +231,7 @@ Menu {
|
|||
height: sidebarAvatarSize
|
||||
width: sidebarAvatarSize
|
||||
url: modelData.url.replace("mxc://", "image://MxcImage/")
|
||||
textColor: modelData.url.startsWith("mxc://") ? palette.text : palette.buttonText
|
||||
displayName: modelData.name
|
||||
roomid: modelData.name
|
||||
|
||||
|
|
Loading…
Reference in a new issue