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

style: edit styles for myltiple windows

This commit is contained in:
TriKriSta 2019-03-31 19:54:12 +03:00
parent d1715500f7
commit db962690bd
9 changed files with 63 additions and 52 deletions

View File

@ -46,7 +46,6 @@
<file>img/transfer.svg</file>
<file>themes/dark/palette.ini</file>
<file>themes/dark/fileTransferWidget/fileDone.svg</file>
<file>themes/dark/centralWidget/centralWidget.css</file>
<file>themes/dark/chatArea/chatArea.css</file>
<file>themes/dark/chatArea/chatHead.css</file>
<file>themes/dark/chatArea/innerStyle.css</file>
@ -113,7 +112,6 @@
<file>themes/dark/tooliconsZone/tooliconsZone.css</file>
<file>themes/default/palette.ini</file>
<file>themes/default/fileTransferWidget/fileDone.svg</file>
<file>themes/default/centralWidget/centralWidget.css</file>
<file>themes/default/chatArea/chatArea.css</file>
<file>themes/default/chatArea/chatHead.css</file>
<file>themes/default/chatArea/innerStyle.css</file>

View File

@ -299,7 +299,6 @@ void GenericChatForm::reloadTheme()
{
const Settings& s = Settings::getInstance();
setStyleSheet(Style::getStylesheet("genericChatForm/genericChatForm.css"));
msgEdit->setStyleSheet(Style::getStylesheet("msgEdit/msgEdit.css")
+ fontToCss(s.getChatMessageFont(), "QTextEdit"));

View File

@ -1634,6 +1634,7 @@ ContentLayout* Widget::createContentDialog(DialogType type) const
Translator::registerHandler(std::bind(&Dialog::retranslateUi, this), this);
retranslateUi();
setWindowIcon(QIcon(":/img/icons/qtox.svg"));
setStyleSheet(Style::getStylesheet("window/general.css"));
connect(Core::getInstance(), &Core::usernameSet, this, &Dialog::retranslateUi);
}
@ -2185,7 +2186,6 @@ void Widget::reloadTheme()
{
this->setStyleSheet(Style::getStylesheet("window/general.css"));
QString statusPanelStyle = Style::getStylesheet("window/statusPanel.css");
ui->centralwidget->setStyleSheet(Style::getStylesheet(QStringLiteral("centralWidget/centralWidget.css")));
ui->tooliconsZone->setStyleSheet(Style::getStylesheet("tooliconsZone/tooliconsZone.css"));
ui->statusPanel->setStyleSheet(statusPanelStyle);
ui->statusHead->setStyleSheet(statusPanelStyle);

View File

@ -1,24 +0,0 @@
QLabel
{
color: @mainText;
}
QLineEdit
{
color: @mainText;
}
QTextEdit
{
color: @mainText;
}
QSpinBox, QDoubleSpinBox
{
color: @mainText;
}
QListView
{
color: @mainText;
}

View File

@ -18,4 +18,5 @@ QSplitter:handle
QWidget
{
background: @groundBase;
color: @mainText;
}

View File

@ -6,6 +6,11 @@ QToolTip
background: #ffffdc;
}
QDialog
{
background: @groundBase;
}
QWidget#contentWidget
{
background: @groundBase;
@ -27,3 +32,28 @@ QTabBar::tab:!selected
background: #444242;
color: #8e8e8e;
}
QLabel
{
color: @mainText;
}
QLineEdit
{
color: @mainText;
}
QTextEdit
{
color: @mainText;
}
QSpinBox, QDoubleSpinBox
{
color: @mainText;
}
QListView
{
color: @mainText;
}

View File

@ -1,24 +0,0 @@
QLabel
{
color: @mainText;
}
QLineEdit
{
color: @mainText;
}
QTextEdit
{
color: @mainText;
}
QSpinBox, QDoubleSpinBox
{
color: @mainText;
}
QListView
{
color: @mainText;
}

View File

@ -14,3 +14,9 @@ QSplitter:handle
color: white;
background-color: white;
}
QWidget
{
background: @groundBase;
color: @mainText;
}

View File

@ -22,3 +22,28 @@ QTabBar::tab:!selected
background: #d0d1d1;
color: #5e5e5e;
}
QLabel
{
color: @mainText;
}
QLineEdit
{
color: @mainText;
}
QTextEdit
{
color: @mainText;
}
QSpinBox, QDoubleSpinBox
{
color: @mainText;
}
QListView
{
color: @mainText;
}