Changeset 204152 in webkit


Ignore:
Timestamp:
Aug 4, 2016, 4:46:07 PM (9 years ago)
Author:
Matt Baker
Message:

Web Inspector: UI polish for Edit Breakpoint dialog
https://bugs.webkit.org/show_bug.cgi?id=160566
<rdar://problem/27706378>

Reviewed by Timothy Hatcher.

  • UserInterface/Images/BreakpointActionAdd.svg: Removed.
  • UserInterface/Images/BreakpointActionRemove.svg: Removed.

Use Plus13.svg and Minus.svg instead.

  • UserInterface/Views/BreakpointActionView.css:

(.breakpoint-action-button-container):
(.breakpoint-action-append-button,):
(.breakpoint-action-append-button):
(.breakpoint-action-remove-button):
Button styles should match Xcode.
(.breakpoint-action-append-button:active,): Deleted.
Brightness on activation no longer needed.

  • UserInterface/Views/BreakpointActionView.js:

(WebInspector.BreakpointActionView):
Add a button container so buttons can float together.

  • UserInterface/Views/BreakpointPopoverController.css:

(.wide .edit-breakpoint-popover-condition > .CodeMirror):
Increase condition field width by the same amount as the popover.

Location:
trunk/Source/WebInspectorUI
Files:
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r204136 r204152  
     12016-08-04  Matt Baker  <mattbaker@apple.com>
     2
     3        Web Inspector: UI polish for Edit Breakpoint dialog
     4        https://bugs.webkit.org/show_bug.cgi?id=160566
     5        <rdar://problem/27706378>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        * UserInterface/Images/BreakpointActionAdd.svg: Removed.
     10        * UserInterface/Images/BreakpointActionRemove.svg: Removed.
     11        Use Plus13.svg and Minus.svg instead.
     12
     13        * UserInterface/Views/BreakpointActionView.css:
     14        (.breakpoint-action-button-container):
     15        (.breakpoint-action-append-button,):
     16        (.breakpoint-action-append-button):
     17        (.breakpoint-action-remove-button):
     18        Button styles should match Xcode.
     19        (.breakpoint-action-append-button:active,): Deleted.
     20        Brightness on activation no longer needed.
     21
     22        * UserInterface/Views/BreakpointActionView.js:
     23        (WebInspector.BreakpointActionView):
     24        Add a button container so buttons can float together.
     25
     26        * UserInterface/Views/BreakpointPopoverController.css:
     27        (.wide .edit-breakpoint-popover-condition > .CodeMirror):
     28        Increase condition field width by the same amount as the popover.
     29
    1302016-08-04  Matt Baker  <mattbaker@apple.com>
    231
  • trunk/Source/WebInspectorUI/UserInterface/Views/BreakpointActionView.css

    r196404 r204152  
    2828}
    2929
     30.breakpoint-action-button-container {
     31    float: right;
     32}
     33
    3034.breakpoint-action-append-button,
    3135.breakpoint-action-remove-button {
    32     border: 1px solid hsl(0, 0%, 66%);
    33     border-radius: 10px;
    34     background-size: 16px 16px;
    3536    background-origin: border-box;
    36     width: 16px;
    37     height: 16px;
    38     float: right;
    39     margin-left: 2px;
     37    width: 13px;
     38    height: 13px;
     39    margin-left: 5px;
    4040    margin-top: 2px;
    41 }
    42 
    43 .breakpoint-action-append-button:active,
    44 .breakpoint-action-remove-button:active {
    45     filter: brightness(50%);
     41    background-color: transparent;
     42    border: none;
     43    opacity: 0.6;
    4644}
    4745
    4846.breakpoint-action-append-button {
    49     background-image: url(../Images/BreakpointActionAdd.svg), linear-gradient(to bottom, hsl(0, 0%, 98%), hsl(0, 0%, 78%));
     47    background-image: url(../Images/Plus13.svg);
    5048}
    5149
    5250.breakpoint-action-remove-button {
    53     background-image: url(../Images/BreakpointActionRemove.svg), linear-gradient(to bottom, hsl(0, 0%, 98%), hsl(0, 0%, 78%));
     51    background-image: url(../Images/Minus.svg);
    5452}
    5553
  • trunk/Source/WebInspectorUI/UserInterface/Views/BreakpointActionView.js

    r201620 r204152  
    5555        }
    5656
    57         var appendActionButton = header.appendChild(document.createElement("button"));
     57        let buttonContainerElement = header.appendChild(document.createElement("div"));
     58        buttonContainerElement.classList.add("breakpoint-action-button-container");
     59
     60        let appendActionButton = buttonContainerElement.appendChild(document.createElement("button"));
    5861        appendActionButton.className = "breakpoint-action-append-button";
    5962        appendActionButton.addEventListener("click", this._appendActionButtonClicked.bind(this));
    6063        appendActionButton.title = WebInspector.UIString("Add new breakpoint action after this action");
    6164
    62         var removeActionButton = header.appendChild(document.createElement("button"));
     65        let removeActionButton = buttonContainerElement.appendChild(document.createElement("button"));
    6366        removeActionButton.className = "breakpoint-action-remove-button";
    6467        removeActionButton.addEventListener("click", this._removeAction.bind(this));
  • trunk/Source/WebInspectorUI/UserInterface/Views/BreakpointPopoverController.css

    r196185 r204152  
    7171}
    7272
     73.wide .edit-breakpoint-popover-condition > .CodeMirror {
     74    width: 360px; /* NOTE: Fixed value, manually tuned to .edit-breakpoint-popover-content width. */
     75}
     76
    7377#edit-breakpoint-popover-ignore {
    7478    width: 40px;
Note: See TracChangeset for help on using the changeset viewer.