diff --git a/Desktop.Unix/ViewModels/MainWindowViewModel.cs b/Desktop.Unix/ViewModels/MainWindowViewModel.cs index 0757db37..14b2f531 100644 --- a/Desktop.Unix/ViewModels/MainWindowViewModel.cs +++ b/Desktop.Unix/ViewModels/MainWindowViewModel.cs @@ -160,10 +160,6 @@ namespace Remotely.Desktop.Unix.ViewModels prompt.Owner = App.Current?.MainWindow; await prompt.ShowDialog(App.Current?.MainWindow); var result = HostNamePromptViewModel.Current.Host.TrimEnd("/".ToCharArray()); - if (!result.StartsWith("https://") && !result.StartsWith("http://")) - { - result = $"https://{result}"; - } if (result != Host) { Host = result; diff --git a/Desktop.Win/ViewModels/MainWindowViewModel.cs b/Desktop.Win/ViewModels/MainWindowViewModel.cs index 26c72ddf..145068f3 100644 --- a/Desktop.Win/ViewModels/MainWindowViewModel.cs +++ b/Desktop.Win/ViewModels/MainWindowViewModel.cs @@ -177,10 +177,6 @@ namespace Remotely.Desktop.Win.ViewModels prompt.Owner = App.Current?.MainWindow; prompt.ShowDialog(); var result = HostNamePromptViewModel.Current.Host.TrimEnd("/".ToCharArray()); - if (!result.StartsWith("https://") && !result.StartsWith("http://")) - { - result = $"https://{result}"; - } if (result != Host) { Host = result; diff --git a/README.md b/README.md index 55661912..80f5cae3 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,7 @@ Note: To retain your settings between upgrades, copy your settings to appsetting * TrustedCorsOrigins: For cross-origin API requests via JavaScript. The websites listed in this array with be allowed to make requests to the API. This does not grant authentication, which is still required on most endpoints. * KnownProxies: If your Nginx server is on a different machine and is forwarding requests to the Remotely server, you will need to add the IP of the Nginx server to this array. * Smpt*: SMTP settings for auto-generated system emails (such as registration and password reset). +* Theme: The color theme to use for the site. Values are "Light" or "Dark". ## API and Integrations Remotely has a basic API, which can be browsed at https://tryremotely.lucency.co/swagger (or your own server instance). Most endpoints require authentication via the /api/Login, which in turn requires the AllowApiLogin option to be set to true in appsettings.json. If you're not familiar with how CORS works, I recommend reading up on it before proceeding. diff --git a/Server/Pages/RemoteControl.cshtml b/Server/Pages/RemoteControl.cshtml index e4ea40c0..ea8a2420 100644 --- a/Server/Pages/RemoteControl.cshtml +++ b/Server/Pages/RemoteControl.cshtml @@ -18,7 +18,7 @@ - @if (AppConfig.Theme == "Light") + @if (AppConfig.Theme.ToLower() == "light") { } diff --git a/Server/Pages/Shared/_Layout.cshtml b/Server/Pages/Shared/_Layout.cshtml index 84981bad..320355ca 100644 --- a/Server/Pages/Shared/_Layout.cshtml +++ b/Server/Pages/Shared/_Layout.cshtml @@ -14,7 +14,7 @@ - @if (AppConfig.Theme == "Light") + @if (AppConfig.Theme.ToLower() == "light") {