mirror of https://github.com/qTox/qTox.git
Browse Source
Qt doesn't get mouse move events after a right click, so right clicking on a GenericChatroomWidget would get it stuck in the highlighed style until hovered in and out again We now explicitely interpret a right click as the mouse going out and fix the style accordingly Since the stylesheet has precedence over a QPalette, there wasn't a clean way to handle that with a stylesheet, so we now use a QPalette directlypull/1828/head
6 changed files with 79 additions and 108 deletions
@ -1,62 +0,0 @@
@@ -1,62 +0,0 @@
|
||||
GenericChatroomWidget |
||||
{ |
||||
background-color: @themeMedium; |
||||
} |
||||
|
||||
GenericChatroomWidget[active="true"] |
||||
{ |
||||
background-color: @white; |
||||
} |
||||
|
||||
GenericChatroomWidget[active="false"]:hover |
||||
{ |
||||
background-color: @themeLight; |
||||
} |
||||
|
||||
GenericChatroomWidget[active="true"][compact="true"] > QLabel#status |
||||
{ |
||||
font: @small; |
||||
color: @mediumGrey; |
||||
} |
||||
|
||||
GenericChatroomWidget[active="false"][compact="true"] > QLabel#status |
||||
{ |
||||
font: @small; |
||||
color: @lightGrey; |
||||
} |
||||
|
||||
GenericChatroomWidget[active="true"][compact="true"] > QLabel#name |
||||
{ |
||||
font: @medium; |
||||
color: @darkGrey; |
||||
} |
||||
|
||||
GenericChatroomWidget[active="false"][compact="true"] > QLabel#name |
||||
{ |
||||
font: @medium; |
||||
color: @white; |
||||
} |
||||
|
||||
GenericChatroomWidget[active="true"][compact="false"] > QLabel#status |
||||
{ |
||||
font: @medium; |
||||
color: @mediumGrey; |
||||
} |
||||
|
||||
GenericChatroomWidget[active="false"][compact="false"] > QLabel#status |
||||
{ |
||||
font: @medium; |
||||
color: @lightGrey; |
||||
} |
||||
|
||||
GenericChatroomWidget[active="true"][compact="false"] > QLabel#name |
||||
{ |
||||
font: @big; |
||||
color: @darkGrey; |
||||
} |
||||
|
||||
GenericChatroomWidget[active="false"][compact="false"] > QLabel#name |
||||
{ |
||||
font: @big; |
||||
color: @white; |
||||
} |
Loading…
Reference in new issue