mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-05-08 07:08:09 +03:00
impl(cm): implement change_theme and change_language callbacks (#14782)
* docs: fix typos in documentation and code comments - Fix 'seperated' -> 'separated' in remote_input.dart - Fix 'seperators' -> 'separators' in fuse/cs.rs - Update outdated 'OSX' -> 'macOS' in virtual display README Signed-off-by: pallab-js <sonowalpallabjyoti@gmail.com> * impl(cm): implement change_theme and change_language callbacks These callbacks were previously empty TODO stubs. Now they properly invoke the Sciter UI handlers to notify the UI when theme or language changes occur. Signed-off-by: pallab-js <sonowalpallabjyoti@gmail.com> --------- Signed-off-by: pallab-js <sonowalpallabjyoti@gmail.com>
This commit is contained in:
@@ -31,7 +31,7 @@ class RawKeyFocusScope extends StatelessWidget {
|
|||||||
// https://github.com/flutter/flutter/issues/154053
|
// https://github.com/flutter/flutter/issues/154053
|
||||||
final useRawKeyEvents = isLinux && !isWeb;
|
final useRawKeyEvents = isLinux && !isWeb;
|
||||||
// FIXME: On Windows, `AltGr` will generate `Alt` and `Control` key events,
|
// FIXME: On Windows, `AltGr` will generate `Alt` and `Control` key events,
|
||||||
// while `Alt` and `Control` are seperated key events for en-US input method.
|
// while `Alt` and `Control` are separated key events for en-US input method.
|
||||||
return FocusScope(
|
return FocusScope(
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
child: Focus(
|
child: Focus(
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
//!
|
//!
|
||||||
//! For now, we transfer all file names with windows separators, UTF-16 encoded.
|
//! For now, we transfer all file names with windows separators, UTF-16 encoded.
|
||||||
//! *Need a way to transfer file names with '\' safely*.
|
//! *Need a way to transfer file names with '\' safely*.
|
||||||
//! Maybe we can use URL encoded file names and '/' seperators as a new standard, while keep the support to old schemes.
|
//! Maybe we can use URL encoded file names and '/' separators as a new standard, while keep the support to old schemes.
|
||||||
//!
|
//!
|
||||||
//! # Note
|
//! # Note
|
||||||
//! - all files on FS should be read only, and mark the owner to be the current user
|
//! - all files on FS should be read only, and mark the owner to be the current user
|
||||||
|
|||||||
@@ -29,4 +29,4 @@ TODO
|
|||||||
|
|
||||||
## X11
|
## X11
|
||||||
|
|
||||||
## OSX
|
## macOS
|
||||||
|
|||||||
@@ -52,12 +52,12 @@ impl InvokeUiCM for SciterHandler {
|
|||||||
self.call("newMessage", &make_args!(id, text));
|
self.call("newMessage", &make_args!(id, text));
|
||||||
}
|
}
|
||||||
|
|
||||||
fn change_theme(&self, _dark: String) {
|
fn change_theme(&self, dark: String) {
|
||||||
// TODO
|
self.call("changeTheme", &make_args!(dark));
|
||||||
}
|
}
|
||||||
|
|
||||||
fn change_language(&self) {
|
fn change_language(&self) {
|
||||||
// TODO
|
self.call("changeLanguage", &make_args!());
|
||||||
}
|
}
|
||||||
|
|
||||||
fn show_elevation(&self, show: bool) {
|
fn show_elevation(&self, show: bool) {
|
||||||
|
|||||||
Reference in New Issue
Block a user