From 324a0cbbff7db2b450992600c8ed88d49519b988 Mon Sep 17 00:00:00 2001 From: jq1836 <95712150+jq1836@users.noreply.github.com> Date: Mon, 21 Aug 2023 00:47:08 +0800 Subject: [PATCH] [#1998] Fix hard to read text in dark labels (#2029) Text in file type labels in the summary view are hard to read, particularly when the label background is dark. Let's make the text in the labels readable when the label background is dark. --- frontend/src/views/c-authorship.vue | 4 ++-- frontend/src/views/c-summary.vue | 4 ++-- frontend/src/views/c-zoom.vue | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/views/c-authorship.vue b/frontend/src/views/c-authorship.vue index 12a0caef69..3bba9eb22e 100644 --- a/frontend/src/views/c-authorship.vue +++ b/frontend/src/views/c-authorship.vue @@ -760,8 +760,8 @@ export default defineComponent({ return `${file.lineCount} (${file.lineCount - (file.blankLineCount ?? 0)})`; }, - getFontColor() { - return window.getFontColor; + getFontColor(color: string) { + return window.getFontColor(color); }, }, }); diff --git a/frontend/src/views/c-summary.vue b/frontend/src/views/c-summary.vue index 3c47a604ce..3ac769d57f 100644 --- a/frontend/src/views/c-summary.vue +++ b/frontend/src/views/c-summary.vue @@ -930,8 +930,8 @@ export default defineComponent({ return window.getDateStr(datems); }, - getFontColor() { - return window.getFontColor; + getFontColor(color: string) { + return window.getFontColor(color); }, }, }); diff --git a/frontend/src/views/c-zoom.vue b/frontend/src/views/c-zoom.vue index 09fad504a3..ec8ee458c0 100644 --- a/frontend/src/views/c-zoom.vue +++ b/frontend/src/views/c-zoom.vue @@ -505,8 +505,8 @@ export default defineComponent({ return false; }, - getFontColor() { - return window.getFontColor; + getFontColor(color: string) { + return window.getFontColor(color); }, }, });