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.cpp | |
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.cpp')
-rw-r--r-- | ui/qt/color_utils.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/qt/color_utils.cpp b/ui/qt/color_utils.cpp index 4f27367393..e63512fb65 100644 --- a/ui/qt/color_utils.cpp +++ b/ui/qt/color_utils.cpp @@ -23,6 +23,14 @@ #include "tango_colors.h" +// Colors we use in various parts of the UI. +// +// New colors should be chosen from tango_colors.h. The expert and hidden +// colors come from the GTK+ UI and are grandfathered in. +// +// At some point we should probably make these configurable along with the +// graph and sequence colors. + const QColor ColorUtils::expert_color_comment = QColor ( 0xb7, 0xf7, 0x74 ); /* Green */ const QColor ColorUtils::expert_color_chat = QColor ( 0x80, 0xb7, 0xf7 ); /* Light blue */ const QColor ColorUtils::expert_color_note = QColor ( 0xa0, 0xff, 0xff ); /* Bright turquoise */ @@ -31,6 +39,9 @@ const QColor ColorUtils::expert_color_error = QColor ( 0xff, 0x5c, 0x5c ); const QColor ColorUtils::expert_color_foreground = QColor ( 0x00, 0x00, 0x00 ); /* Black */ const QColor ColorUtils::hidden_proto_item = QColor ( 0x44, 0x44, 0x44 ); /* Gray */ +const QRgb ColorUtils::byte_view_hover_bg_ = tango_butter_2; +const QRgb ColorUtils::byte_view_hover_fg_ = tango_sky_blue_5; + ColorUtils::ColorUtils(QObject *parent) : QObject(parent) { |