summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2018-05-19 03:11:01 -0400
committerlukefromdc <[email protected]>2018-05-20 14:20:20 -0400
commitc6f56932dee1819097d1f9afa933be4726b1ad35 (patch)
tree84954a61864c56754a6c5b3469a138fda23ba5d3
parentfff8a2f369a80ed7254a1a73bac9bf8e1b337668 (diff)
downloadmate-settings-daemon-c6f56932dee1819097d1f9afa933be4726b1ad35.tar.bz2
mate-settings-daemon-c6f56932dee1819097d1f9afa933be4726b1ad35.tar.xz
xrandr-applet-popup: add a border to colored monitor labels
-rw-r--r--plugins/xrandr/msd-xrandr-manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/xrandr/msd-xrandr-manager.c b/plugins/xrandr/msd-xrandr-manager.c
index 8aeacc4..58b77f5 100644
--- a/plugins/xrandr/msd-xrandr-manager.c
+++ b/plugins/xrandr/msd-xrandr-manager.c
@@ -1693,6 +1693,9 @@ output_title_label_draw_cb (GtkWidget *widget, cairo_t *cr, gpointer data)
g_string_append (string, ".mate-panel-menu-bar menuitem.xrandr-applet:disabled>box>label{\n");
g_string_append (string, "color: black;");
g_string_append (string, "padding-left: 4px; padding-right: 4px;");
+ g_string_append (string, "border-style: inset;");
+ g_string_append (string, "border-width: 1px;");
+ g_string_append (string, "border-color: gray;");
g_string_append (string, "background-color:");
g_string_append (string, color_string);
g_string_append (string," }");
@@ -1774,6 +1777,7 @@ make_menu_item_for_output_title (MsdXrandrManager *manager, MateRROutputInfo *ou
".mate-panel-menu-bar menuitem.xrandr-applet:disabled>box>image{\n"
"opacity: 1.0; \n"
"-gtk-icon-effect: none; \n"
+ "min-height: 36px; \n" /*Use as a spacer so label border does not put scrollbars on popup*/
"}",
-1, NULL);
gtk_style_context_add_provider (context,