Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add colors to icons

Oliver Güntherbc2cd055d767
diff --git a/frontend/src/app/features/work-packages/components/wp-fast-table/builders/timestamps/timestamps-column-builder.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/timestamps/timestamps-column-builder.ts
index e035598d518..30275d43f5b 100644
--- a/frontend/src/app/features/work-packages/components/wp-fast-table/builders/timestamps/timestamps-column-builder.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/timestamps/timestamps-column-builder.ts
@@ -58,15 +58,15 @@ export class TimestampsColumnBuilder {
schema:ISchemaProxy,
):HTMLElement|null {
if ((!base._meta.exists && compare._meta.exists) || (!base._meta.matchesFilters && compare._meta.matchesFilters)) {
- return opIconElement('icon-add', 'op-timestamps--icon-added');
+ return opIconElement('icon-add', 'op-table-timestamps--icon-added');
}
if ((base._meta.exists && !compare._meta.exists) || (base._meta.matchesFilters && !compare._meta.matchesFilters)) {
- return opIconElement('icon-minus1', 'op-timestamps--icon-removed');
+ return opIconElement('icon-minus1', 'op-table-timestamps--icon-removed');
}
if (this.visibleAttributeChanged(base, schema)) {
- return opIconElement('icon-arrow-left-right', 'op-timestamps--icon-changed');
+ return opIconElement('icon-arrow-left-right', 'op-table-timestamps--icon-changed');
}
return null;
diff --git a/frontend/src/app/features/work-packages/components/wp-table/wp-table.directive.html b/frontend/src/app/features/work-packages/components/wp-table/wp-table.directive.html
index 5494391bc50..2cdd4236f62 100644
--- a/frontend/src/app/features/work-packages/components/wp-table/wp-table.directive.html
+++ b/frontend/src/app/features/work-packages/components/wp-table/wp-table.directive.html
@@ -1,6 +1,9 @@
<div class="work-packages-split-view--tabletimeline-content" *ngIf="query">
<div class="work-packages-tabletimeline--table-side work-package-table--container __hidden_overflow_container">
- <table class="keyboard-accessible-list generic-table work-package-table">
+ <table
+ class="keyboard-accessible-list generic-table work-package-table"
+ [class.op-table-timestamps]="wpTableTimestamps.isActive()"
+ >
<colgroup>
<col *ngIf="configuration.dragAndDropEnabled">
<col *ngIf="wpTableTimestamps.isActive()">
diff --git a/frontend/src/global_styles/layout/work_packages/_index.sass b/frontend/src/global_styles/layout/work_packages/_index.sass
index 322ade8f1cd..8ef65f6a25c 100644
--- a/frontend/src/global_styles/layout/work_packages/_index.sass
+++ b/frontend/src/global_styles/layout/work_packages/_index.sass
@@ -1,4 +1,5 @@
@import table
+@import table_timestamps
@import table_embedded
@import details_view
@import full_view
diff --git a/frontend/src/global_styles/layout/work_packages/_table_timestamps.sass b/frontend/src/global_styles/layout/work_packages/_table_timestamps.sass
new file mode 100644
index 00000000000..2b7d8bd6ba5
--- /dev/null
+++ b/frontend/src/global_styles/layout/work_packages/_table_timestamps.sass
@@ -0,0 +1,34 @@
+//-- copyright
+// OpenProject is an open source project management software.
+// Copyright (C) 2012-2023 the OpenProject GmbH
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License version 3.
+//
+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
+// Copyright (C) 2006-2013 Jean-Philippe Lang
+// Copyright (C) 2010-2013 the ChiliProject Team
+//
+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License
+// as published by the Free Software Foundation; either version 2
+// of the License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+//
+// See COPYRIGHT and LICENSE files for more details.
+//++
+
+.op-table-timestamps
+ &--icon-added
+ color: #35C53F
+
+ &--icon-changed
+ color: #54AFE0