dsa-t

Results 141 comments of dsa-t

> this looks worse than the current appearance under MSW You're right. wxBORDER_THEME (wxBORDER_DOUBLE) seems too thick on wxQt.

It calls `wxSystemSettingsNative::GetMetric(wxSYS_EDGE_Y)` -> 2 `wxSystemSettingsNative::GetMetric(wxSYS_BORDER_Y)` -> 2 So the size increases by (2+2)*2 = 8.

Now, trying to implement `wxBORDER_THEME` in wxQt, in `wxSearchCtrl::Create` I'm calling: ```cpp #include ... m_qtWindow->setStyleSheet("border: 1px solid blue; background: cyan"); ``` But it only changes the editable field: ![Screenshot_2024-02-18_07-50-05](https://github.com/wxWidgets/wxWidgets/assets/37658952/5266930f-5160-4730-b766-9374182d6bf3) Not...

Here's how it looks now on wxQt: ![image](https://github.com/wxWidgets/wxWidgets/assets/37658952/e1f8f27f-ae9a-4f42-b30e-35150c7b76a0) The total height matches normal textfield/combobox/button sizes.

At 200 dpi, borders and check/radiobuttons do not become bigger on wxQt with default style or other system apps. But they are scaled in Qt5 example. gtk2 (default) style: ![Screenshot_2024-02-18_18-45-41](https://github.com/wxWidgets/wxWidgets/assets/37658952/41f9a8c8-5f66-4e65-9a12-c61ff5d8bc64)...

The scaling on gtk2 can be enabled by setting env var `QT_AUTO_SCREEN_SCALE_FACTOR=1` ![Screenshot_2024-02-18_19-04-22](https://github.com/wxWidgets/wxWidgets/assets/37658952/6992ec74-625b-4111-a9fc-e24f0141013d) ![Screenshot_2024-02-18_19-05-16](https://github.com/wxWidgets/wxWidgets/assets/37658952/45fa2dd2-86da-43d9-b97e-b97e37713790) x2 scaling starts at 144 dpi

> whether creating a 100x100 window at 200% scaling creates a window 100 or 200 physical pixels wide/high? That gives 200 physical pixels when `QT_AUTO_SCREEN_SCALE_FACTOR=1`, otherwise 100, it looks like....

I haven't checked how it renders on Windows.

Looks fine on MSW: ![msw](https://github.com/wxWidgets/wxWidgets/assets/37658952/8908c9fb-6c59-4fdb-bb79-9e1053a980bc)

> Why is this necessary? To be inline with other Graphics APIs which limit the radius internally.