https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=16729

            Bug ID: 16729
           Summary: Add support for custom colors in Wireshark Packet
                    Details
           Product: Wireshark
           Version: Git
          Hardware: x86
                OS: Windows 10
            Status: UNCONFIRMED
          Severity: Major
          Priority: Low
         Component: Qt UI
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Build Information:
Paste the COMPLETE build information from "Help->About Wireshark", "wireshark
-v", or "tshark -v".
--
Support colorizing packet details under Edit->Preferences -> Appearance-> Font
and Colors. This would provide users with extra flexibility, which would be
especially useful on instances that didn't properly support dark mode.

The packet detail's colors are set here:
https://github.com/wireshark/wireshark/blob/master/ui/qt/proto_tree.cpp#L72

Snippet from diff :

     setStyleSheet(QString(
        "QTreeView {background-color: black; }"
        "QTreeView:item {background-color: black; color: white}"
        "QTreeView::branch::closed::has-children {background-color: blue;
color: red}"
        "QTreeView::branch::indicator {background-color: green; color: yellow}"
        "QTreeView:item:hover {"
        "  background-color: %1;"
        "  color: palette(text);"
        "}").arg(hover_color.name(QColor::HexArgb)));
#endif


For whoever picks this up: You'll still need to determine how to add the
buttons to the Preferences dialog, save/load those settings, and then retrieve
those values later.

-- 
You are receiving this mail because:
You are watching all bug changes.
___________________________________________________________________________
Sent via:    Wireshark-bugs mailing list <[email protected]>
Archives:    https://www.wireshark.org/lists/wireshark-bugs
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-bugs
             mailto:[email protected]?subject=unsubscribe

Reply via email to