Alberto1202 / zkspreadsheet

Automatically exported from code.google.com/p/zkspreadsheet
0 stars 0 forks source link

Background/Font color is not set correctly. #291

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Q:What steps will reproduce the problem?

Here's the sample code: 

public void setBackgroundColor(String color) {
if (color == null)
return;
backgroundColorBtn.setColor(color);
Utils.setBackgroundColor(spreadsheet.getSelectedSheet(), 
getSpreadsheetMaxSelection(), backgroundColorBtn.getColor());
}

public void setFontColor(String color) {
if (color == null)
return;
fontColorBtn.setColor(color);
Utils.setFontColor(spreadsheet.getSelectedSheet(), 
getSpreadsheetMaxSelection(), fontColorBtn.getColor());
}

Q:What is the expected output? What do you see instead?
Background/Font color is not set correctly.

For example, if we set the background of a cell to "#9D87A4", somehow it will 
be converted as "#969696".
Another example is that we set the color "#D60A65" but it will be "#993366"

Q:What version of the product are you using? On what operating system?
Version: ZK Spreadsheet 2.0

Please provide any additional information below.

Original issue reported on code.google.com by jean...@gmail.com on 25 Jan 2011 at 12:38

GoogleCodeExporter commented 9 years ago
Duplicate with issue 289.

Original comment by chenhe...@gmail.com on 26 Jan 2011 at 1:26