# infoboxes!!!!!!!!!!!! our $BPOD_COLOR_UI_GRADIENT_1 = "0xF8F8D7"; our $BPOD_COLOR_UI_GRADIENT_2 = "0xF0F0E6"; our $BPOD_COLOR_UI_STROKE = "0x000000"; my $DEBUG_FORM_STRING = $DEBUG ? qq() : ''; use RGB; sub alerts { my $newmsg = count_new_messages($USER->{username}); if ($newmsg > 0) { my $s = courtesy_s($newmsg); alert_box("$BUCKY/inbox", "You have $newmsg new message$s!"); } } sub alert_box { my ($url, $msg) = @_; print qq(
\n); } sub welcome_box { my ($files, $size) = count_user_files($USER->{username}); print qq(\n); } sub search_box { print <<__SEARCH__; __SEARCH__ } sub bPod_box { my ($color) = @_; $color = get_color_from_time() || "plain"; $color = $COLORS{$color} if exists $COLORS{$color}; my $rgb = RGB->new($color); $rgb->perturb([4,4,8]); my $gradient1 = $rgb->hex(); $rgb->add(nighttime_quotient()); my $background = $rgb->hex(); $gradient1 =~ s/^\#/0x/; $BPOD_COLOR_UI_GRADIENT_1 = $gradient1; # "0xF8F8D7"; print <