1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

WebInspector: Add pointing hand cursor to close button

This commit is contained in:
David Rosca 2015-10-11 10:29:09 +02:00
parent 7e238f69b0
commit c0a7ef8d9e

View File

@ -83,9 +83,10 @@ void WebInspector::updateCloseButton()
{
page()->runJavaScript(QL1S("var toolbar = document.getElementsByClassName('inspector-view-toolbar')[1];"
"var button = document.createElement('button');"
"button.style.width = '26px';"
"button.style.height = '26px';"
"button.style.width = '22px';"
"button.style.height = '22px';"
"button.style.border = 'none';"
"button.style.cursor = 'pointer';"
"button.style.background = 'url(qrc:html/close.png) no-repeat';"
"button.style.backgroundPosition = 'center center';"
"button.addEventListener('click', function() {"