12. Themes and Scalable Graphics

HammerDB v5.0 onwards includes an updated graphical interface that adapts to scale to UHD displays such as Microsoft pixelsense displays. The default behaviour of the display is set in the theme section of generic.xml.

<theme>
<scaletheme>dark</scaletheme>
<pixelsperpoint>auto</pixelsperpoint>
</theme>

By default scaling, the scaletheme and pixelsperpoint are all set to auto. This means that HammerDB will detect the display settings and scale the interface accordingly. For example the image shows fixed and scaling versions of HammerDB on the same UHD display.

Figure 1.26. Scaling Graphics

Scaling Graphics

The scaletheme value will accept settings of "dark" or "light". The same "Breeze" theme used on both Linux and Windows as the base for both colors.

Figure 1.27. Dark Breeze Theme

Dark Breeze Theme

Figure 1.28. Light Breeze Theme

Light Breeze Theme

To change the theme color, select Switch Theme from the edit menu, click OK and restart HammerDB, the theme will be switched between the two options.

Figure 1.29. Switch Theme

Switch Theme

The scale factor can be fine-tuned by setting the pixelsperpoint value. By running the command puts [ tk scaling ] in the console you can determine the current value. By setting this value slightly larger or smaller than the default you can adjust the scaling to your system. This value is not intended for large scale changes from the default as settings have been adjusted to the detected value.

(HammerDB-4.0) 49 % puts [ tk scaling ]
1.3333333333333333