Improve group call window controls on Windows.

This commit is contained in:
John Preston 2020-12-06 17:53:17 +04:00
parent 732bc38e8e
commit 78067fd996
15 changed files with 65 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 376 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 184 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 B

View File

@ -687,6 +687,69 @@ groupCallDelaySlider: MediaSlider(defaultContinuousSlider) {
}
groupCallDelayMargin: margins(22px, 5px, 20px, 10px);
groupCallTitleButton: IconButton {
width: 24px;
height: 21px;
iconPosition: point(0px, 0px);
}
groupCallTitleMinimizeIcon: icon {
{ "title_button_minimize", groupCallMemberNotJoinedStatus, point(4px, 4px) },
};
groupCallTitleMinimizeIconOver: icon {
{ size(24px, 21px), groupCallMembersBgOver },
{ "title_button_minimize", groupCallMembersFg, point(4px, 4px) },
};
groupCallTitleMaximizeIcon: icon {
{ "title_button_maximize", groupCallMemberNotJoinedStatus, point(4px, 4px) },
};
groupCallTitleMaximizeIconOver: icon {
{ size(24px, 21px), groupCallMembersBgOver },
{ "title_button_maximize", groupCallMembersFg, point(4px, 4px) },
};
groupCallTitleRestoreIcon: icon {
{ "title_button_restore", groupCallMemberNotJoinedStatus, point(4px, 4px) },
};
groupCallTitleRestoreIconOver: icon {
{ size(24px, 21px), groupCallMembersBgOver },
{ "title_button_restore", groupCallMembersFg, point(4px, 4px) },
};
groupCallTitleCloseIcon: icon {
{ "title_button_close", groupCallMemberNotJoinedStatus, point(4px, 4px) },
};
groupCallTitleCloseIconOver: icon {
{ size(24px, 21px), titleButtonCloseBgOver },
{ "title_button_close", titleButtonCloseFgOver, point(4px, 4px) },
};
groupCallTitle: WindowTitle(defaultWindowTitle) {
height: 0px;
bg: groupCallBg;
bgActive: groupCallBg;
fg: transparent;
fgActive: transparent;
minimize: IconButton(groupCallTitleButton) {
icon: groupCallTitleMinimizeIcon;
iconOver: groupCallTitleMinimizeIconOver;
}
minimizeIconActive: groupCallTitleMinimizeIcon;
minimizeIconActiveOver: groupCallTitleMinimizeIconOver;
maximize: IconButton(groupCallTitleButton) {
icon: groupCallTitleMaximizeIcon;
iconOver: groupCallTitleMaximizeIconOver;
}
maximizeIconActive: groupCallTitleMaximizeIcon;
maximizeIconActiveOver: groupCallTitleMaximizeIconOver;
restoreIcon: groupCallTitleRestoreIcon;
restoreIconOver: groupCallTitleRestoreIconOver;
restoreIconActive: groupCallTitleRestoreIcon;
restoreIconActiveOver: groupCallTitleRestoreIconOver;
close: IconButton(groupCallTitleButton) {
icon: groupCallTitleCloseIcon;
iconOver: groupCallTitleCloseIconOver;
}
closeIconActive: groupCallTitleCloseIcon;
closeIconActiveOver: groupCallTitleCloseIconOver;
}
callTopBarMuteCrossLine: CrossLineAnimation {
fg: callBarFg;
icon: icon {{ "calls/call_record_active", callBarFg }};

View File

@ -217,7 +217,7 @@ GroupPanel::GroupPanel(not_null<GroupCall*> call)
#ifdef Q_OS_WIN
, _controls(std::make_unique<Ui::Platform::TitleControls>(
_window.get(),
st::callTitle))
st::groupCallTitle))
#endif // Q_OS_WIN
, _members(widget(), call)
, _settings(widget(), st::groupCallSettings)

@ -1 +1 @@
Subproject commit f24411cd96b2e3503d572418a63d2df8bae90fc9
Subproject commit 577e8f94ab538b3b4b2a1365a078293c92506616