-
-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor drawing logic and draw unsaved document page indicator
- Introduce `ImageRect` and `UsavedRect`; - Calculate rectangles once in `CalculateTab` (except for `closeForegroundRect` which is calculated while drawing it); - Restructure calculations element by element; - Each of the element has valid location and size (even though it can be empty); - (Hopefully) simplify calculations by using `PointF` and `RectangleF` methods; - Simplify drawing of the close button.
- Loading branch information
1 parent
44b1ac3
commit 144e2b8
Showing
3 changed files
with
46 additions
and
33 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
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