diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-11-25 11:42:26 -0600 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2016-11-26 14:41:40 +0000 |
commit | d0fa82b825c15fbd9f3b6037f3d9ad4fc78d87fd (patch) | |
tree | aec265a8904f4c4b7bf73ff79ec639b99bb7eb42 /ui/qt/color_utils.h | |
parent | ff4b272180b4f52432dadb9c93f43d01a001900f (diff) | |
download | wireshark-d0fa82b825c15fbd9f3b6037f3d9ad4fc78d87fd.tar.gz |
Qt: Clean up the byte view hover highlight.
Rename the text highlight enum "HighlightMode" to make its use and
intent more clear. Add a mode for the offset highlight instead of using
a separate variable. Use our palette to draw the hover highlight colors.
Add a note about colors to the Developer's Guide.
Change-Id: I488b2512a5058e17eb5b49c8ac55616100f32fbc
Reviewed-on: https://code.wireshark.org/review/18953
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/color_utils.h')
-rw-r--r-- | ui/qt/color_utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/qt/color_utils.h b/ui/qt/color_utils.h index 3dceadf474..69a904d2f1 100644 --- a/ui/qt/color_utils.h +++ b/ui/qt/color_utils.h @@ -56,6 +56,7 @@ public: static const QList<QRgb> graphColors(); static QRgb graphColor(int item); static QRgb sequenceColor(int item); + static QColor byteViewHoverColor(bool background) { return QColor(background ? byte_view_hover_bg_ : byte_view_hover_fg_); } signals: @@ -64,6 +65,8 @@ public slots: private: static QList<QRgb> graph_colors_; static QList<QRgb> sequence_colors_; + static const QRgb byte_view_hover_bg_; + static const QRgb byte_view_hover_fg_; }; void color_filter_qt_add_cb(color_filter_t *colorf, gpointer user_data); |