aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs.h
diff options
context:
space:
mode:
authorPaul Zander <p.j.zander@lighting.com>2018-05-22 10:06:27 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2018-05-25 11:07:01 +0000
commit53dfec9b99b265ff4db0e5f2e179fc2f1ef77e0f (patch)
tree933dc37b8d2d9c4efcdfe55b68a9fc940a8d0031 /epan/prefs.h
parent31663c4056882cdcb4e99ba97f8a65a2ec7def3b (diff)
Qt: Configure the selection color via the preferences
The active selection color and inactive selection color can be configured via Edit / Preferences / Font and Colors There are 3 styles that can be used for the selection color: Default: legacy behavior Flat: Use background and foreground color with no gradient. Gradient: Use background and foreground color with a gradient. Bug: 14714 Change-Id: Ieca293bb9830d2c5702949d0459d1d6f679e41e4 Reviewed-on: https://code.wireshark.org/review/27701 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'epan/prefs.h')
-rw-r--r--epan/prefs.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/epan/prefs.h b/epan/prefs.h
index 7f18f3ab18..489d5ccabf 100644
--- a/epan/prefs.h
+++ b/epan/prefs.h
@@ -65,6 +65,15 @@ char string_to_name_resolve(const char *string, struct _e_addr_resolve *name_res
#define TB_STYLE_BOTH 2
/*
+ * Color styles.
+ */
+#define COLOR_STYLE_DEFAULT 0
+#define COLOR_STYLE_FLAT 1
+#define COLOR_STYLE_GRADIENT 2
+
+#define COLOR_STYLE_ALPHA 0.25
+
+/*
* Types of layout of summary/details/hex panes.
*/
typedef enum {
@@ -146,6 +155,12 @@ typedef struct _e_prefs {
gint gui_toolbar_main_style;
gint gui_toolbar_filter_style;
gchar *gui_qt_font_name;
+ color_t gui_active_fg;
+ color_t gui_active_bg;
+ gint gui_active_style;
+ color_t gui_inactive_fg;
+ color_t gui_inactive_bg;
+ gint gui_inactive_style;
color_t gui_marked_fg;
color_t gui_marked_bg;
color_t gui_ignored_fg;