mirror of https://github.com/qTox/qTox.git
Browse Source
Implements #2922 and #2514. This change adds: - a button for enabling full screen mode - a panel with buttons for controlling the chat in full screen mode - a button to toggle video preview - new icons fix(chat): fix buttons in full screen video call feat(chat): add hotkey for exiting full screen video fix(chat): use screen res to position button panel fix(chat): dont remove video widget on window closereviewable/pr5047/r11
13 changed files with 584 additions and 24 deletions
@ -0,0 +1,78 @@ |
|||||||
|
QFrame |
||||||
|
{ |
||||||
|
background-color: rgba(50, 50, 50, 0.6); |
||||||
|
border-radius: 20px; |
||||||
|
} |
||||||
|
|
||||||
|
QAbstractButton |
||||||
|
{ |
||||||
|
background-color: transparent; |
||||||
|
background-repeat: none; |
||||||
|
background-position: center; |
||||||
|
border: none; |
||||||
|
border-radius: 5px; |
||||||
|
} |
||||||
|
|
||||||
|
QAbstractButton:hover |
||||||
|
{ |
||||||
|
background-color: rgba(255,255,255, 0.2); |
||||||
|
} |
||||||
|
|
||||||
|
QAbstractButton:pressed |
||||||
|
{ |
||||||
|
background-color: rgba(0,0,0, 0.2); |
||||||
|
} |
||||||
|
|
||||||
|
QAbstractButton#volButtonFullScreen |
||||||
|
{ |
||||||
|
background-image: url(":/ui/chatForm/volButton.svg"); |
||||||
|
width: 11px; |
||||||
|
height: 9px; |
||||||
|
padding: 12px; |
||||||
|
} |
||||||
|
|
||||||
|
QAbstractButton#micButtonFullScreen |
||||||
|
{ |
||||||
|
background-image: url(":/ui/chatForm/micButton.svg"); |
||||||
|
width: 11px; |
||||||
|
height: 9px; |
||||||
|
padding: 12px; |
||||||
|
} |
||||||
|
|
||||||
|
QAbstractButton#videoButtonFullScreen |
||||||
|
{ |
||||||
|
background-image: url(":/ui/chatForm/videoButtonRed.svg"); |
||||||
|
width: 37px; |
||||||
|
height: 33px; |
||||||
|
} |
||||||
|
|
||||||
|
QAbstractButton#videoPreviewButton |
||||||
|
{ |
||||||
|
background-image: url(":/ui/chatForm/videoPreview.svg"); |
||||||
|
width: 13px; |
||||||
|
height: 13px; |
||||||
|
padding: 10px; |
||||||
|
} |
||||||
|
|
||||||
|
QAbstractButton#exitFullScreenButton |
||||||
|
{ |
||||||
|
background-image: url(":/ui/chatForm/exitFullScreenButton.svg"); |
||||||
|
width: 30px; |
||||||
|
height: 30px; |
||||||
|
padding: 1px; |
||||||
|
} |
||||||
|
|
||||||
|
QAbstractButton#volButtonFullScreen[state="red"] |
||||||
|
{ |
||||||
|
background-image: url(":/ui/chatForm/volButtonRed.svg"); |
||||||
|
} |
||||||
|
|
||||||
|
QAbstractButton#micButtonFullScreen[state="red"] |
||||||
|
{ |
||||||
|
background-image: url(":/ui/chatForm/micButtonRed.svg"); |
||||||
|
} |
||||||
|
|
||||||
|
QAbstractButton#videoPreviewButton[state="red"] |
||||||
|
{ |
||||||
|
background-image: url(":/ui/chatForm/videoPreviewRed.svg"); |
||||||
|
} |
Loading…
Reference in new issue