X-Git-Url: https://git.subgeniuskitty.com/xmenu/.git/blobdiff_plain/f644b8bc229efaa87ac1d441918496e7e24cf29c..eecf9b25ffee341eb4cbcdb8098298500c76bd52:/config.h diff --git a/config.h b/config.h index 6a37a74..27e9c11 100644 --- a/config.h +++ b/config.h @@ -1,11 +1,28 @@ -static const char *font = "-*-*-medium-*-*-*-14-*-*-*-*-*-*-*"; -static const char *background = "#FFFFFF"; -static const char *foreground = "#2E3436"; -static const char *selbackground = "#3584E4"; -static const char *selforeground = "#FFFFFF"; -static const char *separator = "#CDC7C2"; -static const char *border = "#E6E6E6"; -static int width = 130; -static int itemborder = 4; -static int menuborder = 1; -static int separatorsize = 1; +static struct Config config = { + /* font */ + .font = "monospace:size=9", /* for regular items */ + + /* colors */ + .background_color = "#FFFFFF", + .foreground_color = "#2E3436", + .selbackground_color = "#3584E4", + .selforeground_color = "#FFFFFF", + .separator_color = "#CDC7C2", + .border_color = "#E6E6E6", + + /* sizes in pixels */ + .width_pixels = 130, /* minimum width of a menu */ + .height_pixels = 25, /* height of a single menu item */ + .border_pixels = 1, /* menu border */ + .separator_pixels = 3, /* space around separator */ + .gap_pixels = 0, /* gap between menus */ + + /* the variables below cannot be set by X resources */ + + /* geometry of the right-pointing isoceles triangle for submenus */ + .triangle_width = 3, + .triangle_height = 7, + + /* padding of the area around the icon */ + .iconpadding = 4, +};