-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix alignment for IDR_THEME_TOOLBAR and IDR_THEME_FRAME.
This CL makes two changes: (1) It standardizes the logic from different views for painting the toolbar theme, tab theme, and frame theme. This ensures that the themes are painted consistently. The new logic is x-platform. Although it must be called in several platform-specific classes, the base calculations can now be shared. (2) It aligns the origin point for the toolbar theme, tab theme, and frame theme. This fixes some themes (which relies on this behavior) and breaks some themes (which rely on the behavior that the toolbar theme is aligned with the top painted pixel of the active tab). I made this choice for two reasons: (2a) This matches the pre-existing code level documentation. (2b) The themes that this breaks are generally relying on implementation details of chrome. For example, some themes rely on the shape of the tabs: flat upper side. Other themes rely on the exact DIP height of the current tab strip. Note that most themes are not affected by (2) since most themes use a repeating pixel for IDR_THEME_TOOLBAR. Theme with a gradient. Before CL on left, after CL on right: https://screenshot.googleplex.com/9yb84TXEK8YsdJH Theme with an image. Before CL on left, after CL on right: https://screenshot.googleplex.com/LViTJPTYLSfqhZe Change-Id: I9754769c078cbb606f15a1adfe844a634ce67a12 Bug: 1473538 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4809121 Reviewed-by: Avi Drissman <avi@chromium.org> Reviewed-by: David Pennington <dpenning@chromium.org> Commit-Queue: Erik Chen <erikchen@chromium.org> Cr-Commit-Position: refs/heads/main@{#1188116}
- Loading branch information
Showing
14 changed files
with
123 additions
and
62 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
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
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
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
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