diff --git a/dist/index.js b/dist/index.js index 5a00f3db..3aa75c1d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2525,6 +2525,7 @@ ); this.color.subscribe(() => { if (this.isSelected.value == false) return; + if (this.chatViewModel.selectedPage.value != "tasks" /* Tasks */) return; this.applyColor(); }); this.selectedPage.subscribeSilent(() => { @@ -3233,7 +3234,7 @@ var translations = allTranslations[language] || allTranslations.en; // src/ViewModel/Chat/chatViewModel.ts - var ChatViewModel = class { + var ChatViewModel2 = class { // init constructor(coreViewModel, storageModel2, chatModel, settingsViewModel2, notificationViewModel, connectionViewModel2, chatListViewModel2) { this.coreViewModel = coreViewModel; @@ -3464,7 +3465,7 @@ this.chatViewModels.remove(chatViewModel); }; this.createChatViewModel = (chatModel) => { - return new ChatViewModel( + return new ChatViewModel2( this.coreViewModel, this.storageModel, chatModel, diff --git a/dist/manifest.json b/dist/manifest.json index 07f4b86d..fae58015 100644 --- a/dist/manifest.json +++ b/dist/manifest.json @@ -1,6 +1,8 @@ { "name": "Comms", "display": "standalone", + "theme_color": "black", + "background_color": "black", "icons": [ { "src": "icon.png", diff --git a/src/ViewModel/Pages/boardViewModel.ts b/src/ViewModel/Pages/boardViewModel.ts index f633c2d7..4d705023 100644 --- a/src/ViewModel/Pages/boardViewModel.ts +++ b/src/ViewModel/Pages/boardViewModel.ts @@ -5,7 +5,7 @@ import BoardsAndTasksModel, { TaskFileContent, } from "../../Model/Files/boardsAndTasksModel"; -import ChatViewModel from "../Chat/chatViewModel"; +import ChatViewModel, { ChatPageType } from "../Chat/chatViewModel"; import { Color } from "../../colors"; import CoreViewModel from "../Global/coreViewModel"; import SearchViewModel from "../Utility/searchViewModel"; @@ -273,6 +273,7 @@ export default class BoardViewModel extends TaskContainingPageViewModel { this.color.subscribe(() => { if (this.isSelected.value == false) return; + if (this.chatViewModel.selectedPage.value != ChatPageType.Tasks) return; this.applyColor(); });