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:
pallab-js
2026-04-15 15:05:51 +05:30
committed by GitHub
parent 91de51290d
commit 091f2c6135
4 changed files with 6 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ class RawKeyFocusScope extends StatelessWidget {
// https://github.com/flutter/flutter/issues/154053
final useRawKeyEvents = isLinux && !isWeb;
// 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(
autofocus: true,
child: Focus(

View File

@@ -12,7 +12,7 @@
//!
//! For now, we transfer all file names with windows separators, UTF-16 encoded.
//! *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
//! - all files on FS should be read only, and mark the owner to be the current user

View File

@@ -29,4 +29,4 @@ TODO
## X11
## OSX
## macOS

View File

@@ -52,12 +52,12 @@ impl InvokeUiCM for SciterHandler {
self.call("newMessage", &make_args!(id, text));
}
fn change_theme(&self, _dark: String) {
// TODO
fn change_theme(&self, dark: String) {
self.call("changeTheme", &make_args!(dark));
}
fn change_language(&self) {
// TODO
self.call("changeLanguage", &make_args!());
}
fn show_elevation(&self, show: bool) {