# Copyright © 2024 Noah Vogt <noah@noahvogt.com>

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

IMAGE_FORMAT = "jpeg"
FILE_EXTENSION = "jpg"
FILE_NAMING = "slide-"

WIDTH = 1920
HEIGHT = 1080
BG_COLOR = "white"
FG_COLOR = "#6298a4"

TITLE_COLOR = "#d8d5c4"
MAX_TITLE_FONT_SIZE = 70
MIN_TITLE_FONT_SIZE = 20
TITLE_FONT_SIZE_STEP = 10
TITLE_HEIGHT = 160
TITLEBAR_Y = 65
TITLEBAR_TRIANGLE_WIDTH = 80
TITLEBAR_TRIANGLE_HEIGTH = 160

INFODISPLAY_FONT_SIZE = 25
INFODISPLAY_ITEM_WIDTH = 20
INFODISPLAY_X = 1650
INFODISPLAY_Y = 1000

PLAYER_WIDTH = 560
PLAYER_HEIGHT = 315

BOLD_FONT_PATH = "/usr/share/fonts/TTF/century-gothic/CenturyGothicBold.ttf"
FONT_PATH = "/usr/share/fonts/TTF/century-gothic/CenturyGothic.ttf"

METADATA_FONT_SIZE = 36
METADATA_X = 70
METADATA_VALUE_CHAR_LIMIT = 100
BOOK_Y = 260
ATTRIBUTIONS_Y = 930

TEXT_COLOR = "black"

STRUCTURE_ELEMENT_X = 80
STRUCTURE_ELEMENT_Y = 400

TEXT_CANVAS_X = 160
TEXT_CANVAS_Y = 400
TEXT_CANVAS_WIDTH = 1600
TEXT_CANVAS_HEIGHT = 600

STRUCTURE_ELEMENT_PER_LINE_CHAR_LIMIT = 85
STRUCTURE_ELEMENT_MAX_LINES = 8
MAX_CANVAS_FONT_SIZE = 55
MIN_CANVAS_FONT_SIZE = 35
CANVAS_FONT_SIZE_STEP = 5
INTERLINE_SPACING = 30

ARROW_HEIGHT = 50
ARROW_COLOR = "black"
ARROW_X = 1725
ARROW_Y = 900

METADATA_STRINGS = ("title", "book", "text", "melody", "structure")

RCLONE_REMOTE_DIR = ""
RCLONE_LOCAL_DIR = ""

FZF_ARGS = ""

SSYNC_CACHE_DIR = ""
SSYNC_CHECKFILE_NAMING = "slidegen-checkfile.txt"
SSYNC_CACHEFILE_NAMING = "slidegen-cachefile.txt"
SSYNC_CHOSEN_FILE_NAMING = "chosen-file.txt"
SSYNC_SLIDESHOW_INPUT_NAMING = "Songslides "

OBS_SLIDES_DIR = ""
OBS_SUBDIR_NAMING = ""
OBS_MIN_SUBDIRS = 7

NEXTSONG_CACHE_FILE = ""
OBS_WEBSOCKET_HOSTNAME = "localhost"
OBS_WEBSOCKET_PORT = 4444
OBS_WEBSOCKET_PASSWORD = ""
OBS_SONG_SCENE_PREFIX = "song "

CD_RECORD_CACHEFILE = ""
CD_RECORD_OUTPUT_BASEDIR = ""
CD_RECORD_FFMPEG_INPUT_ARGS = ""
CD_RECORD_MAX_SECONDS = 4800
CD_RECORD_MIN_TRACK_MILIS = 4200
CD_RECORD_PREFERED_DRIVE = ""
CD_RECORD_PREFERED_SCSI_DRIVE = ""

CD_RECORD_WEBSOCKET_HOST = "localhost"
CD_RECORD_WEBSOCKET_PORT = 8765
CD_RECORD_WEBSOCKET_SLEEP = 0.3

SERMON_UPLOAD_USE_FTP = False

SERMON_UPLOAD_WPSM_API_BASE_URL = ""
SERMON_UPLOAD_WPSM_USER = ""
SERMON_UPLOAD_WPSM_PASSWORD = ""

SERMON_UPLOAD_FTP_HOSTNAME = ""
SERMON_UPLOAD_FTP_USER = ""
SERMON_UPLOAD_FTP_PASSWORD = ""
SERMON_UPLOAD_FTP_UPLOAD_DIR = ""
SERMON_UPLOAD_SUITABLE_SEGMENT_FRAMES = 90000  # 75 * 60 * 20

AUTOPRINT_INFOMAIL_CMD = ""
AUTOPRINT_INFOMAIL_DATEFILE = ""
