Changeset 212657 in webkit
- Timestamp:
- Feb 20, 2017 10:22:56 AM (7 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r212603 r212657 1 2017-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 1 15 2017-02-17 Nikita Vasilyev <nvasilyev@apple.com> 2 16 -
trunk/Source/WebInspectorUI/UserInterface/Views/ContentBrowserTabContentView.js
r212171 r212657 51 51 52 52 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); 57 58 this._showNavigationSidebarItem.addEventListener(WebInspector.ButtonNavigationItem.Event.Clicked, WebInspector.toggleNavigationSidebar, WebInspector); 58 59 this._showNavigationSidebarItem.activated = !WebInspector.navigationSidebar.collapsed; … … 67 68 68 69 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); 73 75 this._showDetailsSidebarItem.addEventListener(WebInspector.ButtonNavigationItem.Event.Clicked, WebInspector.toggleDetailsSidebar, WebInspector); 74 76 this._showDetailsSidebarItem.activated = !WebInspector.detailsSidebar.collapsed;
Note: See TracChangeset
for help on using the changeset viewer.