From kde-devel Fri Dec 24 14:02:58 2021 From: =?UTF-8?B?TcOpdmVu?= Date: Fri, 24 Dec 2021 14:02:58 +0000 To: kde-devel Subject: Re: blurrish toolbar icons and unified title and toolbar on macOs Message-Id: X-MARC-Message: https://marc.info/?l=kde-devel&m=164035456215906 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--000000000000a4c61705d3e4d0fd" --000000000000a4c61705d3e4d0fd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Naively, this seems to me like due to fractional scaling. The application or part of it could have a ceiled version of the actual scale, the same way wayland protocol has the issue. > somewhere in KMainWindow so all KDE applications benefit from it automatically and have a similar look? It seems to me like a good idea. Le ven. 24 d=C3=A9c. 2021 =C3=A0 10:48, Alexander Semke a =C3=A9crit : > Hi all, > > we've got a problem reported where a macOs user complained about blurrish > icons and texts in the main toolbar on his iMac 27" 5K. The problem is al= so > reproducible for other 4K monitors and for macbook's Retina displays. > > I did a screenshot of LabPlot, Kate and Numbers: > https://imgur.com/a/IR0iVNj > > Here, crystal clear icons and texts in Kate and very blurrish in LabPlot. > In > both applications > > QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); > QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); > > are set. What else are we missing in LabPlot? Does somebody has a hint > here? > > > Also, while looking into this issue I became aware of > QMainWindow::setUnifiedTitleAndToolbarOnMac(). When setting it to 'true' > the > toolbar merges together with the window title bar which seems to be the > standard on mac. On the screenshot above I set it to 'true' in LabPlot an= d > it's similar to "Numbers" now. Kate and Dolphin on mac don't seem to set > this > property, I didn't check any other applications. > > Should we add something like > > #ifdef Q_OS_MAC > setUnifiedTitleAndToolbarOnMac(true); > #endif > > somewhere in KMainWindow so all KDE applications benefit from it > automatically > and have a similar look? > > > Regards, > Alexander > > > > --=20 M=C3=A9ven --000000000000a4c61705d3e4d0fd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Naively, this seems to me like due to fractional scal= ing.
The application or part of it could have a ceiled version of= the actual scale, the same way wayland protocol has the issue.
<= br>
>=20 somewhere in KMainWindow so all KDE applications benefit from it automatica= lly
and have a similar look?

It seems to me like a goo= d idea.

Le=C2=A0ven. 24 d=C3=A9c. 2021 =C3=A0=C2=A010:48, Alexande= r Semke <alexander.semke@web.d= e> a =C3=A9crit=C2=A0:
Hi all,

we've got a problem reported where a macOs user complained about blurri= sh
icons and texts in the main toolbar on his iMac 27" 5K. The problem is= also
reproducible for other 4K monitors and for macbook's Retina displays.
I did a screenshot of LabPlot, Kate and Numbers:
https://imgur.com/a/IR0iVNj

Here, crystal clear icons and texts in Kate and very blurrish in LabPlot. I= n
both applications

QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);

are set. What else are we missing in LabPlot? Does somebody has a hint here= ?


Also, while looking into this issue I became aware of
QMainWindow::setUnifiedTitleAndToolbarOnMac(). When setting it to 'true= ' the
toolbar merges together with the window title bar which seems to be the
standard on mac. On the screenshot above I set it to 'true' in LabP= lot and
it's similar to "Numbers" now. Kate and Dolphin on mac don= 9;t seem to set this
property, I didn't check any other applications.

Should we add something like

#ifdef Q_OS_MAC
setUnifiedTitleAndToolbarOnMac(true);
#endif

somewhere in KMainWindow so all KDE applications benefit from it automatica= lly
and have a similar look?


Regards,
Alexander





--
M=C3=A9ven
--000000000000a4c61705d3e4d0fd--