From 62fdb7dde2115b0e5ebf4958edcc26802dd2b554 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Wed, 27 Apr 2022 18:50:15 -0400 Subject: [PATCH] change errors.row to errors.list in theme.txt --- app/src/processing/app/ui/ErrorTable.java | 8 ++++---- build/shared/lib/theme.txt | 6 +++--- todo.txt | 1 + 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/app/src/processing/app/ui/ErrorTable.java b/app/src/processing/app/ui/ErrorTable.java index d55e9e26b..82fe8698c 100644 --- a/app/src/processing/app/ui/ErrorTable.java +++ b/app/src/processing/app/ui/ErrorTable.java @@ -106,7 +106,7 @@ public class ErrorTable extends JTable { protected void updateTheme() { - setBackground(Theme.getColor("errors.row.bgcolor")); + setBackground(Theme.getColor("errors.list.bgcolor")); getTableHeader().setDefaultRenderer(new GradyHeaderRenderer()); setDefaultRenderer(Object.class, new GradyRowRenderer()); } @@ -182,11 +182,11 @@ public class ErrorTable extends JTable { Color warningIndicatorColor; public GradyRowRenderer() { - setFont(Theme.getFont("errors.row.font")); + setFont(Theme.getFont("errors.list.font")); setAlignmentX(LEFT_ALIGNMENT); - textColor = Theme.getColor("errors.row.fgcolor"); - bgColor = Theme.getColor("errors.row.bgcolor"); + textColor = Theme.getColor("errors.list.fgcolor"); + bgColor = Theme.getColor("errors.list.bgcolor"); textColorSelected = Theme.getColor("errors.selection.fgcolor"); bgColorSelected = Theme.getColor("errors.selection.bgcolor"); bgColorError = Theme.getColor("errors.selection.error.bgcolor"); diff --git a/build/shared/lib/theme.txt b/build/shared/lib/theme.txt index 2bdc3a09a..5bce1e0bb 100644 --- a/build/shared/lib/theme.txt +++ b/build/shared/lib/theme.txt @@ -167,9 +167,9 @@ editor.column.warning.color = #fed456 errors.header.font = processing.sans,plain,12 errors.header.bgcolor = #ebebeb errors.header.fgcolor = #484848 -errors.row.font = processing.sans,plain,12 -errors.row.fgcolor = #484848 -errors.row.bgcolor = #ffffff +errors.list.font = processing.sans,plain,12 +errors.list.fgcolor = #484848 +errors.list.bgcolor = #ffffff errors.selection.fgcolor = #242424 errors.selection.bgcolor = #e5e5e5 errors.selection.error.bgcolor = #f5e6e6 diff --git a/todo.txt b/todo.txt index 7846a5e0b..5d3ceb354 100755 --- a/todo.txt +++ b/todo.txt @@ -14,6 +14,7 @@ X add updateTheme() to contrib.ListPanel X right now pulling Theme.getColor() directly X but need to make sure repaint() is called anyway X use errors.row.bgcolor as bgcolor for the error list +X change errors.row to errors.list in theme.txt contrib X Double-clicking a .pde file also opens an untitled/empty sketch