2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

caption display in video, caption display in mediaview, removed Loading / Failed webpage display, rounded corners everywhere

This commit is contained in:
John Preston
2015-05-20 22:28:24 +03:00
parent 2a3a351445
commit 9da4a21f94
22 changed files with 620 additions and 283 deletions

View File

@@ -810,9 +810,7 @@ void Window::hideLayer(bool fast) {
layerBG = 0;
}
}
if (_mediaView && !_mediaView->isHidden()) {
_mediaView->hide();
}
hideMediaview();
}
bool Window::hideInnerLayer() {
@@ -843,10 +841,14 @@ void Window::layerHidden() {
layerBG->deleteLater();
}
layerBG = 0;
if (_mediaView && !_mediaView->isHidden()) _mediaView->hide();
hideMediaview();
setInnerFocus();
}
void Window::hideMediaview() {
if (_mediaView && !_mediaView->isHidden()) _mediaView->hide();
}
void Window::setInnerFocus() {
if (_passcode) {
_passcode->setInnerFocus();
@@ -1691,7 +1693,7 @@ QImage Window::iconWithCounter(int size, int count, style::color bg, bool smallI
void Window::sendPaths() {
if (App::passcoded()) return;
if (_mediaView && !_mediaView->isHidden()) _mediaView->hide();
hideMediaview();
if (settings) {
hideSettings();
} else {