Skip to content

Commit

Permalink
fix formatting error
Browse files Browse the repository at this point in the history
  • Loading branch information
SkwalExe committed Jun 5, 2024
1 parent aad8555 commit 417824c
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/octologo/styles/underline_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,12 @@
"Iosevka-Nerd-Font-Complete.ttf",
),
SelectQuestion("color", "Select a color scheme", color_scheme_names, "adi1090x"),
TextQuestion(
"underline_count", "Lettrs to undrline", [Number(minimum=0)], "1", "1"
),
TextQuestion("underline_count", "Lettrs to undrline", [Number(minimum=0)], "1", "1"),
TextQuestion("padding_x", "Padding x (px)", [Number()], "200", "200"),
TextQuestion("padding_y", "Padding y (px)", [Number()], "20", "20"),
TextQuestion("gap", "Gap between text and bar (px)", [Number()], "20", "20"),
TextQuestion("bar_size", "Bar weight (px)", [Number()], "20", "20"),
TextQuestion(
"additionnal_bar_width", "Additionnal bar width (px)", [Number()], "20", "20"
),
TextQuestion("additionnal_bar_width", "Additionnal bar width (px)", [Number()], "20", "20"),
]

active = False
Expand Down Expand Up @@ -76,9 +72,7 @@ def get_image(answers: dict) -> ImageClass:
)

# Get the underline position
underline_start_x = first_letters_bbox[0] - int(
answers["additionnal_bar_width"]
)
underline_start_x = first_letters_bbox[0] - int(answers["additionnal_bar_width"])
underline_start_y = first_letters_bbox[3] + int(answers["gap"])

underline_end_x = int(answers["additionnal_bar_width"]) + first_letters_bbox[2]
Expand Down

0 comments on commit 417824c

Please sign in to comment.