From 334a55b2aa4f54115f1ee105e7932c02ff01d836 Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Tue, 27 Aug 2024 12:36:20 +0200 Subject: [PATCH] Add an option to disable alternating row colors. Resolves #4628. --- chrome/content/zotero/components/virtualized-table.jsx | 3 ++- .../content/zotero/preferences/preferences_general.xhtml | 7 +++++++ chrome/locale/en-US/zotero/preferences.ftl | 3 +++ scss/components/_item-tree.scss | 6 ++++-- scss/components/_rtfScan.scss | 6 ++++-- 5 files changed, 20 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/components/virtualized-table.jsx b/chrome/content/zotero/components/virtualized-table.jsx index d562847432..de79046b00 100644 --- a/chrome/content/zotero/components/virtualized-table.jsx +++ b/chrome/content/zotero/components/virtualized-table.jsx @@ -1258,7 +1258,8 @@ class VirtualizedTable extends React.Component { onMouseLeave: e => this._handleMouseLeave(e), className: cx(["virtualized-table", { resizing: this.state.resizing, - 'multi-select': this.props.multiSelect + 'multi-select': this.props.multiSelect, + 'no-alternating-rows': Zotero.Prefs.get('ui.noAlternatingRows'), }]), id: this.props.id, ref: ref => this._topDiv = ref, diff --git a/chrome/content/zotero/preferences/preferences_general.xhtml b/chrome/content/zotero/preferences/preferences_general.xhtml index 19210ebf11..cd2dc668f3 100644 --- a/chrome/content/zotero/preferences/preferences_general.xhtml +++ b/chrome/content/zotero/preferences/preferences_general.xhtml @@ -58,6 +58,13 @@ + + + +