mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
does this fix the weird hover background color effects??
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12418 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
committed by
wolf.posdorfer
parent
358412aec1
commit
30369ccbe1
Binary file not shown.
@ -258,12 +258,9 @@ public class RoarPreferencePanel extends JPanel implements ChangeListener {
|
|||||||
// ====================================================================================
|
// ====================================================================================
|
||||||
// ====================================================================================
|
// ====================================================================================
|
||||||
public void paintComponent(Graphics g) {
|
public void paintComponent(Graphics g) {
|
||||||
|
|
||||||
|
|
||||||
// CENTER LOGO
|
// CENTER LOGO
|
||||||
// int imgwi = _backgroundimage.getWidth(null);
|
// int imgwi = _backgroundimage.getWidth(null);
|
||||||
// int imghe = _backgroundimage.getHeight(null);
|
// int imghe = _backgroundimage.getHeight(null);
|
||||||
|
|
||||||
// int x = this.getSize().width;
|
// int x = this.getSize().width;
|
||||||
// x = (x/2)-(imgwi/2) < 0 ? 0 : (x/2)-(imgwi/2) ;
|
// x = (x/2)-(imgwi/2) < 0 ? 0 : (x/2)-(imgwi/2) ;
|
||||||
//
|
//
|
||||||
@ -272,9 +269,11 @@ public class RoarPreferencePanel extends JPanel implements ChangeListener {
|
|||||||
|
|
||||||
|
|
||||||
// LOGO in bottom right corner
|
// LOGO in bottom right corner
|
||||||
|
|
||||||
int x = this.getSize().width - _backgroundimage.getWidth(null);
|
int x = this.getSize().width - _backgroundimage.getWidth(null);
|
||||||
int y = this.getSize().height - _backgroundimage.getHeight(null);
|
int y = this.getSize().height - _backgroundimage.getHeight(null);
|
||||||
|
|
||||||
|
super.paintComponent(g);
|
||||||
g.drawImage(_backgroundimage, x, y, this);
|
g.drawImage(_backgroundimage, x, y, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user