diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-02-03 19:11:51 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-02-03 19:11:51 +0100 |
commit | b86df5489d338acc09a191ea8f98ae8165f7a3e3 (patch) | |
tree | 68af5fa0e6023344a42ef2d61bbb16fea6debcba /bin/vnet | |
parent | 1b23db3d002e2519140d59645b5388652fa204bb (diff) |
vnet: Make text readable
Diffstat (limited to 'bin/vnet')
-rwxr-xr-x | bin/vnet | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -55,12 +55,19 @@ sub show_net_png { my $icon = GD::Image->newFromPng("${share}/network.png", 1); my $black = $im->colorAllocateAlpha( 0, 0, 0, $alpha); + my $white = $im->colorAllocateAlpha(255, 255, 255, $alpha); my $bg = $im->colorAllocateAlpha(255, 255, 255, 127); + my $ip_ext = get_ext_ip(); + my $ip_int = get_int_ip(); + $im->filledRectangle(0, 0, $w - 1, $h - 1, $bg); - $im->string(gdMediumBoldFont, 36, 0, get_ext_ip(), $black); - $im->string(gdMediumBoldFont, 36, 16, get_int_ip(), $black); + $im->string(gdMediumBoldFont, 37, 1, $ip_ext, $white); + $im->string(gdMediumBoldFont, 36, 0, $ip_ext, $black); + + $im->string(gdMediumBoldFont, 37, 17, $ip_int, $white); + $im->string(gdMediumBoldFont, 36, 16, $ip_int, $black); $im->copy($icon, 0, 0, 0, 0, 32, 32); |