From e76ba5644f799159d8efe0f8f54f71cab256dcd0 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 24 Aug 2024 22:29:23 -0700 Subject: [PATCH 1/4] GUACAMOLE-1866: Switch to black "X" for recent connection removal button. --- guacamole/src/main/frontend/src/app/home/styles/home.css | 3 +-- guacamole/src/main/frontend/src/images/x-black.svg | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 guacamole/src/main/frontend/src/images/x-black.svg diff --git a/guacamole/src/main/frontend/src/app/home/styles/home.css b/guacamole/src/main/frontend/src/app/home/styles/home.css index 7699fe87ed..3c1cfe69db 100644 --- a/guacamole/src/main/frontend/src/app/home/styles/home.css +++ b/guacamole/src/main/frontend/src/app/home/styles/home.css @@ -90,11 +90,10 @@ a.home-connection, .empty.balancer a.home-connection-group { background-repeat: no-repeat; background-size: contain; background-position: center center; - background-image: url('images/x.svg'); + background-image: url('images/x-black.svg'); } .recent-connections .connection .remove-recent { - background-color: red; height: 1em; width: 1em; position: absolute; diff --git a/guacamole/src/main/frontend/src/images/x-black.svg b/guacamole/src/main/frontend/src/images/x-black.svg new file mode 100644 index 0000000000..785889a0e6 --- /dev/null +++ b/guacamole/src/main/frontend/src/images/x-black.svg @@ -0,0 +1 @@ + \ No newline at end of file From 662216651019160429721a5c8db647bb13c82a1b Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 24 Aug 2024 22:29:54 -0700 Subject: [PATCH 2/4] GUACAMOLE-1866: Only show recent connection removal "X" when hovering connection. --- guacamole/src/main/frontend/src/app/home/styles/home.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/guacamole/src/main/frontend/src/app/home/styles/home.css b/guacamole/src/main/frontend/src/app/home/styles/home.css index 3c1cfe69db..5a0d9d2160 100644 --- a/guacamole/src/main/frontend/src/app/home/styles/home.css +++ b/guacamole/src/main/frontend/src/app/home/styles/home.css @@ -82,6 +82,14 @@ a.home-connection, .empty.balancer a.home-connection-group { box-shadow: none; } +.recent-connections .connection .remove-recent { + visibility: hidden; +} + +.recent-connections .connection:hover .remove-recent { + visibility: visible; +} + .recent-connections .connection .remove-recent::after { content: ''; display: block; From f53e23ca757845f5fd48a9cda853b21286b12e46 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 24 Aug 2024 23:21:57 -0700 Subject: [PATCH 3/4] GUACAMOLE-1866: Remove application header from home page. --- .../src/app/home/controllers/homeController.js | 8 +++++--- .../app/home/directives/guacRecentConnections.js | 10 ---------- .../src/main/frontend/src/app/home/styles/home.css | 5 ----- .../app/home/templates/guacRecentConnections.html | 2 +- .../main/frontend/src/app/home/templates/home.html | 13 ++++++------- .../main/frontend/src/app/index/styles/headers.css | 9 ++++++--- 6 files changed, 18 insertions(+), 29 deletions(-) diff --git a/guacamole/src/main/frontend/src/app/home/controllers/homeController.js b/guacamole/src/main/frontend/src/app/home/controllers/homeController.js index 92c149e6ba..8d84b49e1a 100644 --- a/guacamole/src/main/frontend/src/app/home/controllers/homeController.js +++ b/guacamole/src/main/frontend/src/app/home/controllers/homeController.js @@ -62,12 +62,14 @@ angular.module('home').controller('homeController', ['$scope', '$injector', ]; /** - * Returns true if recent connections should be displayed on the Guacamole - * home page, otherwise false. + * Returns whether the "Recent Connections" section should be displayed on + * the home screen. * * @returns {!boolean} + * true if recent connections should be displayed on the home screen, + * false otherwise. */ - $scope.willShowRecentConnections = function willShowRecentConnections() { + $scope.isRecentConnectionsVisible = function isRecentConnectionsVisible() { return preferenceService.preferences.showRecentConnections; }; diff --git a/guacamole/src/main/frontend/src/app/home/directives/guacRecentConnections.js b/guacamole/src/main/frontend/src/app/home/directives/guacRecentConnections.js index 57f141f3f2..4be6065248 100644 --- a/guacamole/src/main/frontend/src/app/home/directives/guacRecentConnections.js +++ b/guacamole/src/main/frontend/src/app/home/directives/guacRecentConnections.js @@ -74,16 +74,6 @@ angular.module('home').directive('guacRecentConnections', [function guacRecentCo && guacHistory.removeEntry(recentConnection.entry.id)); }; - /** - * Returns whether or not recent connections should be displayed. - * - * @returns {!boolean} - * true if recent connections should be displayed, otherwise false. - */ - $scope.willShowRecentConnections = function willShowRecentConnections() { - return preferenceService.preferences.showRecentConnections; - }; - /** * Returns whether recent connections are available for display. * diff --git a/guacamole/src/main/frontend/src/app/home/styles/home.css b/guacamole/src/main/frontend/src/app/home/styles/home.css index 5a0d9d2160..8ae0486ed6 100644 --- a/guacamole/src/main/frontend/src/app/home/styles/home.css +++ b/guacamole/src/main/frontend/src/app/home/styles/home.css @@ -77,11 +77,6 @@ a.home-connection, .empty.balancer a.home-connection-group { display: none; } -.header-app-name { - font-size: 0.85em; - box-shadow: none; -} - .recent-connections .connection .remove-recent { visibility: hidden; } diff --git a/guacamole/src/main/frontend/src/app/home/templates/guacRecentConnections.html b/guacamole/src/main/frontend/src/app/home/templates/guacRecentConnections.html index d243974453..2d25bc1db8 100644 --- a/guacamole/src/main/frontend/src/app/home/templates/guacRecentConnections.html +++ b/guacamole/src/main/frontend/src/app/home/templates/guacRecentConnections.html @@ -1,4 +1,4 @@ -
+

{{'HOME.INFO_NO_RECENT_CONNECTIONS' | translate}}

diff --git a/guacamole/src/main/frontend/src/app/home/templates/home.html b/guacamole/src/main/frontend/src/app/home/templates/home.html index 6ba553025a..872ac98033 100644 --- a/guacamole/src/main/frontend/src/app/home/templates/home.html +++ b/guacamole/src/main/frontend/src/app/home/templates/home.html @@ -2,16 +2,14 @@
-
-

{{'APP.NAME' | translate}}

- -
- -
+

{{'HOME.SECTION_HEADER_RECENT_CONNECTIONS' | translate}}

+
- +
@@ -21,6 +19,7 @@

{{'HOME.SECTION_HEADER_ALL_CONNECTIONS' placeholder="'HOME.FIELD_PLACEHOLDER_FILTER' | translate" connection-properties="filteredConnectionProperties" connection-group-properties="filteredConnectionGroupProperties"> +

Date: Sat, 24 Aug 2024 23:32:11 -0700 Subject: [PATCH 4/4] GUACAMOLE-1866: Move and rename dedicated "Recent Connections" settings to more general "Appearance" section. --- .../templates/settingsPreferences.html | 38 +++++++++---------- .../main/frontend/src/translations/en.json | 4 +- .../main/frontend/src/translations/fr.json | 3 +- 3 files changed, 22 insertions(+), 23 deletions(-) diff --git a/guacamole/src/main/frontend/src/app/settings/templates/settingsPreferences.html b/guacamole/src/main/frontend/src/app/settings/templates/settingsPreferences.html index 84ebc72300..bf9684295a 100644 --- a/guacamole/src/main/frontend/src/app/settings/templates/settingsPreferences.html +++ b/guacamole/src/main/frontend/src/app/settings/templates/settingsPreferences.html @@ -5,7 +5,25 @@

{{'SETTINGS_PREFERENCES.HELP_LOCALE' | translate}}

- + + +

{{'SETTINGS_PREFERENCES.SECTION_HEADER_APPEARANCE' | translate}}

+
+

{{'SETTINGS_PREFERENCES.HELP_APPEARANCE' | translate}}

+
+ + + + + + + + + +
{{'SETTINGS_PREFERENCES.FIELD_HEADER_SHOW_RECENT_CONNECTIONS' | translate}}
{{'SETTINGS_PREFERENCES.FIELD_HEADER_NUMBER_RECENT_CONNECTIONS' | translate}}
+
+
+

{{'SETTINGS_PREFERENCES.SECTION_HEADER_UPDATE_PASSWORD' | translate}}

@@ -89,24 +107,6 @@

{{'SETTINGS_PREFERENCES.SECTION_HEADER_DEFAULT_MOUSE_MODE' |

- -

{{'SETTINGS_PREFERENCES.SECTION_HEADER_RECENT_CONNECTIONS' | translate}}

-
-

{{'SETTINGS_PREFERENCES.HELP_RECENT_CONNECTIONS' | translate}}

-
- - - - - - - - - -
{{'SETTINGS_PREFERENCES.FIELD_HEADER_SHOW_RECENT_CONNECTIONS' | translate}}
{{'SETTINGS_PREFERENCES.FIELD_HEADER_NUMBER_RECENT_CONNECTIONS' | translate}}
-
-
-