From b5f16e7a5241026937c83a3d377c5f861a66e564 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Wed, 2 Mar 2022 15:29:29 -0800 Subject: [PATCH] Improved remote desktop multi-display selector, #3730 --- public/images/icon-monitor1.png | Bin 0 -> 396 bytes public/images/icon-monitor2.png | Bin 0 -> 461 bytes public/images/monitor32.png | Bin 0 -> 848 bytes public/styles/style.css | 2 +- views/default.handlebars | 21 +++++++++++---------- 5 files changed, 12 insertions(+), 11 deletions(-) create mode 100644 public/images/icon-monitor1.png create mode 100644 public/images/icon-monitor2.png create mode 100644 public/images/monitor32.png diff --git a/public/images/icon-monitor1.png b/public/images/icon-monitor1.png new file mode 100644 index 0000000000000000000000000000000000000000..76380d010baf564fc447f6e8de81d94d9cde4e69 GIT binary patch literal 396 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBufiR<}hF1engQBO4V~B-+a!FyK_3wYz=coRpQ(R(6a^T#oFaRA&LsS@H+cE)|9}1?Oq@)UjXHjv|B&h^&b)Zp zrd{{{=ih%=`H=sz{esOBl0R5kh2r+ts`6hssi33t=fmma`rHjZ8xqg()Jyy`*krU} z}dgf3rHVL+Z!ouhEzyIxhcYgkTrZ+M&JZskE@YMhNBlzRr-`$6Q n^UK@qsr_DNAEGH>V8Fo8R2j{vBz_ghVqoxe^>bP0l+XkKiyxHe literal 0 HcmV?d00001 diff --git a/public/images/icon-monitor2.png b/public/images/icon-monitor2.png new file mode 100644 index 0000000000000000000000000000000000000000..b3b438362db3215e10a64aeb9ec0509b5dec4e14 GIT binary patch literal 461 zcmV;;0W$uHP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!T6?F-m4}VWDKBl4J5O+$s^mxN|FdsWrTEp9~Yy`xhpd% zicywUL|r6-Jin4xeOh7kl~%%qeqHJZ(4{i%MXjtYQJLD`1mp=IDV00000NkvXXu0mjf D+jGtF literal 0 HcmV?d00001 diff --git a/public/images/monitor32.png b/public/images/monitor32.png new file mode 100644 index 0000000000000000000000000000000000000000..d11f8744d46d56a4dc43bf38880e0bd238175076 GIT binary patch literal 848 zcmWkrZA=>l0KJM1oop-p;(Fh`_Ih`vAN1>by}Qy+x|U!e44ovHw57l(PRaVm6=SAL zjQ%h~C`0$FWLv@*AT7pq&5XpwE!hmeH-F7e=ElS&k{HD$c>D3*%X{zNd!P5EjvhJ) z9RvX2P%;tgmz9-4yxJslt+LP}i=xnfGy<${B2Q%V@>uwdFaT7}z5YD&irlUB^$c|F z@9(GIIv(J?LBZGQ=R%@S^0||oAaa4sn}a8E85km{U=I`NrNb$vGs#B#h>WWz z2OEgnV?!aUjdM9n(FEQ7j?2PGE+@r$+_THxxm8bT#XYm;nXPzBRc>zGJ^hXJbQ8*Q5(KT+>zem+P)`YrQq$47Ba8`?r(!nf*GkVO7Vnzry z>LD7%%m_-s2(Hzk>Q+OWmIQT#PD7(`2Zd zW1(=sF9@8EGLSyECn!ph&R{eg;W?j1rA8nahYXX$)Co6YC* zj~@T_M`QcZ=Ej3xpKNXIZ0+pqJbd~)t^}1DLjm5 zYIa6F(_j8jBD}VMFDc=2U)4hX zRR6@&ZMfV3%atqFsUN)8yfp0-udQ7E{_;h&<*cG!pDIoji}k6!y<%~1d+EQ0MrdOL Y0P262td9Z3ro1GO>`KK}Bk5262jk%ly#N3J literal 0 HcmV?d00001 diff --git a/public/styles/style.css b/public/styles/style.css index 8b39ed80..2d7ecbad 100644 --- a/public/styles/style.css +++ b/public/styles/style.css @@ -2654,7 +2654,7 @@ a { -ms-grid-row: 4; } -#DeskChatButton, #DeskNotifyButton, #DeskOpenWebButton, #DeskBackgroundButton, #DeskSaveImageButton, #DeskRecordButton, #DeskClipboardInButton, #DeskClipboardOutButton, #DeskRefreshButton, #DeskLockButton, #DeskInputLockedButton, #DeskInputUnLockedButton, #DeskGuestShareButton { +#DeskChatButton, #DeskNotifyButton, #DeskOpenWebButton, #DeskBackgroundButton, #DeskSaveImageButton, #DeskRecordButton, #DeskClipboardInButton, #DeskClipboardOutButton, #DeskRefreshButton, #DeskLockButton, #DeskInputLockedButton, #DeskInputUnLockedButton, #DeskGuestShareButton, #DeskMonitorSelectionSpan { float: right; margin-top: 1px; margin-right: 4px; diff --git a/views/default.handlebars b/views/default.handlebars index 21721a3b..df40fe97 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -676,9 +676,8 @@
-   -   -   + + @@ -692,7 +691,9 @@ +
+
@@ -8551,7 +8552,7 @@ desktop.Stop(); desktopNode = desktop = null; QV('DeskFocus', false); - QV('termdisplays', false); + QV('DeskMonitorSelectionSpan', false); QV('deskRecordIcon', false); QV('DeskInputLockedButton', false); QV('DeskInputUnLockedButton', false); @@ -9313,20 +9314,20 @@ var displayCount = 0, displaySelector = ''; for (var i in displays) { displayCount++; - var str = displays[i]; - if (str == 'All Displays') { str = "All Displays"; } // Language translation + var str = displays[i], allDisplays = 1; + if (str == 'All Displays') { str = "All Displays"; allDisplays = 2; } // Language translation if (str.startsWith('Display ')) { str = format("Display {0}", str.substring(8)); } // Language translation - displaySelector += '' + str + ''; + displaySelector += ''; if ((deskPreferedStickyDisplay == i) && (selDisplay != deskPreferedStickyDisplay)) { desktop.m.SetDisplay(i); } deskPreferedStickyDisplay = -1; } - QH('termdisplays', displaySelector); - QV('termdisplays', displayCount > 1); + QH('DeskMonitorSelectionSpan', displaySelector); + QV('DeskMonitorSelectionSpan', displayCount > 1); } function deskGetDisplayNumbers(e) { desktop.m.GetDisplayNumbers(); } var deskPreferedStickyDisplay = -1; - function deskSetDisplay(e) { desktop.m.SetDisplay(deskPreferedStickyDisplay = parseInt(Q('termdisplays').value)); Q('termdisplays').blur(); } + function deskSetDisplay(v) { desktop.m.SetDisplay(deskPreferedStickyDisplay = parseInt(v)); } // Double click detection. This is important for macOS. var dblClickDetectArgs = { t:0, x:0, y:0 };