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

Replace the widgets' default title bar with a custom one #47

Open
matzman666 opened this issue Jan 25, 2016 · 2 comments
Open

Replace the widgets' default title bar with a custom one #47

matzman666 opened this issue Jan 25, 2016 · 2 comments

Comments

@matzman666
Copy link
Owner

As the title says this is about replacing the default title bar (the bar that holds the widget's name and the close/undock buttons). The advantage is that there are no more native window decorations for floating widgets. And we could add a fullscreen button for widgets to the other buttons (according to the internet fullscreen for floating widgets works on Windows, but that is still unconfirmed. Even if it doesn't work, we could implement a "borderless windowed fullscreen mode").

The disadvantage is that Qt is like: You want to have access to the default title bar? Fuck you, I won't give you access. When you want to have a custom title bar, implement your own from scratch. And by the way, you will break your style sheets if you do so.

@killeand
Copy link
Contributor

Aside from them making it difficult for people to implement a custom bar, are there going to be any problems creating the existing button functionalities?

And while it spits in the face of the programming idiom, "Don't reinvent the wheel," is it possible to just get the desktop size and force the floating widget to be the same size (with possible adjustments for title bar, border, etc...)? Why bother with methods that may or may not work depending on the platform.

@matzman666
Copy link
Owner Author

I haven't found any other problems yet, but we may encounter more when we implement it.

The problem is that floating widgets have a border around them, which does not adhere to the current selected style. When I select a dark theme then because I don't want to be distracted by bright colors, but the widget border is very distracting. And unfortunately Windows does not allow to resize the widget and move it partially out of the viewport so that you don't see the border (that's the reason borderless window modes exist in games). Also I cannot adjust the border, only remove it. And to remove it I have to re-do the title bar from scratch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants