Skip to content

Commit 0630644

Browse files
committed
xrandr-applet-popup: handle Greybird (etc) XFCE themes
Also ensure default bg images don't override label bg color, and don't use symbolic icon in GNOME HighContrast themes as it gets the disabled color
1 parent 2aa4cec commit 0630644

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎plugins/xrandr/msd-xrandr-manager.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1766,6 +1766,7 @@ make_menu_item_for_output_title (MsdXrandrManager *manager, MateRROutputInfo *ou
17661766
g_string_append (string, "border-color: gray;");
17671767
g_string_append (string,"border-width: 1px;");
17681768
g_string_append (string,"border-style: inset;");
1769+
g_string_append (string, "background-image: none;");
17691770
g_string_append (string, "background-color:");
17701771
g_string_append (string, color_string);
17711772
g_string_append (string," }");
@@ -1794,6 +1795,7 @@ make_menu_item_for_output_title (MsdXrandrManager *manager, MateRROutputInfo *ou
17941795
gtk_css_provider_load_from_data (provider,
17951796
".mate-panel-menu-bar menuitem.xrandr-applet:disabled>box>image{\n"
17961797
"opacity: 1.0; \n"
1798+
"-gtk-icon-style:regular; \n" /* symbolic icons would get the disabled color*/
17971799
"-gtk-icon-effect: none; \n"
17981800
"}",
17991801
-1, NULL);
@@ -1811,7 +1813,10 @@ make_menu_item_for_output_title (MsdXrandrManager *manager, MateRROutputInfo *ou
18111813
g_strcmp0 (theme_name, "Raleigh") == 0 ||
18121814
g_strcmp0 (theme_name, "win32") == 0 ||
18131815
g_strcmp0 (theme_name, "HighContrast") == 0 ||
1814-
g_strcmp0 (theme_name, "HighContrastInverse") == 0){
1816+
g_strcmp0 (theme_name, "HighContrastInverse") == 0 ||
1817+
g_strcmp0 (theme_name, "Blackbird") == 0 ||
1818+
g_strcmp0 (theme_name, "Bluebird") == 0 ||
1819+
g_strcmp0 (theme_name, "Greybird") == 0){
18151820
gtk_css_provider_load_from_data (provider2,
18161821
".mate-panel-menu-bar menuitem.xrandr-applet:disabled>box>label{\n"
18171822
"color: black;\n"

0 commit comments

Comments
 (0)