Disable avatar cropping in Windows notifications with non-circle avatars
This commit is contained in:
parent
98f2683e5e
commit
3bb8b52b4c
1 changed files with 2 additions and 1 deletions
|
|
@ -56,6 +56,7 @@ namespace {
|
|||
[[nodiscard]] std::wstring NotificationTemplate(
|
||||
QString id,
|
||||
Window::Notifications::Manager::DisplayOptions options) {
|
||||
const auto crop = (cUserpicCornersType() == 3) ? L"circle" : L"none";
|
||||
const auto wid = id.replace('&', "&").toStdWString();
|
||||
const auto fastReply = LR"(
|
||||
<input id="fastReply" type="text" placeHolderContent=""/>
|
||||
|
|
@ -78,7 +79,7 @@ namespace {
|
|||
<toast launch="action=open&)" + wid + LR"(">
|
||||
<visual>
|
||||
<binding template="ToastGeneric">
|
||||
<image placement="appLogoOverride" hint-crop="circle" src=""/>
|
||||
<image placement="appLogoOverride" hint-crop=")" + crop + LR"( src=""/>
|
||||
<text hint-maxLines="1"></text>
|
||||
<text></text>
|
||||
<text></text>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue