"more refined" panel icons



hi,

i don't really like the WinXP look and feel of NM's signal strength
icon :-| in addition, it only indicates strengths in the regions 100% <
75% < 50% < 25% < 0% (for what it's worth anyway). i quite like gwlan's
icon, nevertheless i decided to come up with "my own" design (which
probably already exists out there). i'm as bold as to suggest to change
NM's icons, but if somebody out there wants a more refined set of panel
icons for the signal strength, here's a patch and a link to a set of
icons (that need to be copied to NM's panel-applet/icons/ directory
before compiling). the strength range is  100 < 85 <65 < 45 < 25 < 5 <
0, and the color changes according to the signal strength range. it's
certainly not perfect and not meant for everybody, but i thought i'd
share it with the NM world - maybe somebody finds it useful (i.e., likes
it or feels inspired to do her/his own icons).

here's the link to the icons:
www.cgtp.duke.edu/~rinke/misc/NM-icons.tar.bz2 feel free to modify,
copy, ... anything you want.

and here's the patch: 
--- NetworkManager/panel-applet/NMWirelessApplet.c_orig 2005-02-19
17:04:49.115386848 -0500
+++ NetworkManager/panel-applet/NMWirelessApplet.c 2005-02-19
17:09:37.458552024 -0500
@@ -405,16 +405,20 @@
				}
				else
				{
-					if (strength > 75)
-						pixbuf = applet->wireless_100_icon;
-					else if (strength > 50)
-						pixbuf = applet->wireless_75_icon;
-					else if (strength > 25)
-						pixbuf = applet->wireless_50_icon;
-					else if (strength > 0)
-						pixbuf = applet->wireless_25_icon;
-					else
-						pixbuf = applet->wireless_00_icon;
+					if (strength >85)
+						pixbuf = applet->wireless_100_icon;
+					else if (strength > 65)
+						pixbuf = applet->wireless_085_icon;
+					else if (strength > 45)
+						pixbuf = applet->wireless_065_icon;
+					else if (strength > 25)
+						pixbuf = applet->wireless_045_icon;
+					else if (strength > 5)
+						pixbuf = applet->wireless_025_icon;
+					else if (strength > 0)
+						pixbuf = applet->wireless_005_icon;
+					else
+						pixbuf = applet->wireless_000_icon;
					tip = g_strdup_printf (_("Wireless network connection to '%s' (%d%
%)"),
							active_network ? active_network->essid : "(unknown)", strength);
				}
--- NetworkManager/panel-applet/NMWirelessApplet.c_orig 2005-02-19
17:04:49.115386848 -0500
+++ NetworkManager/panel-applet/NMWirelessApplet.c 2005-02-19
17:09:37.458552024 -0500
@@ -1293,11 +1293,13 @@
        g_object_unref (applet->adhoc_icon);
	for (i = 0; i < NUM_WIRED_CONNECTING_FRAMES; i++)
		g_object_unref (applet->wired_connecting_icons[i]);
-        g_object_unref (applet->wireless_00_icon);
-        g_object_unref (applet->wireless_25_icon);
-        g_object_unref (applet->wireless_50_icon);
-        g_object_unref (applet->wireless_75_icon);
-        g_object_unref (applet->wireless_100_icon);
+	g_object_unref (applet->wireless_000_icon);
+	g_object_unref (applet->wireless_005_icon);
+	g_object_unref (applet->wireless_025_icon);
+	g_object_unref (applet->wireless_045_icon);
+	g_object_unref (applet->wireless_065_icon);
+	g_object_unref (applet->wireless_085_icon);
+	g_object_unref (applet->wireless_100_icon);
	for (i = 0; i < NUM_WIRELESS_CONNECTING_FRAMES; i++)
		g_object_unref (applet->wireless_connecting_icons[i]);
	for (i = 0; i < NUM_WIRELESS_SCANNING_FRAMES; i++)
--- NetworkManager/panel-applet/NMWirelessApplet.c_orig 2005-02-19
17:04:49.115386848 -0500
+++ NetworkManager/panel-applet/NMWirelessApplet.c 2005-02-19
17:09:37.458552024 -0500
@@ -1328,10 +1328,12 @@
	applet->wired_connecting_icons[8] = gtk_icon_theme_load_icon
(icon_theme, "nm-connecting09", icon_size, 0, NULL);
	applet->wired_connecting_icons[9] = gtk_icon_theme_load_icon
(icon_theme, "nm-connecting10", icon_size, 0, NULL);
	applet->wired_connecting_icons[10] = gtk_icon_theme_load_icon
(icon_theme, "nm-connecting11", icon_size, 0, NULL);
-	applet->wireless_00_icon = gtk_icon_theme_load_icon (icon_theme,
"nm-signal-00", icon_size, 0, NULL);
-	applet->wireless_25_icon = gtk_icon_theme_load_icon (icon_theme,
"nm-signal-25", icon_size, 0, NULL);
-	applet->wireless_50_icon = gtk_icon_theme_load_icon (icon_theme,
"nm-signal-50", icon_size, 0, NULL);
-	applet->wireless_75_icon = gtk_icon_theme_load_icon (icon_theme,
"nm-signal-75", icon_size, 0, NULL);
+	applet->wireless_000_icon = gtk_icon_theme_load_icon (icon_theme,
"nm-signal-000", icon_size, 0, NULL);
+	applet->wireless_005_icon = gtk_icon_theme_load_icon (icon_theme,
"nm-signal-005", icon_size, 0, NULL);
+	applet->wireless_025_icon = gtk_icon_theme_load_icon (icon_theme,
"nm-signal-025", icon_size, 0, NULL);
+	applet->wireless_045_icon = gtk_icon_theme_load_icon (icon_theme,
"nm-signal-045", icon_size, 0, NULL);
+	applet->wireless_065_icon = gtk_icon_theme_load_icon (icon_theme,
"nm-signal-065", icon_size, 0, NULL);
+	applet->wireless_085_icon = gtk_icon_theme_load_icon (icon_theme,
"nm-signal-085", icon_size, 0, NULL);
	applet->wireless_100_icon = gtk_icon_theme_load_icon (icon_theme,
"nm-signal-100", icon_size, 0, NULL);
	applet->wireless_connecting_icons[0] = gtk_icon_theme_load_icon
(icon_theme, "nm-connecting01", icon_size, 0, NULL);
	applet->wireless_connecting_icons[1] = gtk_icon_theme_load_icon
(icon_theme, "nm-connecting02", icon_size, 0, NULL);
--- NetworkManager/panel-applet/NMWirelessApplet.h_orig 2005-02-19
17:04:49.115386848 -0500
+++ NetworkManager/panel-applet/NMWirelessApplet.h 2005-02-19
17:09:37.458552024 -0500
@@ -118,6 +118,8 @@
	GdkPixbuf			*wired_connecting_icons[NUM_WIRED_CONNECTING_FRAMES];
-	GdkPixbuf			*wireless_00_icon;
-	GdkPixbuf			*wireless_25_icon;
-	GdkPixbuf			*wireless_50_icon;
-	GdkPixbuf			*wireless_75_icon;
+	GdkPixbuf			*wireless_000_icon;
+	GdkPixbuf			*wireless_005_icon;
+	GdkPixbuf			*wireless_025_icon;
+	GdkPixbuf			*wireless_045_icon;
+	GdkPixbuf			*wireless_065_icon;
+	GdkPixbuf			*wireless_085_icon;
	GdkPixbuf			*wireless_100_icon;
--- NetworkManager/panel-applet/icons/Makefile.am_orig 2005-02-19
17:04:49.115386848 -0500
+++ NetworkManager/panel-applet/icons/Makefile.am 2005-02-19
17:09:37.458552024 -0500
@@ -36,10 +36,12 @@
	nm-detect14.png	\
	nm-detect15.png	\
	nm-detect16.png	\
-	nm-signal-00.png	\
-	nm-signal-25.png	\
-	nm-signal-50.png	\
-	nm-signal-75.png	\
+	nm-signal-000.png	\
+	nm-signal-005.png	\
+	nm-signal-025.png	\
+	nm-signal-045.png	\
+	nm-signal-065.png	\
+	nm-signal-085.png	\
	nm-signal-100.png	\
	$(NULL)





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]