mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Disable avatar cropping in Windows notifications with non-circle avatars
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user