default_config.py 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. """
  2. Copyright © 2022 Noah Vogt <noah@noahvogt.com>
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 3 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. """
  14. IMAGE_FORMAT = "jpeg"
  15. FILE_EXTENSION = "jpg"
  16. FILE_NAMEING = "slide"
  17. WIDTH = 1920
  18. HEIGHT = 1080
  19. BG_COLOR = "white"
  20. FG_COLOR = "#6298a4"
  21. TITLE_COLOR = "#d8d5c4"
  22. MAX_TITLE_FONT_SIZE = 70
  23. MIN_TITLE_FONT_SIZE = 20
  24. TITLE_FONT_SIZE_STEP = 10
  25. TITLE_HEIGHT = 160
  26. TITLEBAR_Y = 65
  27. INFODISPLAY_FONT_SIZE = 25
  28. INFODISPLAY_ITEM_WIDTH = 20
  29. PLAYER_WIDTH = 560
  30. PLAYER_HEIGHT = 315
  31. BOLD_FONT_PATH = "/usr/share/fonts/TTF/century-gothic/CenturyGothicBold.ttf"
  32. FONT_PATH = "/usr/share/fonts/TTF/century-gothic/CenturyGothic.ttf"
  33. FONT = "Century-Gothic"
  34. BOLD_FONT = "Century-Gothic-Bold"
  35. TRIANGLE_WIDTH = 80
  36. TRIANGLE_HEIGTH = 160
  37. METADATA_FONT_SIZE = 36
  38. METADATA_X = 70
  39. METADATA_VALUE_CHAR_LIMIT = 100
  40. BOOK_Y = 260
  41. ATTRIBUTIONS_Y = 930
  42. TEXT_COLOR = "black"
  43. STRUCTURE_ELEMENT_X = 80
  44. STRUCTURE_ELEMENT_Y = 400
  45. STRUCTURE_ELEMENT_PER_LINE_CHAR_LIMIT = 85
  46. STRUCTURE_ELEMENT_MAX_LINES = 8
  47. TEXT_CANVAS_X = 160
  48. TEXT_CANVAS_Y = 400
  49. TEXT_CANVAS_WIDTH = 1600
  50. TEXT_CANVAS_HEIGHT = 600
  51. STRUCTURE_X = 1650
  52. STRUCTURE_Y = 1000
  53. MAX_CANVAS_FONT_SIZE = 55
  54. MIN_CANVAS_FONT_SIZE = 35
  55. CANVAS_FONT_SIZE_STEP = 5
  56. INTERLINE_SPACING = 30
  57. ARROW_HEIGHT = 50
  58. ARROW_COLOR = "black"
  59. ARROW_X = 1725
  60. ARROW_Y = 900
  61. METADATA_STRINGS = ("title", "book", "text", "melody", "structure")