From bea7a0c0f3e3aaa1961cf5019fcfd6e62bd06d00 Mon Sep 17 00:00:00 2001 From: Jared Goodwin Date: Thu, 18 May 2023 09:33:38 -0700 Subject: [PATCH] WIP on viewer design implementation. --- .../ViewerPageDataProvider.cs | 21 ++++---- .../images/viewer/remotely-logo-dark.svg | 54 +++++++++++++++++++ .../images/viewer/remotely-logo-light.svg | 54 +++++++++++++++++++ 3 files changed, 117 insertions(+), 12 deletions(-) create mode 100644 Server/wwwroot/images/viewer/remotely-logo-dark.svg create mode 100644 Server/wwwroot/images/viewer/remotely-logo-light.svg diff --git a/Server/Services/RcImplementations/ViewerPageDataProvider.cs b/Server/Services/RcImplementations/ViewerPageDataProvider.cs index 049b5e983..a366646d9 100644 --- a/Server/Services/RcImplementations/ViewerPageDataProvider.cs +++ b/Server/Services/RcImplementations/ViewerPageDataProvider.cs @@ -20,29 +20,26 @@ public ViewerPageDataProvider(IDataService dataService, IApplicationConfig appCo _appConfig = appConfig; } - public Task GetFaviconUrl(ViewerModel viewerModel) + public Task GetFaviconUrl(PageModel viewerModel) { return Task.FromResult("/_content/Immense.RemoteControl.Server/favicon.ico"); } - public Task GetPageDescription(ViewerModel viewerModel) + public async Task GetLogoUrl(PageModel viewerModel) { - return Task.FromResult("Open-source remote support tools."); + return await GetTheme(viewerModel) == ViewerPageTheme.Dark ? + "/images/viewer/remotely-logo-dark.svg" : + "/images/viewer/remotely-logo-light.svg"; } - public Task GetPageTitle(PageModel pageModel) + public Task GetPageDescription(PageModel viewerModel) { - return Task.FromResult("Remotely Remote Control"); - } - - public Task GetProductName(PageModel pageModel) - { - return Task.FromResult("Remotely"); + return Task.FromResult("Open-source remote support tools."); } - public Task GetProductSubtitle(PageModel pageModel) + public Task GetPageTitle(PageModel pageModel) { - return Task.FromResult("Remote Control"); + return Task.FromResult("Remotely Remote Control"); } public Task GetTheme(PageModel pageModel) diff --git a/Server/wwwroot/images/viewer/remotely-logo-dark.svg b/Server/wwwroot/images/viewer/remotely-logo-dark.svg new file mode 100644 index 000000000..147025a32 --- /dev/null +++ b/Server/wwwroot/images/viewer/remotely-logo-dark.svg @@ -0,0 +1,54 @@ + + + + + + + + Remotely + + diff --git a/Server/wwwroot/images/viewer/remotely-logo-light.svg b/Server/wwwroot/images/viewer/remotely-logo-light.svg new file mode 100644 index 000000000..4f4af8be7 --- /dev/null +++ b/Server/wwwroot/images/viewer/remotely-logo-light.svg @@ -0,0 +1,54 @@ + + + + + + + + Remotely + +