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

blender_stylesheet.qss need to be fixed #19

Closed
bobchenwenbo opened this issue Jun 29, 2022 · 5 comments
Closed

blender_stylesheet.qss need to be fixed #19

bobchenwenbo opened this issue Jun 29, 2022 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@bobchenwenbo
Copy link

image

@hannesdelbeke
Copy link
Collaborator

Thanks for reporting this.
Could you share some sample code to reproduce this?

@hannesdelbeke
Copy link
Collaborator

hannesdelbeke commented Sep 24, 2022

was able to repro with basic radio and check
image

from Qt import QtWidgets

class SampleTool(QtWidgets.QDialog):
    def __init__(self, parent=None):
        super(SampleTool, self).__init__(parent)
        layout = QtWidgets.QVBoxLayout()
        self.button = QtWidgets.QPushButton("Click me")
        layout.addWidget(self.button)
        self.setLayout(layout)
        self.radio_button_1 = QtWidgets.QRadioButton("radio button 1")
        self.radio_button_2 = QtWidgets.QRadioButton("radio button 2")
        layout.addWidget(self.radio_button_1)
        layout.addWidget(self.radio_button_2)
        self.checkbox = QtWidgets.QCheckBox("checkbox")
        layout.addWidget(self.checkbox)
        

def show():
    main_window = QtWidgets.QApplication.instance().blender_widget
    widget = SampleTool(main_window)
    widget.show()

@hannesdelbeke
Copy link
Collaborator

believe this likely is the relative image path in the qss

QRadioButton::indicator:checked {
    image: url(../../startup/bqt/images/QRadioButton_checked.png);
}

likely will also affect QSpinBox::down-arrow, QSpinBox::up-arrow:hover, QComboBox::down-arrow

@hannesdelbeke
Copy link
Collaborator

@JeffHanna mentioned in #10 to not put stylesheets in startup, this likely was not updated during that refactor.

after removing those lines in the stylesheet the buttons show up again.

@hannesdelbeke hannesdelbeke added bug Something isn't working help wanted Extra attention is needed labels Sep 24, 2022
@hannesdelbeke
Copy link
Collaborator

This has been fixed and merged in main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants