mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
rewording
This commit is contained in:
parent
717a272291
commit
121fcf09d4
1 changed files with 6 additions and 8 deletions
|
|
@ -805,8 +805,7 @@ MessagesSettingsPage::MessagesSettingsPage()
|
||||||
connect(&invertHighlightForeground, SIGNAL(stateChanged(int)), this, SLOT(updateTextHighlightColor(int)));
|
connect(&invertHighlightForeground, SIGNAL(stateChanged(int)), this, SLOT(updateTextHighlightColor(int)));
|
||||||
|
|
||||||
mentionColor = new QLineEdit();
|
mentionColor = new QLineEdit();
|
||||||
mentionColor->setClearButtonEnabled(true);
|
mentionColor->setPlaceholderText(tr("HEX Code"));
|
||||||
mentionColor->setPlaceholderText(tr("Color Code"));
|
|
||||||
mentionColor->setText(SettingsCache::instance().getChatMentionColor());
|
mentionColor->setText(SettingsCache::instance().getChatMentionColor());
|
||||||
updateMentionPreview();
|
updateMentionPreview();
|
||||||
connect(mentionColor, SIGNAL(textChanged(QString)), this, SLOT(updateColor(QString)));
|
connect(mentionColor, SIGNAL(textChanged(QString)), this, SLOT(updateColor(QString)));
|
||||||
|
|
@ -821,7 +820,6 @@ MessagesSettingsPage::MessagesSettingsPage()
|
||||||
connect(&roomHistory, SIGNAL(stateChanged(int)), &SettingsCache::instance(), SLOT(setRoomHistory(int)));
|
connect(&roomHistory, SIGNAL(stateChanged(int)), &SettingsCache::instance(), SLOT(setRoomHistory(int)));
|
||||||
|
|
||||||
customAlertString = new QLineEdit();
|
customAlertString = new QLineEdit();
|
||||||
customAlertString->setClearButtonEnabled(true);
|
|
||||||
customAlertString->setPlaceholderText(tr("Word1 Word2 Word3"));
|
customAlertString->setPlaceholderText(tr("Word1 Word2 Word3"));
|
||||||
customAlertString->setText(SettingsCache::instance().getHighlightWords());
|
customAlertString->setText(SettingsCache::instance().getHighlightWords());
|
||||||
connect(customAlertString, SIGNAL(textChanged(QString)), &SettingsCache::instance(),
|
connect(customAlertString, SIGNAL(textChanged(QString)), &SettingsCache::instance(),
|
||||||
|
|
@ -829,7 +827,7 @@ MessagesSettingsPage::MessagesSettingsPage()
|
||||||
|
|
||||||
auto *chatGrid = new QGridLayout;
|
auto *chatGrid = new QGridLayout;
|
||||||
chatGrid->addWidget(&chatMentionCheckBox, 0, 0);
|
chatGrid->addWidget(&chatMentionCheckBox, 0, 0);
|
||||||
chatGrid->addWidget(&hexMentionStringLabel, 0, 1, Qt::AlignRight);
|
chatGrid->addWidget(&mentionColorStringLabel, 0, 1, Qt::AlignRight);
|
||||||
chatGrid->addWidget(mentionColor, 0, 2);
|
chatGrid->addWidget(mentionColor, 0, 2);
|
||||||
chatGrid->addWidget(&invertMentionForeground, 0, 3);
|
chatGrid->addWidget(&invertMentionForeground, 0, 3);
|
||||||
chatGrid->addWidget(&chatMentionCompleterCheckbox, 1, 0, 1, -1);
|
chatGrid->addWidget(&chatMentionCompleterCheckbox, 1, 0, 1, -1);
|
||||||
|
|
@ -845,14 +843,14 @@ MessagesSettingsPage::MessagesSettingsPage()
|
||||||
chatGroupBox->setLayout(chatGrid);
|
chatGroupBox->setLayout(chatGrid);
|
||||||
|
|
||||||
highlightColor = new QLineEdit();
|
highlightColor = new QLineEdit();
|
||||||
highlightColor->setPlaceholderText(tr("Color Code"));
|
highlightColor->setPlaceholderText(tr("HEX Code"));
|
||||||
highlightColor->setText(SettingsCache::instance().getChatHighlightColor());
|
highlightColor->setText(SettingsCache::instance().getChatHighlightColor());
|
||||||
updateHighlightPreview();
|
updateHighlightPreview();
|
||||||
connect(highlightColor, SIGNAL(textChanged(QString)), this, SLOT(updateHighlightColor(QString)));
|
connect(highlightColor, SIGNAL(textChanged(QString)), this, SLOT(updateHighlightColor(QString)));
|
||||||
|
|
||||||
auto *highlightNotice = new QGridLayout;
|
auto *highlightNotice = new QGridLayout;
|
||||||
highlightNotice->addWidget(customAlertString, 0, 0);
|
highlightNotice->addWidget(customAlertString, 0, 0);
|
||||||
highlightNotice->addWidget(&hexHighlightStringLabel, 0, 1, Qt::AlignRight);
|
highlightNotice->addWidget(&highlightColorStringLabel, 0, 1, Qt::AlignRight);
|
||||||
highlightNotice->addWidget(highlightColor, 0, 2);
|
highlightNotice->addWidget(highlightColor, 0, 2);
|
||||||
highlightNotice->addWidget(&invertHighlightForeground, 0, 3);
|
highlightNotice->addWidget(&invertHighlightForeground, 0, 3);
|
||||||
highlightNotice->addWidget(&customAlertStringLabel, 1, 0, 1, -1);
|
highlightNotice->addWidget(&customAlertStringLabel, 1, 0, 1, -1);
|
||||||
|
|
@ -1003,8 +1001,8 @@ void MessagesSettingsPage::retranslateUi()
|
||||||
ignoreUnregUserMessages.setText(tr("Ignore private messages sent by unregistered users"));
|
ignoreUnregUserMessages.setText(tr("Ignore private messages sent by unregistered users"));
|
||||||
invertMentionForeground.setText(tr("Invert text color"));
|
invertMentionForeground.setText(tr("Invert text color"));
|
||||||
invertHighlightForeground.setText(tr("Invert text color"));
|
invertHighlightForeground.setText(tr("Invert text color"));
|
||||||
hexMentionStringLabel.setText("HEX");
|
mentionColorStringLabel.setText(tr("Color"));
|
||||||
hexHighlightStringLabel.setText("HEX");
|
highlightColorStringLabel.setText(tr("Color"));
|
||||||
messagePopups.setText(tr("Enable desktop notifications for private messages"));
|
messagePopups.setText(tr("Enable desktop notifications for private messages"));
|
||||||
mentionPopups.setText(tr("Enable desktop notification for mentions"));
|
mentionPopups.setText(tr("Enable desktop notification for mentions"));
|
||||||
roomHistory.setText(tr("Enable room message history on join"));
|
roomHistory.setText(tr("Enable room message history on join"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue