Skip to main content

A line under the text fields

3 minute read

The Edit profile screen of BeeBEEP in the light theme, three times: with the Fluent style on the left each text field has a dark line under it, with Fusion in the middle and Windows on the right a thin border all round

Sometimes the difficulty is in the small things. In BeeBEEP the small things to check are a great many: five platforms, light and dark theme, phone and desktop, many languages, accessibility, and even the style of the controls, which changes from one platform to another. This is the story of one of them, a thin line under the text fields on Windows. It is the one you can see in the picture above, on the left.

A style for each platform

BeeBEEP 6 asks Qt for a different style of controls on each platform, to look at home on each of them: Material on Android, the iOS style on iPhone and iPad, FluentWinUI3 on Windows, Fusion on Linux and macOS (the native style of macOS, Qt says itself, does not lend itself to being customized).

The line under the field

On 6 October I noticed on Windows a dark line under every text field, and I wondered whether it had appeared recently. It had not: it is how Windows 11 draws them. Fluent reproduces it with a dark line of 1 pixel at the bottom, already inside the image of the field, and when the field has the focus a line of 2 pixels in the accent color is added.

Before deciding anything we wanted to see the alternatives. So we built the same app three times, changing a single line: the style asked to Qt, FluentWinUI3, Fusion or Windows (the classic one). The same six screens were photographed in the light and in the dark theme, on a virtual machine with Windows 11, opened from BeeBEEP's console rather than with clicks at fixed coordinates. In the pictures Fluent is on the left, Fusion in the middle, Windows on the right.

The Find or add users screen of BeeBEEP in the light theme, three times: with the Fluent style on the left, Fusion in the middle, Windows on the right
Find or add users, light theme: Fluent, Fusion and Windows, from left to right.

What the pixels say, for the "First name" field in the light theme:

  • Fluent: a field 30 pixels high, comfortable to touch, the look of Windows 11, modern switches. It has the dark line at the bottom.
  • Fusion: 24 pixels, a thin and even border all round, clean in both themes, but lower, with a smaller text, and square switches.
  • Windows, the classic style: 20 pixels, a flat border of 1 pixel. In the dark theme the "back" button has a dark square behind it, and in the network settings the password field comes out cut on the right.

BeeBEEP is born phone first, and a field must be easy to touch: the height counts as much as the look.

What the dark theme showed

Then the pictures of the dark theme. With Fluent the text fields were light gray with gray text, hard to read.

The Edit profile screen of BeeBEEP in the dark theme, three times: with the Fluent style on the left the text fields are light gray, with Fusion in the middle and Windows on the right they are dark
Edit profile, dark theme: with Fluent the text fields are light gray, with Fusion and Windows they stay dark.

The reason is small and precise. Fluent chooses its light or dark images by looking at the theme of Windows, which on the test machine was light, while BeeBEEP has a switch of its own: light, dark or as the system. Dark theme in the app and light Windows, and the light text of our theme ends up on the light field of Fluent. With Fusion and with the Windows style it does not happen.

The Find or add users screen of BeeBEEP in the dark theme, three times: with the Fluent style on the left the text fields are light gray, with Fusion in the middle and Windows on the right they are dark
Find or add users, dark theme: the light fields of Fluent again.

We have recorded it as a defect, and nobody is to blame for it: it is one more of the small things. Luckily, a solution is always found, and usually it too is a small thing.