Closed beta 10020001: application icon changed.
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 826 B |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 361 KiB After Width: | Height: | Size: 361 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 95 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 24 KiB |
|
@ -55,8 +55,8 @@ ContactsBox::ContactsBox(QWidget*, ChatData *chat, MembersFilter filter)
|
|||
}
|
||||
|
||||
ContactsBox::ContactsBox(QWidget*, ChannelData *channel)
|
||||
: _creating(CreatingGroupChannel)
|
||||
, _channel(channel)
|
||||
: _channel(channel)
|
||||
, _creating(CreatingGroupChannel)
|
||||
, _select(createMultiSelect())
|
||||
, _searchTimer(this) {
|
||||
}
|
||||
|
|
|
@ -71,16 +71,18 @@ membersInnerWidth: 310px;
|
|||
membersInnerHeightMax: 360px;
|
||||
membersInnerDropdown: InnerDropdown(defaultInnerDropdown) {
|
||||
scroll: ScrollArea(defaultSolidScroll) {
|
||||
deltat: 3px;
|
||||
deltab: 3px;
|
||||
deltat: 0px;
|
||||
deltab: 0px;
|
||||
round: 1px;
|
||||
width: 8px;
|
||||
deltax: 3px;
|
||||
}
|
||||
scrollMargin: margins(0px, 5px, 0px, 5px);
|
||||
scrollPadding: margins(0px, 3px, 8px, 3px);
|
||||
scrollPadding: margins(0px, 3px, 0px, 3px);
|
||||
}
|
||||
membersInnerItem: ProfilePeerListItem {
|
||||
left: 0px;
|
||||
bottom: 0px;
|
||||
button: OutlineButton {
|
||||
outlineWidth: 0px;
|
||||
|
||||
|
|
|
@ -6398,14 +6398,14 @@ void HistoryWidget::clearInlineBot() {
|
|||
void HistoryWidget::inlineBotChanged() {
|
||||
bool isInlineBot = _inlineBot && (_inlineBot != Ui::LookingUpInlineBot);
|
||||
if (isInlineBot && !_inlineBotCancel) {
|
||||
_inlineBotCancel = std_::make_unique<Ui::IconButton>(this, st::historyInlineBotCancel);
|
||||
connect(_inlineBotCancel.get(), SIGNAL(clicked()), this, SLOT(onInlineBotCancel()));
|
||||
_inlineBotCancel.create(this, st::historyInlineBotCancel);
|
||||
connect(_inlineBotCancel, SIGNAL(clicked()), this, SLOT(onInlineBotCancel()));
|
||||
_inlineBotCancel->setGeometry(_send->geometry());
|
||||
_attachEmoji->raise();
|
||||
updateFieldSubmitSettings();
|
||||
updateControlsVisibility();
|
||||
} else if (!isInlineBot && _inlineBotCancel) {
|
||||
_inlineBotCancel = nullptr;
|
||||
_inlineBotCancel.destroy();
|
||||
updateFieldSubmitSettings();
|
||||
updateControlsVisibility();
|
||||
}
|
||||
|
@ -8911,3 +8911,5 @@ bool HistoryWidget::touchScroll(const QPoint &delta) {
|
|||
_scroll->scrollToY(scNew);
|
||||
return true;
|
||||
}
|
||||
|
||||
HistoryWidget::~HistoryWidget() = default;
|
||||
|
|
|
@ -721,6 +721,8 @@ public:
|
|||
bool cmd_next_chat();
|
||||
bool cmd_previous_chat();
|
||||
|
||||
~HistoryWidget();
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent *e) override;
|
||||
void keyPressEvent(QKeyEvent *e) override;
|
||||
|
@ -1089,7 +1091,7 @@ private:
|
|||
UserData *_inlineBot = nullptr;
|
||||
QString _inlineBotUsername;
|
||||
mtpRequestId _inlineBotResolveRequestId = 0;
|
||||
std_::unique_ptr<Ui::IconButton> _inlineBotCancel;
|
||||
object_ptr<Ui::IconButton> _inlineBotCancel = { nullptr };
|
||||
void inlineBotResolveDone(const MTPcontacts_ResolvedPeer &result);
|
||||
bool inlineBotResolveFail(QString name, const RPCError &error);
|
||||
|
||||
|
|
|
@ -49,6 +49,7 @@ f_SHCreateItemFromParsingName SHCreateItemFromParsingName;
|
|||
f_WTSRegisterSessionNotification WTSRegisterSessionNotification;
|
||||
f_WTSUnRegisterSessionNotification WTSUnRegisterSessionNotification;
|
||||
f_SHQueryUserNotificationState SHQueryUserNotificationState;
|
||||
f_SHChangeNotify SHChangeNotify;
|
||||
f_SetCurrentProcessExplicitAppUserModelID SetCurrentProcessExplicitAppUserModelID;
|
||||
f_RoGetActivationFactory RoGetActivationFactory;
|
||||
f_WindowsCreateStringReference WindowsCreateStringReference;
|
||||
|
@ -70,8 +71,13 @@ void start() {
|
|||
load(LibShell32, "SHOpenWithDialog", SHOpenWithDialog);
|
||||
load(LibShell32, "OpenAs_RunDLLW", OpenAs_RunDLL);
|
||||
load(LibShell32, "SHQueryUserNotificationState", SHQueryUserNotificationState);
|
||||
load(LibShell32, "SHChangeNotify", SHChangeNotify);
|
||||
load(LibShell32, "SetCurrentProcessExplicitAppUserModelID", SetCurrentProcessExplicitAppUserModelID);
|
||||
|
||||
if (cBetaVersion() == 10020001 && SHChangeNotify) { // Temp - app icon was changed
|
||||
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, nullptr, nullptr);
|
||||
}
|
||||
|
||||
LibUxTheme = LoadLibrary(L"UXTHEME.DLL");
|
||||
load(LibUxTheme, "SetWindowTheme", SetWindowTheme);
|
||||
|
||||
|
|
|
@ -63,6 +63,9 @@ extern f_OpenAs_RunDLL OpenAs_RunDLL;
|
|||
typedef HRESULT (FAR STDAPICALLTYPE *f_SHQueryUserNotificationState)(QUERY_USER_NOTIFICATION_STATE *pquns);
|
||||
extern f_SHQueryUserNotificationState SHQueryUserNotificationState;
|
||||
|
||||
typedef void (FAR STDAPICALLTYPE *f_SHChangeNotify)(LONG wEventId, UINT uFlags, __in_opt LPCVOID dwItem1, __in_opt LPCVOID dwItem2);
|
||||
extern f_SHChangeNotify SHChangeNotify;
|
||||
|
||||
typedef HRESULT (FAR STDAPICALLTYPE *f_SetCurrentProcessExplicitAppUserModelID)(__in PCWSTR AppID);
|
||||
extern f_SetCurrentProcessExplicitAppUserModelID SetCurrentProcessExplicitAppUserModelID;
|
||||
|
||||
|
|
|
@ -117,6 +117,8 @@ profileInviteLinkText: FlatLabel(profileBlockTextPart) {
|
|||
profileLimitReachedSkip: 6px;
|
||||
|
||||
profileMemberItem: ProfilePeerListItem {
|
||||
left: 8px;
|
||||
bottom: profileBlockMarginBottom;
|
||||
button: defaultLeftOutlineButton;
|
||||
statusFg: windowSubTextFg;
|
||||
statusFgOver: #7c99b2;
|
||||
|
|
|
@ -46,7 +46,7 @@ int PeerListWidget::resizeGetHeight(int newWidth) {
|
|||
|
||||
newHeight += _items.size() * st::profileMemberHeight;
|
||||
|
||||
return newHeight + st::profileBlockMarginBottom;
|
||||
return newHeight + _st.bottom;
|
||||
}
|
||||
|
||||
void PeerListWidget::setVisibleTopBottom(int visibleTop, int visibleBottom) {
|
||||
|
@ -251,7 +251,7 @@ void PeerListWidget::repaintRow(int index) {
|
|||
}
|
||||
|
||||
int PeerListWidget::getListLeft() const {
|
||||
return st::profileBlockTitlePosition.x() - st::profileMemberPaddingLeft;
|
||||
return _st.left;
|
||||
}
|
||||
|
||||
int PeerListWidget::rowWidth() const {
|
||||
|
|
|
@ -828,6 +828,12 @@ void psNewVersion() {
|
|||
if (Local::oldSettingsVersion() < 8051) {
|
||||
AppUserModelId::checkPinned();
|
||||
}
|
||||
if (Local::oldSettingsVersion() > 0 && Local::oldSettingsVersion() < 10021) {
|
||||
// Reset icons cache, because we've changed the application icon.
|
||||
if (Dlls::SHChangeNotify) {
|
||||
Dlls::SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, nullptr, nullptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void psExecUpdater() {
|
||||
|
|
|
@ -218,7 +218,7 @@ void SettingsSlider::startRipple(int sectionIndex) {
|
|||
|
||||
QImage SettingsSlider::prepareRippleMask(int sectionIndex, const Section §ion) {
|
||||
auto size = QSize(section.width, height() - _st.rippleBottomSkip);
|
||||
if (!_st.rippleRoundRadius || sectionIndex > 0 && sectionIndex + 1 < getSectionsCount()) {
|
||||
if (!_st.rippleRoundRadius || (sectionIndex > 0 && sectionIndex + 1 < getSectionsCount())) {
|
||||
return RippleAnimation::rectMask(size);
|
||||
}
|
||||
return RippleAnimation::maskByDrawer(size, false, [this, sectionIndex, width = section.width](QPainter &p) {
|
||||
|
|
|
@ -868,6 +868,9 @@ MediaPlayerButton {
|
|||
}
|
||||
|
||||
ProfilePeerListItem {
|
||||
left: pixels;
|
||||
bottom: pixels;
|
||||
|
||||
button: OutlineButton;
|
||||
statusFg: color;
|
||||
statusFgOver: color;
|
||||
|
|
|
@ -3,61 +3,61 @@
|
|||
{
|
||||
"size" : "16x16",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_16x16.png",
|
||||
"filename" : "icon16.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "16x16",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_16x16@2x.png",
|
||||
"filename" : "icon16@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "32x32",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_32x32.png",
|
||||
"filename" : "icon32.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "32x32",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_32x32@2x.png",
|
||||
"filename" : "icon32@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "128x128",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_128x128.png",
|
||||
"filename" : "icon128.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "128x128",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_128x128@2x.png",
|
||||
"filename" : "icon128@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "256x256",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon_256x256.png",
|
||||
"filename" : "icon256.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"size" : "256x256",
|
||||
"filename" : "icon_256x256@2x.png",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon256@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"size" : "512x512",
|
||||
"filename" : "icon_512x512.png",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon512.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"size" : "512x512",
|
||||
"filename" : "icon_512x512@2x.png",
|
||||
"idiom" : "mac",
|
||||
"filename" : "icon512@2x.png",
|
||||
"scale" : "2x"
|
||||
}
|
||||
],
|
||||
|
|
BIN
Telegram/Telegram/Images.xcassets/AppIcon.appiconset/icon128.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
After Width: | Height: | Size: 35 KiB |
BIN
Telegram/Telegram/Images.xcassets/AppIcon.appiconset/icon16.png
Normal file
After Width: | Height: | Size: 826 B |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 17 KiB |
BIN
Telegram/Telegram/Images.xcassets/AppIcon.appiconset/icon256.png
Normal file
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 60 KiB |
BIN
Telegram/Telegram/Images.xcassets/AppIcon.appiconset/icon32.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 19 KiB |
BIN
Telegram/Telegram/Images.xcassets/AppIcon.appiconset/icon512.png
Normal file
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 95 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 826 B |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 95 KiB |
|
@ -44,7 +44,7 @@ set "ReleasePath=%HomePath%\..\out\Release"
|
|||
set "DeployPath=%ReleasePath%\deploy\%AppVersionStrMajor%\%AppVersionStrFull%"
|
||||
set "SignPath=%HomePath%\..\..\TelegramPrivate\Sign.bat"
|
||||
set "BinaryName=Telegram"
|
||||
set "DropboxSymbolsPath=Y:\Telegram\symbols"
|
||||
set "DropboxSymbolsPath=X:\Telegram\symbols"
|
||||
|
||||
if not exist %DropboxSymbolsPath% (
|
||||
echo Dropbox path not found!
|
||||
|
|
|
@ -20,7 +20,7 @@ else
|
|||
#gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp --format=xcode-ninja
|
||||
#gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp --format=xcode
|
||||
# use patched gyp with Xcode project generator
|
||||
../../../Libraries/gyp/gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp -Gxcode_upgrade_check_project_version=810 --format=xcode
|
||||
../../../Libraries/gyp/gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp -Gxcode_upgrade_check_project_version=820 --format=xcode
|
||||
fi
|
||||
|
||||
cd ../..
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
'mac_bundle': '1',
|
||||
'mac_bundle_resources': [
|
||||
'<!@(python -c "for s in \'<@(langpacks)\'.split(\' \'): print(\'<(res_loc)/langs/\' + s + \'.lproj/Localizable.strings\')")',
|
||||
'../Telegram/Images.xcassets'
|
||||
'../Telegram/Images.xcassets',
|
||||
],
|
||||
}], [ 'build_macold', {
|
||||
'xcode_settings': {
|
||||
|
|