Skip to content
Extraits de code Groupes Projets
Valider 5b2c06c3 rédigé par Deurstann's avatar Deurstann
Parcourir les fichiers

Windows is now movable

parent 48020a67
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!6Move application and playtime visualisation
...@@ -25,10 +25,11 @@ ...@@ -25,10 +25,11 @@
<script></script> <script></script>
</head> </head>
<body> <body>
<div id="mainFrame" class="container-fluid"> <div id="mainFrame" class="container-fluid" >
<div <div
id="buttonPanelListLeft" id="buttonPanelListLeft"
class="d-flex flex-row bd-highlight mb-3 row card" class="d-flex flex-row bd-highlight mb-3 row card"
style="-webkit-app-region: drag"
></div> ></div>
<div id="panelWrapper" class="row"> <div id="panelWrapper" class="row">
<ul <ul
......
...@@ -87,7 +87,8 @@ function createButtonList(list) { ...@@ -87,7 +87,8 @@ function createButtonList(list) {
if (btn[0] == 'left') { if (btn[0] == 'left') {
renderHtmlLeft = `${renderHtmlLeft} renderHtmlLeft = `${renderHtmlLeft}
<button id="${btn[2]}" type="button" class="btn btn-primary p-2 bd-highlight" <button id="${btn[2]}" type="button" class="btn btn-primary p-2 bd-highlight"
data-toggle="tooltip" data-placement="bottom" title="${btn[3]}">${btn[1]}</button>`; data-toggle="tooltip" data-placement="bottom" title="${btn[3]}"
style="-webkit-app-region: no-drag">${btn[1]}</button>`;
logger.debug( logger.debug(
'instance', 'instance',
`Create button for "${btn[1]}" with id "${btn[2]} at the left"` `Create button for "${btn[1]}" with id "${btn[2]} at the left"`
...@@ -95,7 +96,8 @@ function createButtonList(list) { ...@@ -95,7 +96,8 @@ function createButtonList(list) {
} else if (btn[0] == 'right') { } else if (btn[0] == 'right') {
renderHtmlRight = `${renderHtmlRight} renderHtmlRight = `${renderHtmlRight}
<button id="${btn[2]}" type="button" class="btn btn-secondary p-2 bd-highlight" <button id="${btn[2]}" type="button" class="btn btn-secondary p-2 bd-highlight"
data-toggle="tooltip" data-placement="bottom" title="${btn[3]}">${btn[1]}</button>`; data-toggle="tooltip" data-placement="bottom" title="${btn[3]}"
style="-webkit-app-region: no-drag">${btn[1]}</button>`;
logger.debug( logger.debug(
'instance', 'instance',
`Create button for "${btn[1]}" with id "${btn[2]} at the right"` `Create button for "${btn[1]}" with id "${btn[2]} at the right"`
...@@ -103,7 +105,8 @@ function createButtonList(list) { ...@@ -103,7 +105,8 @@ function createButtonList(list) {
} else if (btn[0] == 'sleft') { } else if (btn[0] == 'sleft') {
renderHtmlSLeft = `${renderHtmlSLeft} renderHtmlSLeft = `${renderHtmlSLeft}
<button id="${btn[2]}" type="button" class="btn btn-secondary p-2 bd-highlight" <button id="${btn[2]}" type="button" class="btn btn-secondary p-2 bd-highlight"
data-toggle="tooltip" data-placement="bottom" title="${btn[3]}">${btn[1]}</button>`; data-toggle="tooltip" data-placement="bottom" title="${btn[3]}"
style="-webkit-app-region: no-drag">${btn[1]}</button>`;
logger.debug( logger.debug(
'instance', 'instance',
`Create button for "${btn[1]}" with id "${btn[2]} at the right"` `Create button for "${btn[1]}" with id "${btn[2]} at the right"`
...@@ -118,7 +121,7 @@ function createButtonList(list) { ...@@ -118,7 +121,7 @@ function createButtonList(list) {
document.getElementById('buttonPanelListLeft').innerHTML = ` document.getElementById('buttonPanelListLeft').innerHTML = `
<div class="btn-group" role="group">${renderHtmlLeft}</div> <div class="btn-group" role="group">${renderHtmlLeft}</div>
<div class="btn-group" role="group">${renderHtmlSLeft}</div> <div class="btn-group" role="group">${renderHtmlSLeft}</div>
<div class="p-1 bd-highlight mb-1 mr-auto ml-auto" style="width: 60%;"> <div class="p-1 bd-highlight mb-1 mr-auto ml-auto" style="width: 60%;-webkit-app-region: no-drag;">
<input id="filterInput" type="text" class="form-control filterInput" placeholder="Filter..."> <input id="filterInput" type="text" class="form-control filterInput" placeholder="Filter...">
</div> </div>
<div class="btn-group" role="group">${renderHtmlRight}</div>`; <div class="btn-group" role="group">${renderHtmlRight}</div>`;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter