Skip to content

Check and fix magic numbers in Tree & Table #404

@akoch-yatta

Description

@akoch-yatta

Description
One examples where you see an effect is the indentation in Tree after the leading Image seems to be smaller in higher zoom levels as expected. Reason is probably the static variable Tree#INDENT is used with pixel calculations at some places without being upscaled. As in Table and Tree are multiple magic static numbers, scope of this ticket is to check chose and scale them up where necessary:

Tree
Image

Table
Image

Reproduction
Just open a Package Explorer and you will see that the relation between image and text will get smaller - hard to see on the screenshots, but for completeness:
100%
Image
200%
Image

Expected Behavior
The magic numbers should always be stored in points and scaled up to pixels where necessary

Necessary configuration:

Additional knowledge

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    HiDPIA HiDPI-Related Issue or FeatureSWTIssue for SWT

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions