From b86df5489d338acc09a191ea8f98ae8165f7a3e3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 3 Feb 2011 19:11:51 +0100 Subject: vnet: Make text readable --- bin/vnet | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/vnet b/bin/vnet index fd3b898..0eb15ee 100755 --- a/bin/vnet +++ b/bin/vnet @@ -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); -- cgit v1.2.3