2011-04-07 10:17:27 +02:00
|
|
|
/* default window dimensions (overwritten via -g option): */
|
|
|
|
#define WIN_WIDTH 800
|
|
|
|
#define WIN_HEIGHT 600
|
2011-01-17 14:57:59 +01:00
|
|
|
|
2011-04-14 12:19:20 +02:00
|
|
|
/* default color for window background: *
|
|
|
|
* (see X(7) "COLOR NAMES" section for valid values) */
|
2011-04-07 10:17:27 +02:00
|
|
|
#define BG_COLOR "#999999"
|
2011-04-14 12:19:20 +02:00
|
|
|
/* default color for thumbnail selection: */
|
2011-07-17 20:20:34 +02:00
|
|
|
#define SEL_COLOR "#0066FF"
|
2011-01-17 14:57:59 +01:00
|
|
|
|
2011-04-14 12:19:20 +02:00
|
|
|
/* how should images be scaled when they are loaded?: *
|
|
|
|
* (also controllable via -d/-s/-Z/-z options) *
|
|
|
|
* SCALE_DOWN: 100%, but fit large images into window, *
|
|
|
|
* SCALE_FIT: fit all images into window, *
|
|
|
|
* SCALE_ZOOM: use current zoom level, 100% at startup */
|
2011-04-07 10:17:27 +02:00
|
|
|
#define SCALE_MODE SCALE_DOWN
|
2011-01-17 14:57:59 +01:00
|
|
|
|
2011-04-14 12:19:20 +02:00
|
|
|
/* levels (percent) to use when zooming via '-' and '+': */
|
2011-01-21 10:29:31 +01:00
|
|
|
static const float zoom_levels[] = {
|
|
|
|
12.5, 25.0, 50.0, 75.0,
|
|
|
|
100.0, 150.0, 200.0, 400.0, 800.0
|
|
|
|
};
|
2011-02-16 16:47:12 +01:00
|
|
|
|
2011-04-14 12:19:20 +02:00
|
|
|
/* default dimension of thumbnails (width == height): */
|
2011-04-07 10:17:27 +02:00
|
|
|
#define THUMB_SIZE 60
|
2011-03-09 10:08:43 +01:00
|
|
|
|
2011-04-14 12:19:20 +02:00
|
|
|
/* enable external commands (defined below)? 0=off, 1=on: */
|
2011-04-07 10:17:27 +02:00
|
|
|
#define EXT_COMMANDS 0
|
2011-04-14 12:00:35 +02:00
|
|
|
|
2011-04-14 12:19:20 +02:00
|
|
|
/* external commands and corresponding key mappings: */
|
2011-04-14 12:00:35 +02:00
|
|
|
#ifdef MAIN_C
|
|
|
|
#if EXT_COMMANDS
|
|
|
|
static const command_t commands[] = {
|
|
|
|
/* ctrl-... reload? command, '#' is replaced by filename */
|
|
|
|
{ XK_comma, True, "jpegtran -rotate 270 -copy all -outfile # #" },
|
|
|
|
{ XK_period, True, "jpegtran -rotate 90 -copy all -outfile # #" },
|
|
|
|
{ XK_less, True, "mogrify -rotate -90 #" },
|
|
|
|
{ XK_greater, True, "mogrify -rotate +90 #" }
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
#endif
|