Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tab-slider: Support Icon+Label button in TabSlider
Create a new class IconLabelTabSliderButton. Use the new Icon + Label buttons in the vc bubble. In TabSlider: The VC Controls spec requests that TabSlider gives extra space to child buttons evenly, so support this. Convert from BoxLayout to TableLayout to allow this, and do some refactoring to further support TableLayout. https://screenshot.googleplex.com/BfeyHcPS8HYCPBq.png NOTE: Currently box BoxLayout and FlexLayout distribute space in proportion to the views preferred size. This won't work for VC controls because this means a button with lots of text will get more space than a smaller button when there is extra space. The option to "justify" or spread space evenly has been a requested feature for BoxLayout and FlexLayout for years, but only TableLayout supports this. Bug: b:254513459 Change-Id: I06ac8bf2fd78cf8016a0e5152e7ed2bd5a7a96b3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4192351 Commit-Queue: Alex Newcomer <newcomer@chromium.org> Reviewed-by: Xiaodan Zhu <zxdan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1097553}
- Loading branch information
Alex Newcomer
authored and
Chromium LUCI CQ
committed
Jan 26, 2023
1 parent
30a0b23
commit 109925d
Showing
10 changed files
with
266 additions
and
96 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
Oops, something went wrong.