mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 11:02:12 +01:00
Bump v1.6.2 for awning mods
This commit is contained in:
parent
5313e5d249
commit
2bfba8e2dd
7 changed files with 40 additions and 7 deletions
|
|
@ -1 +1 @@
|
|||
1.6.1
|
||||
1.6.2
|
||||
|
|
@ -690,3 +690,29 @@ i.icss-x {
|
|||
transform: translate(-50%, -50%) rotate(225deg)
|
||||
}
|
||||
|
||||
i.icss-awning {
|
||||
width: 1.1em;
|
||||
height: .75em;
|
||||
background-color: transparent;
|
||||
border-width: 0 0;
|
||||
margin: .2em 0 .07em;
|
||||
}
|
||||
|
||||
i.icss-awning:before {
|
||||
width: 1.1em;
|
||||
height: .2em;
|
||||
border-bottom: .1em solid transparent;
|
||||
box-shadow: inset 0 1em, 0 0em 0 -.1em;
|
||||
top: -.1em;
|
||||
left: -.09em;
|
||||
}
|
||||
|
||||
i.icss-awning:after {
|
||||
width: calc(100% - 0.1em);
|
||||
height: var(--shade-position, 0%);
|
||||
left: -.04em;
|
||||
top: 0.025em;
|
||||
border-bottom: solid 0.045em gray;
|
||||
background-image: repeating-linear-gradient(90deg, var(--shade-color, currentColor), var(--shade-color, currentColor) calc(25% - 4px), black calc(25% - 2px), var(--shade-color, currentColor) calc(25% - 2px));
|
||||
background-color: rgba(71, 212, 255, 0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@
|
|||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" href="main.css?v=1.6.1" type="text/css" />
|
||||
<link rel="stylesheet" href="icons.css?v=1.6.1" type="text/css" />
|
||||
<link rel="stylesheet" href="main.css?v=1.6.2" type="text/css" />
|
||||
<link rel="stylesheet" href="icons.css?v=1.6.2" type="text/css" />
|
||||
<link rel="icon" type="image/png" href="favicon.png" />
|
||||
<script type="text/javascript" src="index.js?v=1.6.1"></script>
|
||||
<script type="text/javascript" src="index.js?v=1.6.2"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="divContainer" class="container" style="user-select:none;position:relative;border-radius:27px;">
|
||||
|
|
|
|||
|
|
@ -378,7 +378,7 @@ async function reopenSocket() {
|
|||
await initSockets();
|
||||
}
|
||||
class General {
|
||||
appVersion = 'v1.6.1';
|
||||
appVersion = 'v1.6.2';
|
||||
reloadApp = false;
|
||||
async init() {
|
||||
this.setAppVersion();
|
||||
|
|
@ -1062,8 +1062,11 @@ class Somfy {
|
|||
case 1:
|
||||
divCtl += ' icss-window-blind';
|
||||
break;
|
||||
case 3:
|
||||
divCtl += ' icss-awning';
|
||||
break;
|
||||
default:
|
||||
divCtl += ' icss-window-shade'
|
||||
divCtl += ' icss-window-shade';
|
||||
break;
|
||||
}
|
||||
divCtl += `" data-shadeid="${shade.shadeId}" style="--shade-position:${shade.position}%;vertical-align: top;"></i>`;
|
||||
|
|
@ -1493,6 +1496,10 @@ class Somfy {
|
|||
ico.classList.remove('icss-window-shade');
|
||||
ico.classList.add('icss-window-blind');
|
||||
break;
|
||||
case 3:
|
||||
ico.classList.remove('icss-window-shade');
|
||||
ico.classList.add('icss-awning');
|
||||
break;
|
||||
}
|
||||
let tilt = ico.parentElement.querySelector('i.icss-window-tilt');
|
||||
tilt.style.display = shade.tiltType !== 0 ? '' : 'none';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue