Add user preference to disable showing size bars in change tables

Some users dislike the rainbow colored bars in the change tables that
indicate the change sizes. Add a preference setting to allow users to
switch between colored bars and text representation of the change
size.

Bug: issue 2299
Change-Id: I689c3cebf21252d7f70a5df1d312c179189d10fc
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2013-12-06 08:43:22 +01:00
parent 6c0cae6972
commit 13e03a7631
9 changed files with 83 additions and 6 deletions

View File

@@ -152,6 +152,9 @@ public final class AccountGeneralPreferences {
@Column(id = 15, length = 20, notNull = false)
protected String changeScreen;
@Column(id = 16)
protected boolean sizeBarInChangeTable;
public AccountGeneralPreferences() {
}
@@ -294,6 +297,14 @@ public final class AccountGeneralPreferences {
changeScreen = ui != null ? ui.name() : null;
}
public boolean isSizeBarInChangeTable() {
return sizeBarInChangeTable;
}
public void setSizeBarInChangeTable(boolean sizeBarInChangeTable) {
this.sizeBarInChangeTable = sizeBarInChangeTable;
}
public void resetToDefaults() {
maximumPageSize = DEFAULT_PAGESIZE;
showSiteHeader = true;
@@ -309,5 +320,6 @@ public final class AccountGeneralPreferences {
commentVisibilityStrategy = null;
diffView = null;
changeScreen = null;
sizeBarInChangeTable = true;
}
}