-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Information icon in File Switcher is not themed under the dark theme #9442
Comments
@CAM-Gerlach could you tell me which widget is that button? Mays is something with qdarkstyle, maybe not. Tks Show me the code if possible. tks. |
@dpizetta Thanks. The issue is with Spyder, by all appearances, but it should be pretty straightforward for them to resolve once they get to it. In class HelperToolButton(QToolButton):
"""Subclasses QToolButton, to provide a simple tooltip on mousedown.
"""
def __init__(self):
QToolButton.__init__(self)
self.setIcon(get_std_icon('MessageBoxInformation'))
style = """
QToolButton {
border: 1px solid grey;
padding:0px;
border-radius: 2px;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #f6f7fa, stop: 1 #dadbde);
}
"""
self.setStyleSheet(style) |
Tks. The style is hardcoded. Try to remove this, then it will use the qtoolbutton style. If any problem still there, let me know.
|
Thanks @dpizetta , I'm sure the Spyder team will appreciate your help. |
@dpizetta, thanks a lot for your help with this one! @juanis2112, please take a look at this issue, following @dpizetta's advice. The idea is that the icon uses |
Issue Report Checklist
Originally discussed on #8068 .
Under the dark theme, the "information" icon in the file switcher is still not themed, as seen in #8616 .
Versions
master
Dependencies
The text was updated successfully, but these errors were encountered: