| 1 | /* default window dimensions (overwritten via -g option): */ |
| 2 | #define WIN_WIDTH 800 |
| 3 | #define WIN_HEIGHT 600 |
| 4 | |
| 5 | /* default color for window background: * |
| 6 | * (see X(7) "COLOR NAMES" section for valid values) */ |
| 7 | #define BG_COLOR "#999999" |
| 8 | /* default color for thumbnail selection: */ |
| 9 | #define SEL_COLOR "#0040FF" |
| 10 | |
| 11 | /* how should images be scaled when they are loaded?: * |
| 12 | * (also controllable via -d/-s/-Z/-z options) * |
| 13 | * SCALE_DOWN: 100%, but fit large images into window, * |
| 14 | * SCALE_FIT: fit all images into window, * |
| 15 | * SCALE_ZOOM: use current zoom level, 100% at startup */ |
| 16 | #define SCALE_MODE SCALE_DOWN |
| 17 | |
| 18 | /* levels (percent) to use when zooming via '-' and '+': */ |
| 19 | static const float zoom_levels[] = { |
| 20 | 12.5, 25.0, 50.0, 75.0, |
| 21 | 100.0, 150.0, 200.0, 400.0, 800.0 |
| 22 | }; |
| 23 | |
| 24 | /* default dimension of thumbnails (width == height): */ |
| 25 | #define THUMB_SIZE 60 |
| 26 | |
| 27 | /* enable support for external commands (see below)?: */ |
| 28 | #define EXT_COMMANDS 0 |
| 29 | |
| 30 | /* external commands and corresponding key mappings: */ |
| 31 | #ifdef MAIN_C |
| 32 | #if EXT_COMMANDS |
| 33 | static const command_t commands[] = { |
| 34 | /* ctrl-... reload? command, '#' is replaced by filename */ |
| 35 | { XK_comma, True, "jpegtran -rotate 270 -copy all -outfile # #" }, |
| 36 | { XK_period, True, "jpegtran -rotate 90 -copy all -outfile # #" }, |
| 37 | { XK_less, True, "mogrify -rotate -90 #" }, |
| 38 | { XK_greater, True, "mogrify -rotate +90 #" } |
| 39 | }; |
| 40 | #endif |
| 41 | #endif |