Skip to content

Commit

Permalink
[Enhancement] Use material color #2
Browse files Browse the repository at this point in the history
  • Loading branch information
SakuraKoi committed Mar 2, 2021
1 parent 8db13d7 commit 3958293
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions BattlefieldChat/InputDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void InputDialog::handleInitializeWindow(Qt::WindowFlags style, QSize size, QSiz

ui.editContent->setText("");
ui.lblStatus->setText(QString::fromUtf8(u8"就绪"));
ui.lblStatus->setStyleSheet("color: rgb(85, 255, 0);\nbackground-color: rgba(255, 255, 255, 0);");
ui.lblStatus->setStyleSheet("color: rgb(83, 164, 60);\nbackground-color: rgba(255, 255, 255, 0);");

HWND hForgroundWnd = GetForegroundWindow();
DWORD dwForeID = GetWindowThreadProcessId(hForgroundWnd, NULL);
Expand All @@ -151,7 +151,7 @@ void InputDialog::textTyped(const QString& text) {
if (preprocessor->process(text).size() > 90) {
if (allowExceedLimit) {
ui.lblStatus->setText(QString::fromUtf8(u8"过长"));
ui.lblStatus->setStyleSheet("color: rgb(255, 152, 0);\nbackground-color: rgba(255, 255, 255, 0);");
ui.lblStatus->setStyleSheet("color: rgb(244, 67, 54);\nbackground-color: rgba(255, 255, 255, 0);");
} else {
ui.lblStatus->setText(QString::fromUtf8(u8"超长"));
ui.lblStatus->setStyleSheet("color: rgb(255, 0, 0);\nbackground-color: rgba(255, 255, 255, 0);");
Expand All @@ -160,5 +160,5 @@ void InputDialog::textTyped(const QString& text) {
}
}
ui.lblStatus->setText(QString::fromUtf8(u8"就绪"));
ui.lblStatus->setStyleSheet("color: rgb(85, 255, 0);\nbackground-color: rgba(255, 255, 255, 0);");
ui.lblStatus->setStyleSheet("color: rgb(83, 164, 60);\nbackground-color: rgba(255, 255, 255, 0);");
}
2 changes: 1 addition & 1 deletion BattlefieldChat/InputDialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(85, 255, 0);
<string notr="true">color: rgb(83, 164, 60);
background-color: rgba(255, 255, 255, 0);</string>
</property>
<property name="text">
Expand Down

0 comments on commit 3958293

Please sign in to comment.