2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Improve floating player show / hide animations.

Also replace Window::Corner with a generic RectPart enumeration.
This commit is contained in:
John Preston
2017-05-24 15:07:58 +03:00
parent 03aeaadd5b
commit c91e29d15d
7 changed files with 155 additions and 78 deletions

View File

@@ -31,7 +31,6 @@ namespace Notifications {
class System;
} // namespace Notifications
enum class Column;
enum class Corner;
} // namespace Window
namespace Calls {
@@ -108,10 +107,10 @@ public:
Window::Column floatPlayerColumn() const {
return _variables.floatPlayerColumn;
}
void setFloatPlayerCorner(Window::Corner corner) {
void setFloatPlayerCorner(RectPart corner) {
_variables.floatPlayerCorner = corner;
}
Window::Corner floatPlayerCorner() const {
RectPart floatPlayerCorner() const {
return _variables.floatPlayerCorner;
}
@@ -125,7 +124,7 @@ private:
int tabbedSelectorSectionTooltipShown = 0;
QMap<QString, QString> soundOverrides;
Window::Column floatPlayerColumn;
Window::Corner floatPlayerCorner;
RectPart floatPlayerCorner;
};
base::Variable<bool> _contactsLoaded = { false };