Krolyxon
Commit a271e16

Branches

Refs →

nsxivconfig.h

36 lines · 1.5 KB · Objective-C

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