Dark mode or dark theme and/or system theme support #195
Replies: 9 comments 2 replies
-
Hello @magicBeast, thanks for trying pygubu. In the mean time, I can make some changes to make pygubu-designer look nice with some tkinter dark themes.
Regards |
Beta Was this translation helpful? Give feedback.
-
Apologies, it didn't like me pasting the xml ui file in here, for obvious reasons :-) |
Beta Was this translation helpful? Give feedback.
-
Hello @magicBeast. About your customtkinter issues. I have created a new release of pygubu and pygubu-designer fixing some glitches with customtkinter, please install the latest version. To remove the extra window that you are viewing, use a customtkinter.CTk widget as your main window. I have re-created the basic examples here. Remember to install also the latest customtkinter version, because is the only version supported by the plugin. If you have more problems, feel free to create a new issue or discussion, so the topics don't get mixed up. |
Beta Was this translation helpful? Give feedback.
-
About Dark mode, the latest pygubu-designer version adds support for some dark themes if they are installed. Option 1 - SunValley themes
Start pygubu-designer and go to Edit > Preferences > General > Preferred ttk theme, select "sun-valley-dark". Option2 - ttkbootstrap themes
Start pygubu-designer and go to Edit > Preferences > General > Preferred ttk theme, select "cyborg" or "darkly" Try them and let me know. |
Beta Was this translation helpful? Give feedback.
-
I just can't get it to run at all now. I get this error: I removed the latest python (3.11) and did a fresh install, and installed the latest versions of customtkinter, pygubu, pygubu-designer, and sk-tkk using pip, as show here: I tried earlier to pull all of the packages from the latest commits directly from the github repos, just in-case any of the pypi versions weren't caught up yet, but that gave the same error :-( |
Beta Was this translation helpful? Give feedback.
-
Aha - that fixed it, thanks. Dark theme installed and working! I'll try out those examples for building a customtkinter only app tomorrow :-) |
Beta Was this translation helpful? Give feedback.
-
Hi Alejandro. I looked at those examples, but they are just on how to use customertkinter. I've already built several apps by hand and they work fine. My issue is when using pygubu-designer to graphically create an app. For example, if I want to create a simple demo app using normal ttk widgets, I can, under ttk, click Toplevel, click Frame, set it to grid, click button, preview it, and it works fine. Save out the .ui file, create some app code, then run it directly outside of pygubu-designer and it works fine, with a single window. |
Beta Was this translation helpful? Give feedback.
-
As all of my other apps run in dark mode, NOT having a dark mode/theme in an app is pretty bad, as it means getting one's retina's burnt out when using pygubu-designer :-) Please add a dark mode 🙏
Beta Was this translation helpful? Give feedback.
All reactions