mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
Unify styles, add placeholder multiselect constructor parameter for GroupView.
This commit is contained in:
@@ -883,8 +883,9 @@ GuacUI.ListGroup = function(caption) {
|
|||||||
* @constructor
|
* @constructor
|
||||||
* @param {GuacamoleService.ConnectionGroup} root_group The group to display
|
* @param {GuacamoleService.ConnectionGroup} root_group The group to display
|
||||||
* within the view.
|
* within the view.
|
||||||
|
* @param {Boolean} multiselect Whether multiple objects are selectable.
|
||||||
*/
|
*/
|
||||||
GuacUI.GroupView = function(root_group) {
|
GuacUI.GroupView = function(root_group, multiselect) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reference to this GroupView.
|
* Reference to this GroupView.
|
||||||
@@ -934,6 +935,7 @@ GuacUI.GroupView = function(root_group) {
|
|||||||
|
|
||||||
// Add connection to connection list or parent group
|
// Add connection to connection list or parent group
|
||||||
var guacui_connection = new GuacUI.Connection(connection);
|
var guacui_connection = new GuacUI.Connection(connection);
|
||||||
|
GuacUI.addClass(guacui_connection.getElement(), "list-item");
|
||||||
appendChild(guacui_connection.getElement());
|
appendChild(guacui_connection.getElement());
|
||||||
|
|
||||||
} // end for each connection
|
} // end for each connection
|
||||||
@@ -949,6 +951,7 @@ GuacUI.GroupView = function(root_group) {
|
|||||||
addGroup(child_group, list_group.addElement);
|
addGroup(child_group, list_group.addElement);
|
||||||
|
|
||||||
// Add element to display
|
// Add element to display
|
||||||
|
GuacUI.addClass(list_group.getElement(), "list-item");
|
||||||
appendChild(list_group.getElement());
|
appendChild(list_group.getElement());
|
||||||
|
|
||||||
} // end for each gorup
|
} // end for each gorup
|
||||||
|
@@ -319,40 +319,14 @@ div#all-connections .connection {
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#all-connections .connection .thumbnail {
|
div#recent-connections .connection .thumbnail {
|
||||||
display: none;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#all-connections .connection {
|
div#all-connections .connection {
|
||||||
padding: 0.1em;
|
padding: 0.1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.protocol {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.protocol .icon {
|
|
||||||
width: 24px;
|
|
||||||
height: 24px;
|
|
||||||
background-image: url('../images/protocol-icons/guac-plug.png');
|
|
||||||
background-size: 16px 16px;
|
|
||||||
-moz-background-size: 16px 16px;
|
|
||||||
-webkit-background-size: 16px 16px;
|
|
||||||
-khtml-background-size: 16px 16px;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: center center;
|
|
||||||
opacity: 0.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.protocol .icon.ssh {
|
|
||||||
background-image: url('../images/protocol-icons/guac-text.png');
|
|
||||||
}
|
|
||||||
|
|
||||||
.protocol .icon.vnc,
|
|
||||||
.protocol .icon.rdp {
|
|
||||||
background-image: url('../images/protocol-icons/guac-monitor.png');
|
|
||||||
}
|
|
||||||
|
|
||||||
div#recent-connections .protocol {
|
div#recent-connections .protocol {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@@ -157,7 +157,6 @@ div.section {
|
|||||||
|
|
||||||
display: block;
|
display: block;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding: 0.1em;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -182,6 +181,10 @@ div.section {
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.list-item .caption {
|
||||||
|
padding: 0.1em;
|
||||||
|
}
|
||||||
|
|
||||||
.list-item .name {
|
.list-item .name {
|
||||||
color: black;
|
color: black;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
@@ -201,7 +204,7 @@ div.section {
|
|||||||
opacity: 1.0;
|
opacity: 1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-item:not(.selected):hover {
|
.list-item:not(.selected) .caption:hover {
|
||||||
background: #CDA;
|
background: #CDA;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -292,19 +295,40 @@ div.section {
|
|||||||
background-image: url('../images/protocol-icons/guac-plug.png');
|
background-image: url('../images/protocol-icons/guac-plug.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon.connection.ssh {
|
|
||||||
background-image: url('../images/protocol-icons/guac-text.png');
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon.connection.add {
|
.icon.connection.add {
|
||||||
background-image: url('../images/action-icons/guac-monitor-add.png');
|
background-image: url('../images/action-icons/guac-monitor-add.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon.connection.vnc,
|
.protocol {
|
||||||
.icon.connection.rdp {
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.protocol .icon {
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
background-image: url('../images/protocol-icons/guac-plug.png');
|
||||||
|
background-size: 16px 16px;
|
||||||
|
-moz-background-size: 16px 16px;
|
||||||
|
-webkit-background-size: 16px 16px;
|
||||||
|
-khtml-background-size: 16px 16px;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center center;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.protocol .icon.ssh {
|
||||||
|
background-image: url('../images/protocol-icons/guac-text.png');
|
||||||
|
}
|
||||||
|
|
||||||
|
.protocol .icon.vnc,
|
||||||
|
.protocol .icon.rdp {
|
||||||
background-image: url('../images/protocol-icons/guac-monitor.png');
|
background-image: url('../images/protocol-icons/guac-monitor.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.connection .thumbnail {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Groups
|
* Groups
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user