1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor(css): Move all chatFormHead related css in one file

This commit is contained in:
Diadlo 2017-10-28 13:50:30 +03:00
parent 8c65aa6656
commit 2e55eef171
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
10 changed files with 87 additions and 268 deletions

13
res.qrc
View File

@ -44,8 +44,6 @@
<file>img/taskbar/light/taskbar_event.svg</file>
<file>img/transfer.svg</file>
<file>ui/fileTransferWidget/fileDone.svg</file>
<file>ui/callButton/callButton.css</file>
<file>ui/callButton/callButton.svg</file>
<file>ui/chatArea/chatArea.css</file>
<file>ui/chatArea/chatHead.css</file>
<file>ui/chatArea/innerStyle.css</file>
@ -53,6 +51,11 @@
<file>ui/chatArea/scrollBarDownArrow.svg</file>
<file>ui/chatArea/scrollBarLeftArrow.svg</file>
<file>ui/chatArea/scrollBarRightArrow.svg</file>
<file>ui/chatFormHeader/buttons.css</file>
<file>ui/chatFormHeader/callButton.svg</file>
<file>ui/chatFormHeader/micButton.svg</file>
<file>ui/chatFormHeader/videoButton.svg</file>
<file>ui/chatFormHeader/volButton.svg</file>
<file>ui/emoteButton/emoteButton.css</file>
<file>ui/emoteButton/emoteButton.svg</file>
<file>ui/emoticonWidget/dot_page.svg</file>
@ -65,8 +68,6 @@
<file>ui/screenshotButton/screenshotButton.svg</file>
<file>ui/fileTransferWidget/fileTransferWidget.css</file>
<file>ui/friendList/friendList.css</file>
<file>ui/micButton/micButton.css</file>
<file>ui/micButton/micButton.svg</file>
<file>ui/msgEdit/msgEdit.css</file>
<file>ui/sendButton/sendButton.css</file>
<file>ui/sendButton/sendButton.svg</file>
@ -74,10 +75,6 @@
<file>ui/settings/mainHead.css</file>
<file>ui/statusButton/statusButton.css</file>
<file>ui/statusButton/menu_indicator.svg</file>
<file>ui/videoButton/videoButton.css</file>
<file>ui/videoButton/videoButton.svg</file>
<file>ui/volButton/volButton.css</file>
<file>ui/volButton/volButton.svg</file>
<file>ui/window/general.css</file>
<file>ui/window/statusPanel.css</file>
<file>ui/window/window.css</file>

View File

@ -1,63 +0,0 @@
QAbstractButton
{
border-radius: 5px;
border: none;
background-image: url(":/ui/callButton/callButton.svg");
background-repeat: none;
background-position: center;
}
QAbstractButton:disabled
{
background-color: #919191;
}
QAbstractButton:focus
{
outline: none;
}
QAbstractButton#green
{
background-color: #6bc260;
}
QAbstractButton#green:hover
{
background-color: #79c76f;
}
QAbstractButton#green:pressed
{
background-color: #51b244;
}
QAbstractButton#red
{
background-color: #c84e4e;
}
QAbstractButton#red:hover
{
background-color: #e87474;
}
QAbstractButton#red:pressed
{
background-color: #df3b3b;
}
QAbstractButton#yellow
{
background-color: #e6e465;
}
QAbstractButton#yellow:hover
{
background-color: #e8e774;
}
QAbstractButton#yellow:pressed
{
background-color: #e3e155;
}

View File

@ -0,0 +1,82 @@
QAbstractButton#volButton
{
image: url(":/ui/chatFormHeader/volButton.svg");
}
QAbstractButton#micButton
{
image: url(":/ui/chatFormHeader/micButton.svg");
}
QAbstractButton#videoButton
{
background-image: url(":/ui/chatFormHeader/videoButton.svg");
}
QAbstractButton#callButton
{
background-image: url(":/ui/chatFormHeader/callButton.svg");
}
QAbstractButton
{
background-repeat: none;
background-position: center;
border: none;
border-radius: 5px;
}
QAbstractButton:disabled
{
background-color: #919191;
}
QAbstractButton:focus
{
outline: none;
}
QAbstractButton[state="green"]
{
background-color: #6bc260;
}
QAbstractButton[state="green"]:hover
{
background-color: #79c76f;
}
QAbstractButton[state="green"]:pressed
{
background-color: #51b244;
}
QAbstractButton[state="red"]
{
background-color: #c84e4e;
}
QAbstractButton[state="red"]:hover
{
background-color: #e87474;
}
QAbstractButton[state="red"]:pressed
{
background-color: #df3b3b;
}
QAbstractButton[state="yellow"]
{
background-color: #e6e465;
}
QAbstractButton[state="yellow"]:hover
{
background-color: #e8e774;
}
QAbstractButton[state="yellow"]:pressed
{
background-color: #e3e155;
}

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -1,67 +0,0 @@
QToolButton
{
image: url(":/ui/micButton/micButton.svg");
}
QAbstractButton
{
border-radius: 5px;
border: none;
background-repeat: none;
background-position: center;
}
QAbstractButton:disabled
{
background-color: #919191;
}
QAbstractButton:focus
{
outline: none;
}
QAbstractButton#green
{
background-color: #6bc260;
}
QAbstractButton#green:hover
{
background-color: #79c76f;
}
QAbstractButton#green:pressed
{
background-color: #51b244;
}
QAbstractButton#red
{
background-color: #c84e4e;
}
QAbstractButton#red:hover
{
background-color: #e87474;
}
QAbstractButton#red:pressed
{
background-color: #df3b3b;
}
QAbstractButton#yellow
{
background-color: #e6e465;
}
QAbstractButton#yellow:hover
{
background-color: #e8e774;
}
QAbstractButton#yellow:pressed
{
background-color: #e3e155;
}

View File

@ -1,63 +0,0 @@
QAbstractButton
{
background-image: url(":/ui/videoButton/videoButton.svg");
background-repeat: none;
background-position: center;
border: none;
border-radius: 5px;
}
QAbstractButton:disabled
{
background-color: #919191;
}
QAbstractButton:focus
{
outline: none;
}
QAbstractButton#green
{
background-color: #6bc260;
}
QAbstractButton#green:hover
{
background-color: #79c76f;
}
QAbstractButton#green:pressed
{
background-color: #51b244;
}
QAbstractButton#red
{
background-color: #c84e4e;
}
QAbstractButton#red:hover
{
background-color: #e87474;
}
QAbstractButton#red:pressed
{
background-color: #df3b3b;
}
QAbstractButton#yellow
{
background-color: #e6e465;
}
QAbstractButton#yellow:hover
{
background-color: #e8e774;
}
QAbstractButton#yellow:pressed
{
background-color: #e3e155;
}

View File

@ -1,67 +0,0 @@
QToolButton
{
image: url(":/ui/volButton/volButton.svg");
}
QAbstractButton
{
border-radius: 5px;
border: none;
background-repeat: none;
background-position: center;
}
QAbstractButton:disabled
{
background-color: #919191;
}
QAbstractButton:focus
{
outline: none;
}
QAbstractButton#green
{
background-color: #6bc260;
}
QAbstractButton#green:hover
{
background-color: #79c76f;
}
QAbstractButton#green:pressed
{
background-color: #51b244;
}
QAbstractButton#red
{
background-color: #c84e4e;
}
QAbstractButton#red:hover
{
background-color: #e87474;
}
QAbstractButton#red:pressed
{
background-color: #df3b3b;
}
QAbstractButton#yellow
{
background-color: #e6e465;
}
QAbstractButton#yellow:hover
{
background-color: #e8e774;
}
QAbstractButton#yellow:pressed
{
background-color: #e3e155;
}