Am I doing something wrong, or is there a bug in the button theme (disabled buttons vs light theme)?
See original GitHub issueIn light themes the disabled buttons are ‘invisible’. ttkbootstrap 1.3.1
I’m starting the app with this setting:
self.admin_search_next = ttk.Button(self.frm, image=self.img_next, command=self.admin_next_row)
self.admin_search_next.pack(side=RIGHT, padx=1)
self.admin_search_next.configure(state='disabled')
https://www.mediafire.com/file/w33t3rzfdn318wa/disabled_buttons_no_contrast.mp4/file see the video, in dark themes there is a contrast of colors between the normal and disabled buttons. But in light themes there could be this contrast as well. Mainly on buttons without text that have a white image.
disabled buttons - light theme – invisible, mostly buttons just white images.
default buttons - light theme – OK
disabled buttons - dark theme – OK
default buttons - dark theme – OK
Am I doing something wrong?
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
[Bug] Disabled buttons are almost invisible with light theme
Steps to reproduce Create a v-btn and set its disabled prop to true. The button text is almost invisible when using light theme....
Read more >Frustrating Design Patterns: Disabled Buttons
Admittedly, there might be very good reasons for making buttons disabled by default. After all, as designers and developers, we want to make...
Read more >Why You Shouldn't Gray Out Disabled Buttons - UX Movement
How should disabled buttons appear when they're inactive? The way most designers indicate an inactive state is by graying out the button.
Read more >How should I indicate that a button or input is disabled in a ...
Disabled buttons are usually a play on contrast/opacity. Here is MUI light theme: A light theme showing buttons in various states. And here ......
Read more >Why doesn't setEnabled(false) trigger a ColorStateList for ...
I am trying to use setEnabled(false) on a Button to show grey disabled state... (even then, only the button background changes, the text...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
alternatively, if I stick with the grayish disabled color, using a 12% transparency on the fg color and a 38% transparency on the background color gives me this result for dark and light themes.
I’ve found that the ‘colored’ disabled doesn’t translate well to all the widgets. So perhaps a simple gray-ish color will work? Not decided yet.
It has improved a lot. Thanks