This commit is contained in:
Tom Najdek 2026-04-09 12:05:55 +00:00 • committed by GitHub
commit f11d21d3f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 20 additions and 5 deletions

View file

@ -1236,7 +1236,8 @@ class VirtualizedTable extends React.Component {
"focus-states-target",
{
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,

View file

@ -62,6 +62,13 @@
</menulist>
</hbox>
<hbox align="center">
<checkbox data-l10n-id="preferences-item-pane-disable-alternating-rows"
preference="extensions.zotero.ui.noAlternatingRows"
native="true"
/>
</hbox>
<vbox id="item-pane-header-bib-entry-options" class="indented-pref">
<hbox align="center">
<label data-l10n-id="preferences-item-pane-header-style" control="item-pane-header-style-menu"/>

View file

@ -45,6 +45,9 @@ preferences-item-pane-header-style = Header Citation Style:
preferences-item-pane-header-locale = Header Language:
preferences-item-pane-header-missing-style = Missing style: <{ $shortName }>
preferences-item-pane-disable-alternating-rows =
.label = Disable alternating row colors
preferences-locate-library-lookup-intro = Library Lookup can find a resource online using your library’s OpenURL resolver.
preferences-locate-resolver = Resolver:
preferences-locate-base-url = Base URL:

View file

@ -75,8 +75,10 @@
.virtualized-table, .drag-image-container {
.row {
&.odd:not(.selected) {
background-color: var(--material-stripe);
@include state(".virtualized-table:not(.no-alternating-rows)") {
&.odd:not(.selected) {
background-color: var(--material-stripe);
}
}
&.even:not(.selected) {

View file

@ -68,8 +68,10 @@
.virtualized-table {
.row {
&.odd:not(.selected) {
background-color: var(--material-stripe);
@include state(".virtualized-table:not(.no-alternating-rows)") {
&.odd:not(.selected) {
background-color: var(--material-stripe);
}
}
&.even:not(.selected) {