A Simple X Image Viewer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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