fixed position of controls in incoming call

This commit is contained in:
or-else
2025-11-06 13:15:57 +03:00
parent b4ba9ab7d8
commit ad3c6f5d36
25 changed files with 114 additions and 22 deletions
+2
View File
@@ -2267,6 +2267,8 @@ video {
.incoming-call { .incoming-call {
position: relative; position: relative;
display: flex;
flex-direction: column;
background-color: var(--clr-bright); background-color: var(--clr-bright);
box-shadow: 0.15rem 0.15rem 1.5rem var(--clr-shadow-dialog); box-shadow: 0.15rem 0.15rem 1.5rem var(--clr-shadow-dialog);
border-radius: 0.3rem; border-radius: 0.3rem;
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+7
View File
@@ -1899,5 +1899,12 @@
"description": "Label adjusting blur amount", "description": "Label adjusting blur amount",
"missing": false, "missing": false,
"obsolete": false "obsolete": false
},
"label_scan_id": {
"translation": "",
"defaultMessage": "Scan my ID:",
"description": "Label [Scan my ID:]",
"missing": true,
"obsolete": false
} }
} }
+7
View File
@@ -1899,5 +1899,12 @@
"description": "Label adjusting blur amount", "description": "Label adjusting blur amount",
"missing": false, "missing": false,
"obsolete": false "obsolete": false
},
"label_scan_id": {
"translation": "",
"defaultMessage": "Scan my ID:",
"description": "Label [Scan my ID:]",
"missing": true,
"obsolete": false
} }
} }
+7
View File
@@ -1899,5 +1899,12 @@
"description": "Label adjusting blur amount", "description": "Label adjusting blur amount",
"missing": false, "missing": false,
"obsolete": false "obsolete": false
},
"label_scan_id": {
"translation": "Scan my ID:",
"defaultMessage": "Scan my ID:",
"description": "Label [Scan my ID:]",
"missing": false,
"obsolete": false
} }
} }
+7
View File
@@ -1899,5 +1899,12 @@
"description": "Label adjusting blur amount", "description": "Label adjusting blur amount",
"missing": false, "missing": false,
"obsolete": false "obsolete": false
},
"label_scan_id": {
"translation": "",
"defaultMessage": "Scan my ID:",
"description": "Label [Scan my ID:]",
"missing": true,
"obsolete": false
} }
} }
+4
View File
@@ -498,6 +498,10 @@
"defaultMessage": "Send SMS to reset password", "defaultMessage": "Send SMS to reset password",
"description": "Label for password reset field by phone" "description": "Label for password reset field by phone"
}, },
"label_scan_id": {
"defaultMessage": "Scan my ID:",
"description": "Label [Scan my ID:]"
},
"label_sdk": { "label_sdk": {
"defaultMessage": "SDK:" "defaultMessage": "SDK:"
}, },
+7
View File
@@ -1899,5 +1899,12 @@
"description": "Label adjusting blur amount", "description": "Label adjusting blur amount",
"missing": false, "missing": false,
"obsolete": false "obsolete": false
},
"label_scan_id": {
"translation": "",
"defaultMessage": "Scan my ID:",
"description": "Label [Scan my ID:]",
"missing": true,
"obsolete": false
} }
} }
+7
View File
@@ -1899,5 +1899,12 @@
"description": "Label adjusting blur amount", "description": "Label adjusting blur amount",
"missing": false, "missing": false,
"obsolete": false "obsolete": false
},
"label_scan_id": {
"translation": "",
"defaultMessage": "Scan my ID:",
"description": "Label [Scan my ID:]",
"missing": true,
"obsolete": false
} }
} }
+7
View File
@@ -1899,5 +1899,12 @@
"description": "Label adjusting blur amount", "description": "Label adjusting blur amount",
"missing": false, "missing": false,
"obsolete": false "obsolete": false
},
"label_scan_id": {
"translation": "",
"defaultMessage": "Scan my ID:",
"description": "Label [Scan my ID:]",
"missing": true,
"obsolete": false
} }
} }
+7
View File
@@ -1899,5 +1899,12 @@
"description": "Label adjusting blur amount", "description": "Label adjusting blur amount",
"missing": false, "missing": false,
"obsolete": false "obsolete": false
},
"label_scan_id": {
"translation": "",
"defaultMessage": "Scan my ID:",
"description": "Label [Scan my ID:]",
"missing": true,
"obsolete": false
} }
} }
+7
View File
@@ -1899,5 +1899,12 @@
"description": "Label adjusting blur amount", "description": "Label adjusting blur amount",
"missing": false, "missing": false,
"obsolete": false "obsolete": false
},
"label_scan_id": {
"translation": "",
"defaultMessage": "Scan my ID:",
"description": "Label [Scan my ID:]",
"missing": true,
"obsolete": false
} }
} }
+7
View File
@@ -1899,5 +1899,12 @@
"description": "Label adjusting blur amount", "description": "Label adjusting blur amount",
"missing": false, "missing": false,
"obsolete": false "obsolete": false
},
"label_scan_id": {
"translation": "",
"defaultMessage": "Scan my ID:",
"description": "Label [Scan my ID:]",
"missing": true,
"obsolete": false
} }
} }
+7
View File
@@ -1899,5 +1899,12 @@
"description": "Label adjusting blur amount", "description": "Label adjusting blur amount",
"missing": false, "missing": false,
"obsolete": false "obsolete": false
},
"label_scan_id": {
"translation": "",
"defaultMessage": "Scan my ID:",
"description": "Label [Scan my ID:]",
"missing": true,
"obsolete": false
} }
} }
+7
View File
@@ -1899,5 +1899,12 @@
"description": "Label adjusting blur amount", "description": "Label adjusting blur amount",
"missing": false, "missing": false,
"obsolete": false "obsolete": false
},
"label_scan_id": {
"translation": "",
"defaultMessage": "Scan my ID:",
"description": "Label [Scan my ID:]",
"missing": true,
"obsolete": false
} }
} }
+7
View File
@@ -1899,5 +1899,12 @@
"description": "Label adjusting blur amount", "description": "Label adjusting blur amount",
"missing": false, "missing": false,
"obsolete": false "obsolete": false
},
"label_scan_id": {
"translation": "",
"defaultMessage": "Scan my ID:",
"description": "Label [Scan my ID:]",
"missing": true,
"obsolete": false
} }
} }
-7
View File
@@ -325,10 +325,6 @@ class TinodeWeb extends React.Component {
this.applyWallpaperSettings(this.state.wallpaper, this.state.wallpaperSize, this.state.wallpaperBlur, this.applyWallpaperSettings(this.state.wallpaper, this.state.wallpaperSize, this.state.wallpaperBlur,
this.state.colorSchema == 'auto' ? this.state.systemColorSchema : this.state.colorSchema); this.state.colorSchema == 'auto' ? this.state.systemColorSchema : this.state.colorSchema);
console.log("Wallpaper settings:", this.state.wallpaper, this.state.wallpaperSize, this.state.wallpaperBlur);
console.log("Wallpaper type:", this.state.wallpaperSize == 0 ? 'wpimg' : 'wppatt');
console.log("System color scheme:", this.state.systemColorSchema);
// Process background notifications from the service worker. // Process background notifications from the service worker.
if (typeof BroadcastChannel == 'function') { if (typeof BroadcastChannel == 'function') {
const serviceWorkerChannel = new BroadcastChannel('tinode-sw'); const serviceWorkerChannel = new BroadcastChannel('tinode-sw');
@@ -1263,7 +1259,6 @@ class TinodeWeb extends React.Component {
// Manual change of color scheme: 'dark', 'light', 'auto'. // Manual change of color scheme: 'dark', 'light', 'auto'.
handleChangeColorSchema(schema) { handleChangeColorSchema(schema) {
console.log("User color scheme change:", schema);
this.setState({colorSchema: schema}); this.setState({colorSchema: schema});
LocalStorageUtil.updateObject('settings', {colorSchema: schema}); LocalStorageUtil.updateObject('settings', {colorSchema: schema});
document.documentElement.style.colorScheme = schema == 'auto' ? 'light dark' : schema; document.documentElement.style.colorScheme = schema == 'auto' ? 'light dark' : schema;
@@ -1273,14 +1268,12 @@ class TinodeWeb extends React.Component {
// System color scheme has changed. // System color scheme has changed.
handleColorSchemeChange(event) { handleColorSchemeChange(event) {
const systemSchema = event.matches ? 'dark' : 'light'; const systemSchema = event.matches ? 'dark' : 'light';
console.log("System color scheme change:", systemSchema);
this.setState({systemColorSchema: systemSchema}); this.setState({systemColorSchema: systemSchema});
this.applyColorSchema(this.state.colorSchema, systemSchema, this.state.wallpaperSize); this.applyColorSchema(this.state.colorSchema, systemSchema, this.state.wallpaperSize);
} }
applyColorSchema(schema, systemSchema, size) { applyColorSchema(schema, systemSchema, size) {
const effectiveSchema = schema == 'auto' ? systemSchema : schema; const effectiveSchema = schema == 'auto' ? systemSchema : schema;
console.log("applyColorSchema:", effectiveSchema);
document.documentElement.style.setProperty('--wallpaper-invert', effectiveSchema == 'dark' && size ? '1' : '0'); document.documentElement.style.setProperty('--wallpaper-invert', effectiveSchema == 'dark' && size ? '1' : '0');
document.documentElement.style.setProperty('--wallpaper-brightness', effectiveSchema == 'dark' && !size ? '0.5' : '1'); document.documentElement.style.setProperty('--wallpaper-brightness', effectiveSchema == 'dark' && !size ? '0.5' : '1');
} }
+3 -1
View File
@@ -77,7 +77,9 @@ class NewTopicById extends React.PureComponent {
</div> </div>
<br /> <br />
<div className="panel-form-column"> <div className="panel-form-column">
<label className="small">Scan my ID:</label> <label className="small"><FormattedMessage id="label_scan_id"
defaultMessage="Scan my ID:" description="Label [Scan my ID:]" />
</label>
<div className="qr-code" ref={this.qrCodeRef} /> <div className="qr-code" ref={this.qrCodeRef} />
</div> </div>
</div> </div>
+1 -1
View File
File diff suppressed because one or more lines are too long
+7 -7
View File
@@ -12348,9 +12348,6 @@ class TinodeWeb extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component)
document.documentElement.style.colorScheme = this.state.colorSchema == 'auto' ? 'light dark' : this.state.colorSchema; document.documentElement.style.colorScheme = this.state.colorSchema == 'auto' ? 'light dark' : this.state.colorSchema;
document.documentElement.style.setProperty('--message-text-size', `${this.state.textSize}pt`); document.documentElement.style.setProperty('--message-text-size', `${this.state.textSize}pt`);
this.applyWallpaperSettings(this.state.wallpaper, this.state.wallpaperSize, this.state.wallpaperBlur, this.state.colorSchema == 'auto' ? this.state.systemColorSchema : this.state.colorSchema); this.applyWallpaperSettings(this.state.wallpaper, this.state.wallpaperSize, this.state.wallpaperBlur, this.state.colorSchema == 'auto' ? this.state.systemColorSchema : this.state.colorSchema);
console.log("Wallpaper settings:", this.state.wallpaper, this.state.wallpaperSize, this.state.wallpaperBlur);
console.log("Wallpaper type:", this.state.wallpaperSize == 0 ? 'wpimg' : 'wppatt');
console.log("System color scheme:", this.state.systemColorSchema);
if (typeof BroadcastChannel == 'function') { if (typeof BroadcastChannel == 'function') {
const serviceWorkerChannel = new BroadcastChannel('tinode-sw'); const serviceWorkerChannel = new BroadcastChannel('tinode-sw');
serviceWorkerChannel.addEventListener('message', this.handlePushMessage); serviceWorkerChannel.addEventListener('message', this.handlePushMessage);
@@ -13149,7 +13146,6 @@ class TinodeWeb extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component)
}); });
} }
handleChangeColorSchema(schema) { handleChangeColorSchema(schema) {
console.log("User color scheme change:", schema);
this.setState({ this.setState({
colorSchema: schema colorSchema: schema
}); });
@@ -13161,7 +13157,6 @@ class TinodeWeb extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component)
} }
handleColorSchemeChange(event) { handleColorSchemeChange(event) {
const systemSchema = event.matches ? 'dark' : 'light'; const systemSchema = event.matches ? 'dark' : 'light';
console.log("System color scheme change:", systemSchema);
this.setState({ this.setState({
systemColorSchema: systemSchema systemColorSchema: systemSchema
}); });
@@ -13169,7 +13164,6 @@ class TinodeWeb extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component)
} }
applyColorSchema(schema, systemSchema, size) { applyColorSchema(schema, systemSchema, size) {
const effectiveSchema = schema == 'auto' ? systemSchema : schema; const effectiveSchema = schema == 'auto' ? systemSchema : schema;
console.log("applyColorSchema:", effectiveSchema);
document.documentElement.style.setProperty('--wallpaper-invert', effectiveSchema == 'dark' && size ? '1' : '0'); document.documentElement.style.setProperty('--wallpaper-invert', effectiveSchema == 'dark' && size ? '1' : '0');
document.documentElement.style.setProperty('--wallpaper-brightness', effectiveSchema == 'dark' && !size ? '0.5' : '1'); document.documentElement.style.setProperty('--wallpaper-brightness', effectiveSchema == 'dark' && !size ? '0.5' : '1');
} }
@@ -19168,7 +19162,13 @@ class NewTopicById extends (react__WEBPACK_IMPORTED_MODULE_1___default().PureCom
className: "panel-form-column" className: "panel-form-column"
}, react__WEBPACK_IMPORTED_MODULE_1___default().createElement("label", { }, react__WEBPACK_IMPORTED_MODULE_1___default().createElement("label", {
className: "small" className: "small"
}, "Scan my ID:"), react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", { }, react__WEBPACK_IMPORTED_MODULE_1___default().createElement(react_intl__WEBPACK_IMPORTED_MODULE_2__.FormattedMessage, {
id: "label_scan_id",
defaultMessage: [{
"type": 0,
"value": "Scan my ID:"
}]
})), react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
className: "qr-code", className: "qr-code",
ref: this.qrCodeRef ref: this.qrCodeRef
}))); })));
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long