forked from eclipse-platform/eclipse.platform.swt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calculate chevron size in CTabFolderRenderer without Device#getDPI()
The chevron font size is currently determined using Device#getDPI(). This value is static across the application lifecyle, always returns the DPI for the primary monitor at application startup. The font does thus not adapt properly to other zoom values. This change replaces the logic to calculate the chevron font size to use a scaled version of the font used for CTabItem. It also adds a listener for the zoom change event to trigger redraw.
- Loading branch information
1 parent
88d5b53
commit 6d374d9
Showing
2 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters