mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-05-02 10:16:28 +02: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
|
||||
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(
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -29,4 +29,4 @@ TODO
|
||||
|
||||
## X11
|
||||
|
||||
## OSX
|
||||
## macOS
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user