Skip to content

Commit 091f2c6

Browse files
authored
impl(cm): implement change_theme and change_language callbacks (rustdesk#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>
1 parent 91de512 commit 091f2c6

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

flutter/lib/common/widgets/remote_input.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class RawKeyFocusScope extends StatelessWidget {
3131
// https://github.com/flutter/flutter/issues/154053
3232
final useRawKeyEvents = isLinux && !isWeb;
3333
// FIXME: On Windows, `AltGr` will generate `Alt` and `Control` key events,
34-
// while `Alt` and `Control` are seperated key events for en-US input method.
34+
// while `Alt` and `Control` are separated key events for en-US input method.
3535
return FocusScope(
3636
autofocus: true,
3737
child: Focus(

libs/clipboard/src/platform/unix/fuse/cs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//!
1313
//! For now, we transfer all file names with windows separators, UTF-16 encoded.
1414
//! *Need a way to transfer file names with '\' safely*.
15-
//! Maybe we can use URL encoded file names and '/' seperators as a new standard, while keep the support to old schemes.
15+
//! Maybe we can use URL encoded file names and '/' separators as a new standard, while keep the support to old schemes.
1616
//!
1717
//! # Note
1818
//! - all files on FS should be read only, and mark the owner to be the current user

libs/virtual_display/dylib/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ TODO
2929

3030
## X11
3131

32-
## OSX
32+
## macOS

src/ui/cm.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ impl InvokeUiCM for SciterHandler {
5252
self.call("newMessage", &make_args!(id, text));
5353
}
5454

55-
fn change_theme(&self, _dark: String) {
56-
// TODO
55+
fn change_theme(&self, dark: String) {
56+
self.call("changeTheme", &make_args!(dark));
5757
}
5858

5959
fn change_language(&self) {
60-
// TODO
60+
self.call("changeLanguage", &make_args!());
6161
}
6262

6363
fn show_elevation(&self, show: bool) {

0 commit comments

Comments
 (0)