From 9900c8654806aced66f12685a21581599a183f79 Mon Sep 17 00:00:00 2001 From: Jason Cohen Date: Sun, 30 Jun 2019 03:04:18 -0500 Subject: [PATCH] MacOS: Fix highlight color in dark mode, graphite highlight MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: 15885 Change-Id: I7921f84c05cad560b0673db951571f186adda3f4 Reviewed-on: https://code.wireshark.org/review/33775 Petri-Dish: Stig Bjørlykke Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke --- ui/qt/packet_list.cpp | 2 +- ui/qt/proto_tree.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/qt/packet_list.cpp b/ui/qt/packet_list.cpp index 1f07d129ae..b2ebe1cb51 100644 --- a/ui/qt/packet_list.cpp +++ b/ui/qt/packet_list.cpp @@ -317,7 +317,7 @@ void PacketList::colorsChanged() "QTreeView:item:hover {" " background-color: %1;" " color: palette(text);" - "}").arg(hover_color.name()); + "}").arg(hover_color.name(QColor::HexArgb)); #endif QString active_style = QString(); diff --git a/ui/qt/proto_tree.cpp b/ui/qt/proto_tree.cpp index 22ec13a1fb..fdf15433b8 100644 --- a/ui/qt/proto_tree.cpp +++ b/ui/qt/proto_tree.cpp @@ -62,7 +62,7 @@ ProtoTree::ProtoTree(QWidget *parent, epan_dissect_t *edt_fixed) : "QTreeView:item:hover {" " background-color: %1;" " color: palette(text);" - "}").arg(hover_color.name())); + "}").arg(hover_color.name(QColor::HexArgb))); #endif // Shrink down to a small but nonzero size in the main splitter.