Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
May 2026 - 2.5.2
- Bugfix: Debug messages are shown in the console (Close #1005)
- Enhancement: Color the QLineEdit that has the focus (Close #3) (TNX EA5WA)

May 2026 - 2.5.1
- Enhancement: Entity dxcc to name queries speed up.
Expand Down
7 changes: 7 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,13 @@ int main(int argc, char *argv[])
//qDebug() << Q_FUNC_INFO << " 001: " << timer.elapsed() << "ms"; timer.restart();
QApplication app(argc, argv);
//qDebug() << Q_FUNC_INFO << " 002: " << timer.elapsed() << "ms"; timer.restart();
app.setStyleSheet("QLineEdit:focus { background-color: #cce5ff; color: #000000; } "
"QDoubleSpinBox:focus { background-color: #cce5ff; color: #000000; } "
"QCheckBox:focus { background-color: #cce5ff; color: #000000; } "
"QDateEdit:focus { background-color: #cce5ff; color: #000000; } "
"QTimeEdit:focus { background-color: #cce5ff; color: #000000; } "
"QPushButton:focus { background-color: #cce5ff; color: #000000; } "
"QComboBox:focus { background-color: #cce5ff; color: #000000; }");
QString iconSt;
iconSt = ":/img/klog.ico";
QIcon KLogIcon(iconSt);
Expand Down
18 changes: 16 additions & 2 deletions src/setuppages/setuppagecolors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,14 @@ void SetupPageColors::setDarkMode(const bool _d)
p.setColor(QPalette::ToolTipBase, QColor(53,53,53));
p.setColor(QPalette::ToolTipText, Qt::white);
qApp->setPalette(p);
qApp->setStyleSheet("QToolTip { color: white; background-color: #353535; border: 1px solid #aaaaaa; }");
qApp->setStyleSheet("QToolTip { color: white; background-color: #353535; border: 1px solid #aaaaaa; } "
"QLineEdit:focus { background-color: #665500; color: #ffffff; } "
"QDoubleSpinBox:focus { background-color: #665500; color: #ffffff; } "
"QCheckBox:focus { background-color: #665500; color: #ffffff; } "
"QDateEdit:focus { background-color: #665500; color: #ffffff; } "
"QTimeEdit:focus { background-color: #665500; color: #ffffff; } "
"QPushButton:focus { background-color: #665500; color: #ffffff; } "
"QComboBox:focus { background-color: #665500; color: #ffffff; }");
darkModeButton->setText(tr("Light Mode"));
//darkMode = true;
}
Expand All @@ -324,7 +331,14 @@ void SetupPageColors::setDarkMode(const bool _d)
p.setColor(QPalette::ToolTipBase, Qt::white);
p.setColor(QPalette::ToolTipText, Qt::black);
qApp->setPalette(p);
qApp->setStyleSheet("QToolTip { color: black; background-color: white; border: 1px solid #aaaaaa; }");
qApp->setStyleSheet("QToolTip { color: black; background-color: white; border: 1px solid #aaaaaa; } "
"QLineEdit:focus { background-color: #cce5ff; color: #000000; } "
"QDoubleSpinBox:focus { background-color: #cce5ff; color: #000000; } "
"QCheckBox:focus { background-color: #cce5ff; color: #000000; } "
"QDateEdit:focus { background-color: #cce5ff; color: #000000; } "
"QTimeEdit:focus { background-color: #cce5ff; color: #000000; } "
"QPushButton:focus { background-color: #cce5ff; color: #000000; } "
"QComboBox:focus { background-color: #cce5ff; color: #000000; }");
darkModeButton->setText(tr("Dark Mode"));
//darkMode = false;
}
Expand Down
Loading