GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||
GeezerVison is showing github.com — HiDPI on all platforms by sandman7920 · Pull Request #2485 · sqlitebrowser/sqlitebrowser Conversation
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
lucydodo
removed their request for review
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
lucydodo
reviewed
Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
What's the state of this pull request? I tried to test it and I have a problem with it in my system. It seems to eat up all the available memory and never shows up. It shows these warnings: Regarding the licensing of the icon set, the current set is "Creative Commons Attribution" and the new one is "Creative Commons Attribution NonCommercial Share Alike", which is more restrictive, although still usable. I'm not sure about the consequences, so I just mention it here. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Oh, that's an important point! Personally, at first thought I don't think that change would have any real consequences for us. We're not a commercial project in any real sense (even with Patreon and similar). But we definitely can email the icon set author to ask, just to be sure. 😄 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@mgrojo I compiled my SVG branch again on Windows and Linux with Qt 5.15 and everything looks fine. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
On a related point, we're looking to get a HiDPI monitor for testing: #2570 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@MKleusberg What should be done with this PR? 😄 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Actually you really don't need a hidpi monitor for testing. (other than the program otherwise maybe not fitting on the monitor) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I've compiled again, and it runs without problems now, I don't know if it was an incorrect build or that the problem was before updating to Ubuntu 20.4. I've used the environment variable, and it seems to work, although I don't know where I should pay attention. In any case, I'm still concerned about the licensing issue. The icon-set license seems more restricted than ours, and the author requires a donation to get the SVG icons, and even then, they ask that you don't redistribute the whole icon set as SVG. Are we going to pay to get future icons? @sandman7920, have you paid to develop this PR? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@mgrojo Yes I have paid, also I can provide full iconset. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Is the license you're both talking about, the one here? If so, it says (at this time anyway): We can do the donation thing there too if it's useful. Our Patreon account generates reasonable funding for things like that. 😄 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yes, but it's also this:
Ok, then why not? It's better to have all the blessings if it's reasonable. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Cool. Done. 😄 @codefisher Hopefully that's helpful. 😄 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Please merge this sooner, if you can. Current set of icons makes the experience of using DB Browser on a hi-DPI screen quite unpleasant. You don't need to pay for that specific iconset, any SVG iconset will be a great improvement over the current low-res one. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ok, let's merge this now. In fact, we've already made a donation to the author, so there is no doubt about the rights. If someone provides a valid alternative icon-set, we can analyse that proposal then, but after some searching I was unable to find a vectorial icon-set as good and publicly available as the original Silk icon-set. Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
There is some strange bug on windows with the system styles (windows and windowsvista). void TableBrowserDock::setFocusStyle(bool on) { // Highlight title bar when dock widget is active if(on) setStyleSheet("QDockWidget::title {background:palette(highlight);}"); else setStyleSheet(QString()); } I have created a new series of patches with a workaround for windows and some other tweaks. Linux has no such issue. Mac and Windows 7 are not tested. @mgrojo should I make a new PR or more testing is needed? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Is the active docked tab highlighted over the inactive ones?
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I have tested Windows 7 and Linux with If QProxyStyle is used and QDockWidget has a custom stylesheet on the title element bug exists. void TableBrowserDock::setFocusStyle(bool on) { // Highlight title bar when dock widget is active if(on) setStyleSheet("QDockWidget::title {background:palette(highlight);}"); else setStyleSheet(QString()); } workaround class DB4SProxyStyle final : public QProxyStyle { public: DB4SProxyStyle(int toolBarIconSize, qreal dpi, QStyle *style) : QProxyStyle(style), m_toolBarIconSize(toolBarIconSize * dpi / 96) { #ifdef Q_OS_WIN m_smallIconSize = 11 * dpi / 96; // WINDOWS THEME BUG QStyleOption so(QStyleOption::Version, QStyleOption::SO_MenuItem); m_menuItemIconSize = style->pixelMetric(PM_SmallIconSize, &so); #endif } int pixelMetric(QStyle::PixelMetric metric, const QStyleOption *option = nullptr, const QWidget *widget = nullptr) const override { if (metric == PM_ToolBarIconSize) { return m_toolBarIconSize; } #ifdef Q_OS_WIN else if (metric == PM_SmallIconSize) { // set maximum icon size for SmallIcon // Set default MenuIcon size if (option && option->type == QStyleOption::SO_MenuItem) { return m_menuItemIconSize; } // if we don't return size before QDockWidgets are created, // any of the widgets with custom stylesheet are rendered with huge float,close buttons // see void TableBrowserDock::setFocusStyle return m_smallIconSize; } #endif return QProxyStyle::pixelMetric(metric, option, widget); } private: int m_toolBarIconSize; #ifdef Q_OS_WIN int m_menuItemIconSize; int m_smallIconSize; #endif }; Also, in new patches toolBarIconSize calculation is based on screen->logicalDotsPerInch() |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
New QDockWidget::style void TableBrowserDock::setFocusStyle(bool on) { // Highlight title bar when dock widget is active if(on) setStyleSheet(QStringLiteral( "QDockWidget::title {" "background:palette(AlternateBase);" "text-align: center;" "border-bottom: 2px solid palette(highlight);" "}")); else setStyleSheet(QStringLiteral( "QDockWidget::title {" "text-align: center;" "}")); } |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yes it's highlighted |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Workaround for WindowsVista style (qwindowsvistastyle plugin) There is some strange bug on windows with the system styles (windows and windowsvista). When styleproxy is used and QDockWidget has a custom stylesheet applied to the widget title, close-button and float-button are rendered huge. See #2485
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.