default_config.py 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. from os import name
  15. IMAGE_FORMAT = "jpeg"
  16. FILE_EXTENSION = "jpg"
  17. FILE_NAMEING = "folie"
  18. WIDTH = 1920
  19. HEIGHT = 1080
  20. BG_COLOR = "white"
  21. FG_COLOR = "#6298a4"
  22. TITLE_COLOR = "#d8d5c4"
  23. MAX_TITLE_FONT_SIZE = 70
  24. MIN_TITLE_FONT_SIZE = 20
  25. TITLE_FONT_SIZE_STEP = 10
  26. TITLE_HEIGHT = 160
  27. TITLEBAR_Y = 65
  28. INFODISPLAY_FONT_SIZE = 25
  29. INFODISPLAY_ITEM_WIDTH = 20
  30. PLAYER_WIDTH = 560
  31. PLAYER_HEIGHT = 315
  32. BOLD_FONT_PATH = (
  33. "/usr/share/fonts/TTF/century-gothic/CenturyGothicBold.ttf"
  34. if name == "posix"
  35. else "winPATH"
  36. )
  37. FONT_PATH = (
  38. "/usr/share/fonts/TTF/century-gothic/CenturyGothic.ttf"
  39. if name == "posix"
  40. else "winPATH"
  41. )
  42. FONT = "Century-Gothic"
  43. BOLD_FONT = "Century-Gothic-Bold"
  44. TRIANGLE_WIDTH = 80
  45. TRIANGLE_HEIGTH = 160
  46. METADATA_FONT_SIZE = 36
  47. METADATA_X = 70
  48. METADATA_VALUE_CHAR_LIMIT = 100
  49. BOOK_Y = 260
  50. ATTRIBUTIONS_Y = 930
  51. TEXT_COLOR = "black"
  52. STRUCTURE_ELEMENT_X = 80
  53. STRUCTURE_ELEMENT_Y = 400
  54. STRUCTURE_ELEMENT_PER_LINE_CHAR_LIMIT = 85
  55. STRUCTURE_ELEMENT_MAX_LINES = 8
  56. TEXT_CANVAS_X = 160
  57. TEXT_CANVAS_Y = 400
  58. TEXT_CANVAS_WIDTH = 1600
  59. TEXT_CANVAS_HEIGHT = 600
  60. STRUCTURE_X = 1650
  61. STRUCTURE_Y = 1000
  62. MAX_CANVAS_FONT_SIZE = 55
  63. MIN_CANVAS_FONT_SIZE = 35
  64. CANVAS_FONT_SIZE_STEP = 5
  65. INTERLINE_SPACING = 30
  66. ARROW_HEIGHT = 50
  67. ARROW_COLOR = "black"
  68. ARROW_X = 1725
  69. ARROW_Y = 900
  70. METADATA_STRINGS = ("title", "book", "text", "melody", "structure")