Tkinter-Designer icon indicating copy to clipboard operation
Tkinter-Designer copied to clipboard

Report bug: Color or thickness of the text does not match

Open tarokeitaro opened this issue 1 year ago • 1 comments

  • Briefly describe the bug First, please forgive me if my English is bad, I used deepl to translate the language. The build is not according to my design, like the color and bold of the writing nothing has changed

  • Operating System Fedora 37

  • What is the expected behavior? If in the design I make text with green color writing and bold text, then it should be green in color image

  • Please provide step by step instructions on how to reproduce the bug https://www.figma.com/file/bDoxirghKIWzStChgp2CnL/Untitled?type=design&mode=design&t=ttJ8EvMPFNC9VySb-1 image

tarokeitaro avatar Jun 29 '23 16:06 tarokeitaro

Hey @tarokeitaro!

To resolve the love heart emoji, I would find the emoji as an image (.png) and add to your project path instead I would just simply download an image and add to your /project path and add the image to your gui code (will need to install pillow)

As for the coloured text, I believe it's a common thing as I had the same issue. Only thing I'd recommend is adding in the text manually with the coloured text. With the example below, you can set the font, font size and if you want the text bold or not.

(Please note, I'm using customtkinter in this example, just change CTkLabel to Label)

self.gu_normal = CTkLabel(self.gui.right_frame, text="Test", font=("Lato-Regular", 24, 'bold'), text_color="#FFFFFF")
self.gui_coloured = CTkLabel(self.gui.right_frame, text="Testing", font=("Lato-Regular", 24, 'bold'), text_color="#4282FF")

Hope this helps :)

aellas avatar Jul 13 '23 18:07 aellas