Skip to content

don't use self.setStyleSheet(qdarkstyle.load_stylesheet_pyqt5()) in the gui-instruments #19

Closed

Description

@heli2src

If you use the colors from qdarkstyle, Spyder's global settings will be overwritten.
As a result, certain buttons or text are difficult to read or unrecognizable

Activity

  1. added theissue type on Oct 5, 2026
  2. heli2src commented on Oct 30, 2026

    @heli2src
    ContributorAuthor

    in the class button the stylesheet is hard-coded. This needs to be made dependent on the parent stylesheet:
    class Button(QtWidgets.QToolButton):
    """
    Buttons with Menu and Icon for Lab Gui
    """

    sytle_button = {'disabled': "color: rgb(128, 128, 128);",
                    'crash': "color: rgb(255, 64, 64);",
                    'instance_ok': "color: rgb(240, 240, 240);",
                    'available': "color: rgb(64, 164, 64);",
                    'connect': "color: rgb(64, 164, 64);",
                    'disconnect': "color: rgb(255, 64, 64);",
                    }
    
  3. Zlin526F commented on Nov 4, 2026

    @Zlin526F
    Member

    done with #27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

invalidThis doesn't seem right

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions