Changed screenshot button to small icon.

Ylian Saint-Hilaire committed May 2, 2020 at 00:40 UTC 947f32033531a7661b801119f4477697eb19f43d
3 files changed +4 -4
public/images/icon-camera.png
Binary files /dev/null and b/public/images/icon-camera.png differ
public/styles/style.css
+1 -1
@@ -2339,7 +2339,7 @@ a {
2339 -ms-grid-row: 4;
2340 }
2341
2342 -#DeskChatButton, #DeskNotifyButton, #DeskOpenWebButton, #DeskBackgroundButton {
2342 +#DeskChatButton, #DeskNotifyButton, #DeskOpenWebButton, #DeskBackgroundButton, #DeskSaveImageButton {
2343 float: right;
2344 margin-top: 1px;
2345 margin-right: 4px;
views/default.handlebars
+3 -3
@@ -514,7 +514,6 @@
514 <div class='deskareaicon' title="Rotate Right" onclick="drotate(1)">&orarr;</div>
515 <div id="deskRecordIcon" class='deskareaicon' title="Server is recording this session" style="display:none;background-color:red;width:12px;height:12px;border-radius:6px;margin-top:5px"></div>
516 <input id="deskFocusBtn" type="button" title="Toggle focus mode, when active only the region around the mouse is updated" onkeypress="return false" onkeydown="return false" value="Focus All" onclick="deskToggleFocus()" style="margin-right:3px;display:none" />
517 - <input id="deskSaveBtn" type="button" title="Save a screenshot of the remote desktop" onkeypress="return false" onkeydown="return false" value="Save..." onclick=deskSaveImage() class="mR" />
517 <input id="deskActionsBtn" type=button title="Perform power actions on the device" onkeypress="return false" onkeydown="return false" value=Actions onclick=deviceActionFunction() class="mR" />
518 <input id="deskActionsSettings" type="button" value="Settings..." title="Edit remote desktop settings" onkeypress="return false" onkeydown="return false" onclick="showDesktopSettings()" class="mR" />
519 <input type="button" title="Change the power state of the remote machine" onkeypress="return false" onkeydown="return false" value="Power Actions..." onclick="showPowerActionDlg()" style="display:none" />
@@ -572,6 +571,7 @@
571 <span id=DeskNotifyButton title="Display a notification on the remote computer"><img src='images/icon-notify.png' onclick=deviceToastFunction() height=16 width=16 style=padding-top:2px /></span>
572 <span id=DeskOpenWebButton title="Open a web address on the remote computer"><img src='images/icon-url2.png' onclick=deviceUrlFunction() height=16 width=16 style=padding-top:2px /></span>
573 <span id=DeskBackgroundButton title="Toggle remote desktop background"><img src='images/icon-background.png' onclick=deviceToggleBackground(event) height=16 width=16 style=padding-top:2px /></span>
574 + <span id=DeskSaveImageButton title="Save a screenshot of the remote desktop"><img src='images/icon-camera.png' onclick=deskSaveImage() height=16 width=16 style=padding-top:2px /></span>
575 </div>
576 <div>
577 <select id="deskkeys">
@@ -5761,7 +5761,7 @@
5761 deskAdjust();
5762
5763 // On some browsers like IE, we can't save screen shots. Hide the scheenshot/capture buttons.
5764 - if (!Q('Desk')['toBlob']) { QV('deskSaveBtn', false); }
5764 + if (!Q('Desk')['toBlob']) { QV('DeskSaveImageButton', false); }
5765 }
5766
5767 // Show and enable the right buttons
@@ -5797,7 +5797,7 @@
5797 QE('connectbutton1', online);
5798 var hwonline = ((currentNode.conn & 6) != 0); // If CIRA (2) or AMT (4) connected, enable hardware terminal
5799 QE('connectbutton1h', hwonline);
5800 - QE('deskSaveBtn', deskState == 3);
5800 + QE('DeskSaveImageButton', deskState == 3);
5801 QV('deskFocusBtn', (desktop != null) && (desktop.contype == 2) && (deskState != 0) && (desktopsettings.showfocus));
5802 QV('DeskClip', (currentNode.agent) && (currentNode.agent.id != 11) && (currentNode.agent.id != 16) && ((desktop == null) || (desktop.contype != 2))); // Clipboard not supported on MacOS
5803 QE('DeskClip', deskState == 3);