Improve media viewer window decorations.

This commit is contained in:
John Preston 2018-08-21 15:12:22 +03:00
parent ae6afad885
commit 4211501acf
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ MediaView::MediaView()
, _dropdownShowTimer(this) {
subscribe(Lang::Current().updated(), [this] { refreshLang(); });
setWindowIcon(Window::CreateIcon());
setWindowTitle(qsl("Media viewer"));
TextCustomTagsMap custom;
custom.insert(QChar('c'), qMakePair(textcmdStartLink(1), textcmdStopLink()));
_saveMsgText.setRichText(st::mediaviewSaveMsgStyle, lang(lng_mediaview_saved), Ui::DialogTextOptions(), custom);