Text Box Styling

When you select a text box in the Image View, the Text Box Style Panel appears in the Right Panel. This panel gives you granular control over the visual appearance of your text boxes, allowing you to match source styles or create entirely new designs for your translated text.

Text Box Style Panel Overview *(Placeholder: Replace with actual screenshot of Style Panel with sub-panels expanded)*

The panel is organized into two main sections: Text Style (left column) and Shape Style (right column), with Presets at the bottom.


1. Shape Style Panel

This section controls the text box container’s background, border, and overall shape.

Fill (Background)

Gradient Controls (when Linear Gradient is selected):

Stroke (Border)

Bubble Shape

Shape Style Panel Detail *(Placeholder: Replace with actual screenshot of Shape Style Panel)*

Default Shape Values:


2. Typography Style Panel

This section controls the appearance of the text itself within the box.

Text Color

Text Stroke (Outline)

Add an outline/stroke around each character for better readability:

Font Selection

Text Formatting

Text Alignment

Click one of the three alignment buttons:

Font Size

Typography Style Panel Detail *(Placeholder: Replace with actual screenshot of Typography Style Panel)*

Default Text Values:


3. Presets

Presets allow you to save and quickly apply your favorite style combinations.

Presets store only the differences from the default style, making them efficient and portable.


4. How Styles Are Applied

Styles are applied in real-time as you adjust the controls. When you modify any setting:

  1. The change is immediately reflected in the UI controls
  2. The style_changed signal is emitted
  3. The selected text box updates its appearance automatically

There is no separate “Apply” button - changes take effect instantly.


5. Style Inheritance

When a new text box is created, it uses the following inheritance hierarchy:

  1. Project defaults - The application’s built-in defaults
  2. Preset application - If you apply a preset, those values override defaults
  3. Manual overrides - Any changes you make in the panel override both

The default style dictionary includes:

# Shape defaults
'bubble_type': 1              # Rounded Rectangle
'corner_radius': 50
'fill_type': 'solid'
'bg_color': '#ffffffff'       # White
'border_color': '#ff000000'   # Black
'border_width': 0             # No border

# Text defaults
'text_color_type': 'solid'
'text_color': '#ff000000'     # Black
'text_stroke_color': '#ffffffff'  # White
'text_stroke_width': 0
'font_family': 'Anime Ace'
'font_style': 'Regular'
'font_size': 22
'font_bold': False
'font_italic': False
'text_alignment': 1           # Center
'auto_font_size': True

Summary of Styling Options

CategoryOptionRange/ValuesDefault
FillTypeSolid, Linear GradientSolid
ColorAny colorWhite (#ffffffff)
Gradient ColorsStart, EndWhite to Light Gray
Midpoint0-100%50%
DirectionHorizontal, Vertical, 2 DiagonalsHorizontal (L>R)
BorderWidth0-99 pixels0
ColorAny colorBlack (#ff000000)
ShapeTypeRectangle, Rounded Rect, Ellipse, Speech BubbleRounded Rectangle
Radius0-10050
Text ColorTypeSolid, Linear GradientSolid
ColorAny colorBlack (#ff000000)
Text StrokeWidth0-10 pixels0
ColorAny colorWhite (#ffffffff)
FontFamilySystem + assets/fontsDefault/System
StylePer-font variantsRegular
Size6-200 points22
BoldToggleFalse
ItalicToggleFalse
Auto-sizeCheckboxTrue
AlignmentLeft/Center/RightButtonsCenter