⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 287870 in webkit


Ignore:
Timestamp:
Jan 10, 2022, 11:27:23 PM (5 years ago)
Author:
Nikita Vasilyev
Message:

Web Inspector: Increase padding around icons in Alignment editor
https://bugs.webkit.org/show_bug.cgi?id=234036
<rdar://problem/86543279>

Reviewed by Devin Rousso.

Increase margin and padding around the icons, making the icons more visually appealing
and easier to distinguish and from each other.

  • UserInterface/Images/AlignContentStretch.svg:

The gap between rectangles was only 0.5px. Increase it to 2px.

  • UserInterface/Views/AlignmentEditor.css:

(.alignment-editor .glyph):
(.alignment-editor .glyph:not(:first-child)):
(.alignment-editor .glyph.selected):
(.alignment-editor .glyph.selected:active):
(.alignment-editor .glyph:not(:last-child)): Deleted.
(.alignment-editor .glyph.selected + .glyph): Deleted.

Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r287848 r287870  
     12022-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
    1232022-01-10  Alex Christensen  <achristensen@webkit.org>
    224
  • trunk/Source/WebInspectorUI/UserInterface/Images/AlignContentStretch.svg

    r286875 r287870  
    11<!-- Copyright © 2021 Apple Inc. All rights reserved. -->
    22<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"/>
    55</svg>
  • trunk/Source/WebInspectorUI/UserInterface/Views/AlignmentEditor.css

    r286885 r287870  
    2828    width: 16px;
    2929    height: 16px;
     30    padding: 2px;
    3031    background-color: var(--background-color-content);
    3132    box-sizing: content-box;
     
    3435}
    3536
    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;
    3839}
    3940
     
    4344
    4445.alignment-editor .glyph.selected {
    45     color: var(--glyph-color-active);
     46    background-color: var(--glyph-color-active);
    4647    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);
    5149}
    5250
    5351.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);
    5654}
    5755
Note: See TracChangeset for help on using the changeset viewer.