Changeset 287870 in webkit
- Timestamp:
- Jan 10, 2022, 11:27:23 PM (5 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
UserInterface/Images/AlignContentStretch.svg (modified) (1 diff)
-
UserInterface/Views/AlignmentEditor.css (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r287848 r287870 1 2022-01-10 Nikita Vasilyev <nvasilyev@apple.com> 2 3 Web Inspector: Increase padding around icons in Alignment editor 4 https://bugs.webkit.org/show_bug.cgi?id=234036 5 <rdar://problem/86543279> 6 7 Reviewed by Devin Rousso. 8 9 Increase margin and padding around the icons, making the icons more visually appealing 10 and easier to distinguish and from each other. 11 12 * UserInterface/Images/AlignContentStretch.svg: 13 The gap between rectangles was only 0.5px. Increase it to 2px. 14 15 * UserInterface/Views/AlignmentEditor.css: 16 (.alignment-editor .glyph): 17 (.alignment-editor .glyph:not(:first-child)): 18 (.alignment-editor .glyph.selected): 19 (.alignment-editor .glyph.selected:active): 20 (.alignment-editor .glyph:not(:last-child)): Deleted. 21 (.alignment-editor .glyph.selected + .glyph): Deleted. 22 1 23 2022-01-10 Alex Christensen <achristensen@webkit.org> 2 24 -
trunk/Source/WebInspectorUI/UserInterface/Images/AlignContentStretch.svg
r286875 r287870 1 1 <!-- Copyright © 2021 Apple Inc. All rights reserved. --> 2 2 <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" id="root"> 3 <rect x="2" y="1" width="12" height="6 .5" fill="currentColor"/>4 <rect x="2" y=" 8" width="12" height="6.5" fill="currentColor"/>3 <rect x="2" y="1" width="12" height="6" fill="currentColor"/> 4 <rect x="2" y="9" width="12" height="6" fill="currentColor"/> 5 5 </svg> -
trunk/Source/WebInspectorUI/UserInterface/Views/AlignmentEditor.css
r286885 r287870 28 28 width: 16px; 29 29 height: 16px; 30 padding: 2px; 30 31 background-color: var(--background-color-content); 31 32 box-sizing: content-box; … … 34 35 } 35 36 36 .alignment-editor .glyph:not(: last-child) {37 border-inline-end-width: 0;37 .alignment-editor .glyph:not(:first-child) { 38 margin-inline-start: 2px; 38 39 } 39 40 … … 43 44 44 45 .alignment-editor .glyph.selected { 45 color: var(--glyph-color-active);46 background-color: var(--glyph-color-active); 46 47 border-color: var(--glyph-color-active); 47 } 48 49 .alignment-editor .glyph.selected + .glyph { 50 border-inline-start-color: var(--glyph-color-active); 48 color: var(--selected-foreground-color); 51 49 } 52 50 53 51 .alignment-editor .glyph.selected:active { 54 color: var(--glyph-color-active-pressed);55 outline-color: var(--glyph-color-active-pressed);52 background-color: var(--glyph-color-active-pressed); 53 border-color: var(--glyph-color-active-pressed); 56 54 } 57 55
Note:
See TracChangeset
for help on using the changeset viewer.