Navigation Menu

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

setting top/bottom statusbar-padding individually doesn't work #1759

Open
The-Compiler opened this issue Aug 3, 2016 · 0 comments
Open

setting top/bottom statusbar-padding individually doesn't work #1759

The-Compiler opened this issue Aug 3, 2016 · 0 comments
Labels
component: ui Issues related to the user interface. priority: 2 - low Issues which are currently not very important.

Comments

@The-Compiler
Copy link
Member

From StatusBar:

    def minimumSizeHint(self):
        """Set the minimum height to the text height plus some padding."""
        padding = config.get('ui', 'statusbar-padding')
        width = super().minimumSizeHint().width()
        height = self.fontMetrics().height() + padding.top + padding.bottom
        return QSize(width, height)

We just add padding.top + padding.bottom there, so if they are different from each other, the bar will still be in the middle.

@The-Compiler The-Compiler added component: ui Issues related to the user interface. priority: 2 - low Issues which are currently not very important. labels Aug 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: ui Issues related to the user interface. priority: 2 - low Issues which are currently not very important.
Projects
None yet
Development

No branches or pull requests

1 participant