Roxen.git / server / modules / graphics / gbutton.pike

version» Context lines:

Roxen.git/server/modules/graphics/gbutton.pike:18:   // icon_src -- icon reference   // icon_data -- inline icon data   // align -- left|center|right text alignment   // align_icon -- left|center_before|center_after|right icon alignment   // >Button text</gbutton>   //   // Alignment restriction: when text alignment is either left or right, icons   // must also be aligned left or right.       - constant cvs_version = "$Id: gbutton.pike,v 1.14 2000/02/03 18:18:57 per Exp $"; + constant cvs_version = "$Id: gbutton.pike,v 1.15 2000/02/03 19:54:01 wellhard Exp $";   constant thread_safe = 1;      #include <module.h>   inherit "module";   inherit "roxenlib";         roxen.ImageCache button_cache;   Image.Image button_border;   Image.Image button_mask;
Roxen.git/server/modules/graphics/gbutton.pike:282:    id->misc->defines->fgcolor || "#000000"), // Text color    "cnd" : args->condensed || // Condensed text    (lower_case(args->textstyle || "") == "condensed"),    "wi" : (int) args->width, // Min button width    "al" : args->align || "left", // Text alignment    "dim" : args->dim || // Button dimming    (< "dim", "disabled" >)[lower_case(args->state || "")],    "icn" : args->icon_src && fix_relative(args->icon_src, id), // Icon URL    "icd" : args->icon_data, // Inline icon data    "ica" : args->align_icon || "left", // Icon alignment -  "font": (args->font||roxen->query("default_font")), +  "font": (args->font||id->misc->defines->font||roxen->query("default_font")),    ]);       array hsv = Image.Color( @new_args->bg )->hsv( );    hsv[-1] = min( hsv[-1]+70, 255 );    hsv[1] = max( hsv[1]-20, 0 );    new_args->bob = (array)Image.Color.hsv( @hsv );    hsv[-1] = max( hsv[-1]-140, 0 );    new_args->bo = (array)Image.Color.hsv( @hsv );       if(args->bordercolor)