aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2014-10-31 16:12:47 -0700
committerGerald Combs <gerald@wireshark.org>2014-10-31 23:13:56 +0000
commit2bd1d46734533d3c2eed0e60c7c130f1952a589c (patch)
treef41c21d467c6e5d5653098cb97a94bac110d1acf /ui
parent5a71cfddf3cb659f161f74dc9b81e39adfad40ab (diff)
Qt: Better Follow Stream hints.
Show the client and server colors in the hint text. Change-Id: Iddcda8c3f4f7dc0d8919749aeffc8c09c6445c17 Reviewed-on: https://code.wireshark.org/review/5035 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/follow_stream_dialog.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/qt/follow_stream_dialog.cpp b/ui/qt/follow_stream_dialog.cpp
index 86f63b17bf..03d0a613bd 100644
--- a/ui/qt/follow_stream_dialog.cpp
+++ b/ui/qt/follow_stream_dialog.cpp
@@ -146,8 +146,12 @@ void FollowStreamDialog::fillHintLabel(int text_pos)
hint = QString(tr("Packet %1. ")).arg(pkt);
}
- hint += tr("%Ln client pkt(s), ", "", client_packet_count_)
- + tr("%Ln server pkt(s), ", "", server_packet_count_)
+ hint += tr("%Ln <span style=\"color: %1; background-color:%2\">client</span> pkt(s), ", "", client_packet_count_)
+ .arg(ColorUtils::fromColorT(prefs.st_client_fg).name())
+ .arg(ColorUtils::fromColorT(prefs.st_client_bg).name())
+ + tr("%Ln <span style=\"color: %1; background-color:%2\">server</span> pkt(s), ", "", server_packet_count_)
+ .arg(ColorUtils::fromColorT(prefs.st_server_fg).name())
+ .arg(ColorUtils::fromColorT(prefs.st_server_bg).name())
+ tr("%Ln turn(s).", "", turns_);
if (pkt > 0) {