Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

outline_color bug or something else? #456

Open
Pucksnok opened this issue Dec 13, 2023 · 2 comments
Open

outline_color bug or something else? #456

Pucksnok opened this issue Dec 13, 2023 · 2 comments

Comments

@Pucksnok
Copy link

Hello.
For now I use Ubuntu for my coding and I think I have stumbled upon a bug with outline_color. I runt latest dev, 0.57 with Python 3.10.

I use widget_styles and have tested the outline_color and outline_width, it works great in the same slide as long as I use the same "color:" for all my text.
As soon I change the regular font-color to something else (so I use two colors), both the font and outline_color gets the same color on the second one, it then go for the font-color for both.
If I use the same font color I can use any outline_color without issues. I have also tried with different fonts, removing font choice completely etc.

As an example:

(If I use the below code in the same slide, the widget_style attract_mode_high_score_display_label works properly, the text is white and have a black outline. attract_mode_high_score_display_name is set to give the font a black color and white outline, BOTH font and outline gets black. If I try any other font color, for example yellow both the font and color_outline gets yellow).

      - type: Text
        text: (machine|score1_label)
        style: attract_mode_high_score_display_label
        y: top-200   
      - type: Text
        text: (machine|score1_name)
        style: attract_mode_high_score_display_name
        y: top-200

widget_styles:
attract_mode_high_score_display_label:
font_size: 80
anchor_x: right
anchor_y: center
x: center-3100
font_name: arial
color: white
outline_color: black
outline_width: 2
attract_mode_high_score_display_name:
font_size: 70
anchor_x: right
anchor_y: center
x: center-2900
color: black
font_name: Impact
outline_color: white
outline_width: 2

@Pucksnok
Copy link
Author

20231213_235539.jpg

How the above code looks.

@Pucksnok
Copy link
Author

Tried this in a completely new setup. Same problem exist there, as soon the font colors differs in the same slide the the outline_color fails to set the color correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant