From 067e52f5d13a7d3639efb6aea12272f206d055b3 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 30 Apr 2020 14:51:24 +0400 Subject: [PATCH] Add an icon to the psa / quiz tooltip. --- Telegram/Resources/icons/toast_info.png | Bin 0 -> 504 bytes Telegram/Resources/icons/toast_info@2x.png | Bin 0 -> 992 bytes Telegram/Resources/icons/toast_info@3x.png | Bin 0 -> 1543 bytes Telegram/SourceFiles/history/history.style | 3 +++ .../history/view/history_view_message.h | 1 - Telegram/lib_ui | 2 +- 6 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 Telegram/Resources/icons/toast_info.png create mode 100644 Telegram/Resources/icons/toast_info@2x.png create mode 100644 Telegram/Resources/icons/toast_info@3x.png diff --git a/Telegram/Resources/icons/toast_info.png b/Telegram/Resources/icons/toast_info.png new file mode 100644 index 0000000000000000000000000000000000000000..b72bb26d6c8e8ddf3645e72452fdb22cd099ab8f GIT binary patch literal 504 zcmV7Z(K9CdQq|F_D9qa1<`!DOl(syo0WYD-#l6 zC6K=U9g6_Y@}b%HwU=cY$yyv+U<6<-EL{UUaPSC z{Z7~Gl}@Jw~ zAl3l%+e2U!MWSh%ff)AzVxeJy{sm%o|ABRrf`;WyUqGxsXBo3B6L6P7>rGByKqTE| zm&-+Xo~ImbmqD|)v@K9>eb#P_<5&xz?K13MXdBQLcsLwfv8w;^c&OYUKWK9d+5_PE zeCEWC8UyVPs7o6v2-jp@2+lQAdm)2Br=lpx_kEVea=BFFp3f(1d|8$h1c4gMs-=C^ zs;c^r*#GsCq7YAIrnUy6>Q7~+wg%#gnacXwYRhsDKF)=lm~ze;u^xPga7r5>tJO+5 z2WTyA0CJ1>?RFDzmpO|!ptD|2U2bN*fIBGOlyf)smlZLVi?`cs?T+g}<}Y%Jq<``w uO4m{evf3v<6Inp(Oh$C*N;4vMRLBoDwNsN~wKe_#0000*Y`I+8fU|Kja5RyMAi$f=CVzT*;`8~On+l%6v(N!uQSt0NAC1`Q=_$Xzzvt8G z)RdF&{m=!S(7gjRY&{&o5xl;>wmNEltTCFf9fD+Vf{jLl3s2{V!FoGv1A`&SU<9E!E@DV>KS4~5-yAt_ z#{!GNbp4qiUT&M7(hEN5H82HqJpKgXo)76QgOZc?0b772#GfG6ASzj{R(voRYzpdB z0*rf{j-DW*2&$?1`T5C3OzHqZ9c>f>jC&#;Jwb#@R8px_9CEU^(MBb}D)nl9Re}h1 zDPzlgKCb{k8?ca^V%tI~&(F^; zZwJqZHcA0zK~O1~??#6_Hml?Dn28tHX``sTyu7f-$H$GTdcDrBuC6H5Iyx4M1uGVd z+D)^Ib+uZh?AU|q0(QaJRg`xSX@;bV4!c4SITTwm91aov>e zaxQJkJLvj11s4iIBxRE-I_wHTWSo;KI_wHTq|=isI_wHToE0Qhbl4SwI0#9q=&&ox zgsouP_A=oYY%3!uQgW=@?Ivyzff?Anq7cLloleJlU+k}c!mNZh)F}&uWuk{%g)&q# zPFY|*d3bmr9krvQ?PS@lQy2kO-5Mx$yLwjkG-cWlqjht0ruvsZO0t zJSl7%oa#DDk}*Ma036RD4@M9A8HpTWEFoBfY>p;$!$yEp+}#oL*3G71!tbCbTeFg>II O0000 literal 0 HcmV?d00001 diff --git a/Telegram/Resources/icons/toast_info@3x.png b/Telegram/Resources/icons/toast_info@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..f00a472dfbf6d5fdba28a0509d092407d22407c0 GIT binary patch literal 1543 zcmV+i2Kf1jP)P(AeIO; zSke>J{1OO2Ef<9VGyt_sz_PkfLM;O=TGp3JT|+|y85tQNLqkKPzrQ~^dV70GTU#4x zZEcMXD1Lo?jgFU>7jkuVMJ_KdqvP!CjGUgHlAoWSRQcP!2-POG7ypX47xbA_rw6xIW zTZ`j}otUI8^Vv#N_Ez$e?dsn=S^}+_&0-GFzbpv#Ke4L)2pBp>u zD5cKBckYIQ*8=jWZ)DSg34-4(uA zfSMjC?yAcQx-XbKANXRSq^1Lk_f9Q8<{V<>89r6{PE8IJU&dPe09C@1{fBQ=eEpLF zMcu8Iszx$sx^VcIvYwg@C@RGDBJefEN6H*1nrwM)0olIM@HJ^OweWif*hwv{Q-PeE zoREQm0d+#lv8?S)j*gBZtz%iMat>;B7Z(>~baa$_eSN7Dmc<$sYxLCkl;`K? zs6Uh0`Nux=aU#yA!1qc!6#xGkEJ}#JMBiO-04K5qVTki7@I66)svamhXnhJBBa*`8 zkdelxfC0~2b5;Yz5Q6WX_RY;rt?@|XQ^3GvI7K^*JUu;4Iy*brO{s4I1F+DE7UFDT?PWzF5lrYyQz>F6mFaaBxNP%MFRuC}(6&oo~%z_IdCZJ-IYoMQ>pJa7)m9VNx zbl^9_vKAFk*e0w3_--qgS55fum6es4Z3xR+G<^+Xplm{G)^^jbuC5qRgk>#YBP)o~ zM;y)7E9zfK*c84Kpk^Qtv(gd)VbC9h0+p=1p-0D1XOGSP%$%QXeyvs zx)MZ8K*dH{LRr;7tSy8_Youftq(HH#Du|eXicJ72W~K~H1(Y?fluGM4QpG0M9n6IS z%!>;D)WYOY!xkAaez5>!m>eofs_*)t%?V?$ z-NM!woLluk0T%DnTHNIUHp6yaI4qp)0EHp=`q$EK54qk5i{Dw)Q&IWP^F{@*4K}9S z0z+4t?Uhgt6=yV4eYgEh-m9=F=`IcBei{6B0~8sD?JgMvgFBEo4f<2VhO7?YV!b&Q z#fB||9l*t^UM$XKYbUL3Y7JdkZ)&X_q+_oD=hE2NNQQ@p|BG$ca{<)(9rKuh(U_7) tdul$b0Mzm=3_t@=%LFW|3nkPt(0`Xuk@mh7PZj_G002ovPDHLkV1k!H%IW|B literal 0 HcmV?d00001 diff --git a/Telegram/SourceFiles/history/history.style b/Telegram/SourceFiles/history/history.style index 920f32d61..c557efb23 100644 --- a/Telegram/SourceFiles/history/history.style +++ b/Telegram/SourceFiles/history/history.style @@ -389,6 +389,9 @@ historyErrorToast: Toast(defaultToast) { historyInfoToast: Toast(defaultToast) { minWidth: msgMinWidth; maxWidth: 380px; + padding: margins(54px, 13px, 19px, 12px); + icon: icon {{ "toast_info", toastFg }}; + iconPosition: point(13px, 13px); } historyPhotoLeft: 14px; diff --git a/Telegram/SourceFiles/history/view/history_view_message.h b/Telegram/SourceFiles/history/view/history_view_message.h index 303cd8381..d215e70a0 100644 --- a/Telegram/SourceFiles/history/view/history_view_message.h +++ b/Telegram/SourceFiles/history/view/history_view_message.h @@ -28,7 +28,6 @@ struct LogEntryOriginal ~LogEntryOriginal(); std::unique_ptr page; - }; struct PsaTooltipState : public RuntimeComponent { diff --git a/Telegram/lib_ui b/Telegram/lib_ui index 7849f0561..66e44506d 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit 7849f0561b7d8d0e51e3fec3dcfe07e1502c82cc +Subproject commit 66e44506dc1cdea5a47dd0124c98d269b2a02d03