Skip to content

Commit

Permalink
[#1998] Fix hard to read text in dark labels (#2029)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jq1836 committed Aug 20, 2023
1 parent a537db6 commit 324a0cb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions frontend/src/views/c-authorship.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
},
});
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/c-summary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -930,8 +930,8 @@ export default defineComponent({
return window.getDateStr(datems);
},
getFontColor() {
return window.getFontColor;
getFontColor(color: string) {
return window.getFontColor(color);
},
},
});
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/c-zoom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,8 @@ export default defineComponent({
return false;
},
getFontColor() {
return window.getFontColor;
getFontColor(color: string) {
return window.getFontColor(color);
},
},
});
Expand Down

0 comments on commit 324a0cb

Please sign in to comment.