Revision: 3937
Author: [email protected]
Date: Wed Sep  1 09:34:22 2010
Log: Increased visibility on titles of selected tables.
http://code.google.com/p/power-architect/source/detail?r=3937

Modified:
 /trunk/src/main/java/ca/sqlpower/architect/swingui/BasicTablePaneUI.java

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/swingui/BasicTablePaneUI.java Mon Aug 9 15:23:27 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/swingui/BasicTablePaneUI.java Wed Sep 1 09:34:22 2010
@@ -179,7 +179,13 @@
                            g2.fillRect(0, 0, tp.getWidth(), fontHeight);
                        }

-                       g2.setColor(tp.getForegroundColor());
+                       // also darken title text if table is selected
+                       if (tp.selected){
+                           g2.setColor(tp.getForegroundColor().darker());
+                       } else {
+                           g2.setColor(tp.getForegroundColor());
+                       }
+

                        // print table name
                        g2.drawString(getTitleString(tablePane), 0, y += 
ascent);

Reply via email to