Changeset 212657 in webkit


Ignore:
Timestamp:
Feb 20, 2017 10:22:56 AM (7 years ago)
Author:
BJ Burg
Message:

Web Inspector: RTL: sidebar expand/collapse icons need to be flipped
https://bugs.webkit.org/show_bug.cgi?id=168276
<rdar://problem/30506999>

Reviewed by Matt Baker.

The sidebars themselves are already flipped due to the layout direction change, but the
icons have a directional design and need to be manually flipped based on the layout direction.

  • UserInterface/Views/ContentBrowserTabContentView.js:

(WebInspector.ContentBrowserTabContentView):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r212603 r212657  
     12017-02-20  Brian Burg  <bburg@apple.com>
     2
     3        Web Inspector: RTL: sidebar expand/collapse icons need to be flipped
     4        https://bugs.webkit.org/show_bug.cgi?id=168276
     5        <rdar://problem/30506999>
     6
     7        Reviewed by Matt Baker.
     8
     9        The sidebars themselves are already flipped due to the layout direction change, but the
     10        icons have a directional design and need to be manually flipped based on the layout direction.
     11
     12        * UserInterface/Views/ContentBrowserTabContentView.js:
     13        (WebInspector.ContentBrowserTabContentView):
     14
    1152017-02-17  Nikita Vasilyev  <nvasilyev@apple.com>
    216
  • trunk/Source/WebInspectorUI/UserInterface/Views/ContentBrowserTabContentView.js

    r212171 r212657  
    5151
    5252        if (navigationSidebarPanel) {
    53             var showToolTip = WebInspector.UIString("Show the navigation sidebar (%s)").format(WebInspector.navigationSidebarKeyboardShortcut.displayName);
    54             var hideToolTip = WebInspector.UIString("Hide the navigation sidebar (%s)").format(WebInspector.navigationSidebarKeyboardShortcut.displayName);
    55 
    56             this._showNavigationSidebarItem = new WebInspector.ActivateButtonNavigationItem("toggle-navigation-sidebar", showToolTip, hideToolTip, "Images/ToggleLeftSidebar.svg", 16, 16);
     53            let showToolTip = WebInspector.UIString("Show the navigation sidebar (%s)").format(WebInspector.navigationSidebarKeyboardShortcut.displayName);
     54            let hideToolTip = WebInspector.UIString("Hide the navigation sidebar (%s)").format(WebInspector.navigationSidebarKeyboardShortcut.displayName);
     55            let image = WebInspector.resolvedLayoutDirection() == WebInspector.LayoutDirection.RTL ? "Images/ToggleRightSidebar.svg" : "Images/ToggleLeftSidebar.svg";
     56
     57            this._showNavigationSidebarItem = new WebInspector.ActivateButtonNavigationItem("toggle-navigation-sidebar", showToolTip, hideToolTip, image, 16, 16);
    5758            this._showNavigationSidebarItem.addEventListener(WebInspector.ButtonNavigationItem.Event.Clicked, WebInspector.toggleNavigationSidebar, WebInspector);
    5859            this._showNavigationSidebarItem.activated = !WebInspector.navigationSidebar.collapsed;
     
    6768
    6869        if (detailsSidebarPanels && detailsSidebarPanels.length) {
    69             var showToolTip = WebInspector.UIString("Show the details sidebar (%s)").format(WebInspector.detailsSidebarKeyboardShortcut.displayName);
    70             var hideToolTip = WebInspector.UIString("Hide the details sidebar (%s)").format(WebInspector.detailsSidebarKeyboardShortcut.displayName);
    71 
    72             this._showDetailsSidebarItem = new WebInspector.ActivateButtonNavigationItem("toggle-details-sidebar", showToolTip, hideToolTip, "Images/ToggleRightSidebar.svg", 16, 16);
     70            let showToolTip = WebInspector.UIString("Show the details sidebar (%s)").format(WebInspector.detailsSidebarKeyboardShortcut.displayName);
     71            let hideToolTip = WebInspector.UIString("Hide the details sidebar (%s)").format(WebInspector.detailsSidebarKeyboardShortcut.displayName);
     72            let image = WebInspector.resolvedLayoutDirection() == WebInspector.LayoutDirection.RTL ? "Images/ToggleLeftSidebar.svg" : "Images/ToggleRightSidebar.svg";
     73
     74            this._showDetailsSidebarItem = new WebInspector.ActivateButtonNavigationItem("toggle-details-sidebar", showToolTip, hideToolTip, image, 16, 16);
    7375            this._showDetailsSidebarItem.addEventListener(WebInspector.ButtonNavigationItem.Event.Clicked, WebInspector.toggleDetailsSidebar, WebInspector);
    7476            this._showDetailsSidebarItem.activated = !WebInspector.detailsSidebar.collapsed;
Note: See TracChangeset for help on using the changeset viewer.