Merge pull request #2647 from KG7x/master

Fix typo & Optimize images & Cleanup
This commit is contained in:
RustDesk
2022-12-26 13:16:52 +08:00
committed by GitHub
83 changed files with 103 additions and 103 deletions

View File

@@ -305,7 +305,7 @@ fn core_main_invoke_new_connection(mut args: std::env::Args) -> Option<Vec<Strin
let res = crate::platform::send_message_to_hnwd(
"FLUTTER_RUNNER_WIN32_WINDOW",
"RustDesk",
(WM_USER + 2) as _, // refered from unilinks desktop pub
(WM_USER + 2) as _, // referred from unilinks desktop pub
uni_links.as_str(),
true,
);

View File

@@ -500,7 +500,7 @@ pub fn start_os_service() {
Err(err) => {
log::error!("Failed to start server: {}", err);
}
_ => { /*no hapen*/ }
_ => { /*no happen*/ }
}
}
std::thread::sleep(std::time::Duration::from_millis(super::SERVICE_INTERVAL));

View File

@@ -251,7 +251,7 @@ impl Connection {
loop {
tokio::select! {
// biased; // video has higher priority // causing test_delay_timer failed while transfering big file
// biased; // video has higher priority // causing test_delay_timer failed while transferring big file
Some(data) = rx_from_cm.recv() => {
match data {

View File

@@ -223,7 +223,7 @@ lazy_static::lazy_static! {
// First call set_uinput() will create keyboard and mouse clients.
// The clients are ipc connections that must live shorter than tokio runtime.
// Thus this funtion must not be called in a temporary runtime.
// Thus this function must not be called in a temporary runtime.
#[cfg(target_os = "linux")]
pub async fn setup_uinput(minx: i32, maxx: i32, miny: i32, maxy: i32) -> ResultType<()> {
// Keyboard and mouse both open /dev/uinput

View File

@@ -198,7 +198,7 @@ impl VideoQoS {
#[cfg(target_os = "android")]
{
// fix when andorid screen shrinks
// fix when android screen shrinks
let fix = scrap::Display::fix_quality() as u32;
log::debug!("Android screen, fix quality:{}", fix);
let base_bitrate = base_bitrate * fix;

View File

@@ -45,7 +45,7 @@ div.right-panel {
div.icon-and-id {
flow: horizontal;
border-spacing: 1em;
border-spacing: 1em;
}
div.icon {
@@ -64,7 +64,7 @@ div.id {
div.permissions {
flow: horizontal;
border-spacing: 0.5em;
border-spacing: 0.5em;
}
div.permissions > div {
@@ -141,7 +141,7 @@ button.elevate>span {
}
button.elevate>span>span {
margin-left:*;
margin-left:*;
margin-right:*;
}

View File

@@ -4,7 +4,7 @@
@import url(common.css);
@import url(cm.css);
</style>
<script type="text/tiscript">
<script type="text/tiscript">
include "common.tis";
include "cm.tis";
</script>

View File

@@ -31,7 +31,7 @@ class Body: Reactor.Component
var disconnected = c.disconnected;
var show_elevation_btn = handler.can_elevate() && show_elevation && !c.is_file_transfer && c.port_forward.length == 0;
var show_accept_btn = handler.get_option('approve-mode') != 'password';
// below size:* is work around for Linux, it alreayd set in css, but not work, shit sciter
// below size:* is work around for Linux, it already set in css, but not work, shit sciter
return <div .content style="size:*">
<div .left-panel>
<div .icon-and-id>

View File

@@ -56,7 +56,7 @@ button[type=checkbox], button[type=checkbox]:active {
button.outline {
border: color(border) solid 1px;
background: transparent;
background: transparent;
color: color(text);
}
@@ -115,7 +115,7 @@ textarea:empty {
.base:disabled { background: transparent; }
.slider:hover { background: grey; }
.slider:active { background: grey; }
.base { size: 16px; }
.base { size: 16px; }
.corner { background: white; }
}
@@ -185,7 +185,7 @@ header div.window-icon icon {
header caption {
size: *;
}
}
@media platform != "OSX" {
button.window {

View File

@@ -12,22 +12,22 @@ div#file-transfer {
}
table
{
{
font: system;
border: 1px solid color(border);
flow: table-fixed;
prototype: Grid;
size: *;
padding:0;
border-spacing: 0;
border-spacing: 0;
overflow-x: auto;
overflow-y: hidden;
}
table > thead {
table > thead {
behavior: column-resizer;
border-bottom: color(border) solid 1px;
}
}
table > tbody {
behavior: select-multiple;
@@ -41,20 +41,20 @@ table th {
}
table th
{
{
padding: 4px;
foreground-repeat: no-repeat;
foreground-position: 50% 3px auto auto;
border-left: color(border) solid 1px;
}
}
table th.sortable[sort=asc]
{
table th.sortable[sort=asc]
{
foreground-image: url(stock:arrow-down);
}
}
table th.sortable[sort=desc]
{
{
foreground-image: url(stock:arrow-up);
}
@@ -81,10 +81,10 @@ table.has_current thead th:current {
table tr:nth-child(odd) { background-color: white; } /* each odd row */
table tr:nth-child(even) { background-color: #F4F5F6; } /* each even row */
table.has_current tr:current /* current row */
{
background-color: color(accent);
}
table.has_current tr:current /* current row */
{
background-color: color(accent);
}
table.has_current tbody tr:checked
{
@@ -95,9 +95,9 @@ table.has_current tbody tr:checked td {
color: highlighttext;
}
table td
{
padding: 4px;
table td
{
padding: 4px;
text-align: left;
font-size: 1em;
height: 1.4em;
@@ -124,11 +124,11 @@ table td:nth-child(4) {
section {
size: *;
margin: 1em;
border-spacing: 0.5em;
border-spacing: 0.5em;
}
table td:nth-child(1) {
foreground-repeat: no-repeat;
foreground-repeat: no-repeat;
foreground-position: 50% 50%
}
@@ -160,11 +160,11 @@ div.toolbar > div.button:hover {
div.toolbar > div.send {
flow: horizontal;
border-spacing: 0.5em;
border-spacing: 0.5em;
}
div.remote > div.send svg {
transform: scale(-1, 1);
transform: scale(-1, 1);
}
div.navbar {
@@ -207,7 +207,7 @@ table.job-table tr td {
padding: 0.5em 1em;
border-bottom: color(border) 1px solid;
flow: horizontal;
border-spacing: 1em;
border-spacing: 1em;
height: 3em;
overflow-x: hidden;
}
@@ -217,11 +217,11 @@ table.job-table tr svg {
}
table.job-table tr.is_remote svg {
transform: scale(-1, 1);
transform: scale(-1, 1);
}
table.job-table tr.is_remote div.svg_continue svg {
transform: scale(1, 1);
transform: scale(1, 1);
}
table.job-table tr td div.text {
@@ -246,7 +246,7 @@ table#port-forward thead tr th {
table#port-forward tr td {
height: 3em;
text-align: left;
text-align: left;
}
table#port-forward input[type=text], table#port-forward input[type=number] {

View File

@@ -8,7 +8,7 @@ header #screens {
height: 22px;
border-radius: 4px;
flow: horizontal;
border-spacing: 0.5em;
border-spacing: 0.5em;
padding-right: 1em;
position: relative;
}

View File

@@ -26,7 +26,7 @@ handler.setDisplay = function(x, y, w, h, cursor_embeded) {
if (recording) handler.record_screen(true, w, h);
}
// in case toolbar not shown correclty
// in case toolbar not shown correctly
view.windowMinSize = (scaleIt(500), scaleIt(300));
function adaptDisplay() {

View File

@@ -95,7 +95,7 @@ extern "C"
CreateEnvironmentBlock(&lpEnvironment, // Environment block
hToken, // New token
TRUE); // Inheritence
TRUE); // Inheritance
}
if (lpEnvironment)
{