@Override protected Color convertFocused( Color source, String key ) { if( "stack.tab.border.selected.focused".equals( key )) return source; if( "stack.tab.border.selected.focuslost".equals( key )) return source; if( "stack.tab.top.selected.focused".equals( key )) return Colors.undiffMirror( source, 0.5 ); if( "stack.tab.top.selected.focuslost".equals( key )) return Colors.undiffMirror( source, 0.5 ); if( "stack.tab.bottom.selected.focused".equals( key )) return source; if( "stack.tab.bottom.selected.focuslost".equals( key )) return source; if( "stack.tab.text.selected.focused".equals( key )) return Colors.diffMirror( source, 1.0 ); if( "stack.tab.text.selected.focuslost".equals( key )) return Colors.diffMirror( source, 1.0 ); return null; } }
@Override protected Color convertFocused( Color source, String key ) { if( "stack.tab.border.selected.focused".equals( key )) return source; if( "stack.tab.border.selected.focuslost".equals( key )) return source; if( "stack.tab.top.selected.focused".equals( key )) return Colors.undiffMirror( source, 0.5 ); if( "stack.tab.top.selected.focuslost".equals( key )) return Colors.undiffMirror( source, 0.5 ); if( "stack.tab.bottom.selected.focused".equals( key )) return source; if( "stack.tab.bottom.selected.focuslost".equals( key )) return source; if( "stack.tab.text.selected.focused".equals( key )) return Colors.diffMirror( source, 1.0 ); if( "stack.tab.text.selected.focuslost".equals( key )) return Colors.diffMirror( source, 1.0 ); return null; } }
@Override protected Color convertSelected( Color source, String key ) { if( isFocused( key )) return convertFocused( source, key ); if( "stack.tab.border.selected".equals( key )) return source; if( "stack.tab.top.selected".equals( key )) return Colors.undiffMirror( source, 0.5 ); if( "stack.tab.bottom.selected".equals( key )) return source; if( "stack.tab.text.selected".equals( key )) return Colors.diffMirror( source, 1.0 ); return null; }
@Override protected Color convertSelected( Color source, String key ) { if( isFocused( key )) return convertFocused( source, key ); if( "stack.tab.border.selected".equals( key )) return source; if( "stack.tab.top.selected".equals( key )) return Colors.undiffMirror( source, 0.5 ); if( "stack.tab.bottom.selected".equals( key )) return source; if( "stack.tab.text.selected".equals( key )) return Colors.diffMirror( source, 1.0 ); return null; }
@Override protected Color convert( Color source, String key ) { if( isSelected( key )) return convertSelected( source, key ); if( isFocused( key )) return convertFocused( source, key ); if( "stack.tab.border".equals( key )) return source; if( "stack.tab.top".equals( key )) return Colors.undiffMirror( source, 0.5 ); if( "stack.tab.bottom".equals( key )) return source; if( "stack.tab.text".equals( key )) return Colors.diffMirror( source, 1.0 ); return null; }
@Override protected Color convert( Color source, String key ) { if( isSelected( key )) return convertSelected( source, key ); if( isFocused( key )) return convertFocused( source, key ); if( "stack.tab.border".equals( key )) return source; if( "stack.tab.top".equals( key )) return Colors.undiffMirror( source, 0.5 ); if( "stack.tab.bottom".equals( key )) return source; if( "stack.tab.text".equals( key )) return Colors.diffMirror( source, 1.0 ); return null; }
background = Colors.undiffMirror( background, 0.6 ); background = Colors.undiffMirror( background, 0.3 );
background = Colors.undiffMirror( background, 0.6 ); background = Colors.undiffMirror( background, 0.3 );
@Override protected Color convert( Color source, String key ){ if( key.contains( "selected" )) return convertSelected( Colors.undiffMirror( source, 0.2 ), key ); if( key.contains( "focused" )) return convertFocused( Colors.diffMirror( source, 0.2 ), key ); if( "stack.tab.background.top.mouse".equals( key )) return Colors.fuller( source, 0.3 ); if( "stack.tab.background.bottom.mouse".equals( key )) return Colors.fuller( Colors.diffMirror( source, 0.3 ), 0.3 ); if( "stack.tab.border.mouse".equals( key )) return Colors.fuller( Colors.diffMirror( source, 0.6 ), 0.3 ); if( "stack.tab.foreground.mouse".equals( key )) return Colors.fuller( Colors.diffMirror( source, 0.9 ), 0.3 ); if( "stack.tab.background.top".equals( key )) return source; if( "stack.tab.background.bottom".equals( key )) return Colors.diffMirror( source, 0.3 ); if( "stack.tab.border".equals( key )) return Colors.diffMirror( source, 0.6 ); if( "stack.tab.foreground".equals( key )) return Colors.diffMirror( source, 0.9 ); return null; }
@Override protected Color convert( Color source, String key ){ if( key.contains( "selected" )) return convertSelected( Colors.undiffMirror( source, 0.2 ), key ); if( key.contains( "focused" )) return convertFocused( Colors.diffMirror( source, 0.2 ), key ); if( "stack.tab.background.top.mouse".equals( key )) return Colors.fuller( source, 0.3 ); if( "stack.tab.background.bottom.mouse".equals( key )) return Colors.fuller( Colors.diffMirror( source, 0.3 ), 0.3 ); if( "stack.tab.border.mouse".equals( key )) return Colors.fuller( Colors.diffMirror( source, 0.6 ), 0.3 ); if( "stack.tab.foreground.mouse".equals( key )) return Colors.fuller( Colors.diffMirror( source, 0.9 ), 0.3 ); if( "stack.tab.background.top".equals( key )) return source; if( "stack.tab.background.bottom".equals( key )) return Colors.diffMirror( source, 0.3 ); if( "stack.tab.border".equals( key )) return Colors.diffMirror( source, 0.6 ); if( "stack.tab.foreground".equals( key )) return Colors.diffMirror( source, 0.9 ); return null; }
private void doPaintBackground( Graphics g ){ Color background = getBackground(); Color border = null; if( model.isMousePressed() ){ border = Colors.diffMirror( background, 0.3 ); background = Colors.undiffMirror( background, 0.8 ); } else if( model.isSelected() || model.isMouseInside() ){ border = Colors.diffMirror( background, 0.3 ); background = Colors.undiffMirror( background, 0.4 ); } int w = getWidth()-1; int h = getHeight()-1; if( border != null ){ g.setColor( background ); g.fillRoundRect( 0, 0, w, h, 4, 4 ); } }
private void doPaintBackground( Graphics g ){ Color background = getBackground(); Color border = null; if( model.isMousePressed() ){ border = Colors.diffMirror( background, 0.3 ); background = Colors.undiffMirror( background, 0.6 ); } else if( model.isSelected() || model.isMouseInside() ){ border = Colors.diffMirror( background, 0.3 ); background = Colors.undiffMirror( background, 0.3 ); } int w = getWidth()-1; int h = getHeight()-1; if( border != null ){ g.setColor( background ); g.fillRoundRect( 0, 0, w, h, 4, 4 ); g.setColor( border ); g.drawRoundRect( 0, 0, w, h, 4, 4 ); } }
private void doPaintBackground( Graphics g ){ Color background = getBackground(); Color border = null; if( model.isMousePressed() ){ border = Colors.diffMirror( background, 0.3 ); background = Colors.undiffMirror( background, 0.8 ); } else if( model.isSelected() || model.isMouseInside() ){ border = Colors.diffMirror( background, 0.3 ); background = Colors.undiffMirror( background, 0.4 ); } int w = getWidth()-1; int h = getHeight()-1; if( border != null ){ g.setColor( background ); g.fillRoundRect( 0, 0, w, h, 4, 4 ); } }
private void doPaintBackground( Graphics g ){ Color background = getBackground(); Color border = null; if( model.isMousePressed() ){ border = Colors.diffMirror( background, 0.3 ); background = Colors.undiffMirror( background, 0.6 ); } else if( model.isSelected() || model.isMouseInside() ){ border = Colors.diffMirror( background, 0.3 ); background = Colors.undiffMirror( background, 0.3 ); } int w = getWidth()-1; int h = getHeight()-1; if( border != null ){ g.setColor( background ); g.fillRoundRect( 0, 0, w, h, 4, 4 ); g.setColor( border ); g.drawRoundRect( 0, 0, w, h, 4, 4 ); } }
if( model.isMousePressed() ){ border = Colors.diffMirror( background, 0.3 ); background = Colors.undiffMirror( background, 0.8 ); background = Colors.undiffMirror( background, 0.4 );
if( model.isMousePressed() ){ border = Colors.diffMirror( background, 0.3 ); background = Colors.undiffMirror( background, 0.8 ); background = Colors.undiffMirror( background, 0.4 );
undiffMirror( DockUI.getColor( LookAndFeelColors.TITLE_BACKGROUND ), 0.75 ),
setColor( "action.button.selected.enabled", selected ); setColor( "action.button.selected.enabled.focus", diffMirror( selected, factorWeak )); setColor( "action.button.mouse.enabled", undiffMirror( enabled, factor ) ); setColor( "action.button.mouse.enabled.focus", undiffMirror( diffMirror( enabled, factor ), factorWeak )); setColor( "action.button.mouse.selected.enabled", undiffMirror( selected, factor ) ); setColor( "action.button.mouse.selected.enabled.focus", undiffMirror( diffMirror( selected, factor ), factorWeak )); setColor( "action.button.pressed.enabled", undiffMirror( enabled, factorStrong ) ); setColor( "action.button.pressed.enabled.focus", undiffMirror( diffMirror( enabled, factorStrong ), factorWeak )); setColor( "action.button.pressed.selected.enabled", undiffMirror( selected, factorStrong ) ); setColor( "action.button.pressed.selected.enabled.focus", undiffMirror( diffMirror( selected, factorStrong ), factorWeak )); setColor( "action.dropdown.selected", middle( disabled, middle( selected, disabled ) )); setColor( "action.dropdown.selected.enabled", selected ); setColor( "action.dropdown.mouse.enabled", undiffMirror( enabled, factor ) ); setColor( "action.dropdown.mouse.selected.enabled", undiffMirror( selected, factor ) ); setColor( "action.dropdown.pressed.enabled", undiffMirror( enabled, factorStrong ) ); setColor( "action.dropdown.pressed.selected.enabled", undiffMirror( selected, factorStrong ) ); setColor( "action.dropdown.selected.focus", diffMirror( middle( disabled, middle( selected, disabled ) ), factorWeak )); setColor( "action.dropdown.selected.enabled.focus", diffMirror( selected, factorWeak )); setColor( "action.dropdown.mouse.enabled.focus", undiffMirror( diffMirror( enabled, factor ), factorWeak )); setColor( "action.dropdown.mouse.selected.enabled.focus", undiffMirror( diffMirror( selected, factor ), factorWeak )); setColor( "action.dropdown.pressed.enabled.focus", undiffMirror( diffMirror( enabled, factorStrong ), factorWeak )); setColor( "action.dropdown.pressed.selected.enabled.focus", undiffMirror( diffMirror( selected, factorStrong ), factorWeak )); setColor( "action.dropdown.line.selected", diffMirror( middle( disabled, middle( selected, disabled ) ), factorWeak )); setColor( "action.dropdown.line.selected.enabled", diffMirror( selected, factorWeak )); setColor( "action.dropdown.line.mouse.enabled", undiffMirror( diffMirror( enabled, factor ), factorWeak )); setColor( "action.dropdown.line.mouse.selected.enabled", undiffMirror( diffMirror( selected, factor ), factorWeak ));
setColor( "action.button.selected.enabled", selected ); setColor( "action.button.selected.enabled.focus", diffMirror( selected, factorWeak )); setColor( "action.button.mouse.enabled", undiffMirror( enabled, factor ) ); setColor( "action.button.mouse.enabled.focus", undiffMirror( diffMirror( enabled, factor ), factorWeak )); setColor( "action.button.mouse.selected.enabled", undiffMirror( selected, factor ) ); setColor( "action.button.mouse.selected.enabled.focus", undiffMirror( diffMirror( selected, factor ), factorWeak )); setColor( "action.button.pressed.enabled", undiffMirror( enabled, factorStrong ) ); setColor( "action.button.pressed.enabled.focus", undiffMirror( diffMirror( enabled, factorStrong ), factorWeak )); setColor( "action.button.pressed.selected.enabled", undiffMirror( selected, factorStrong ) ); setColor( "action.button.pressed.selected.enabled.focus", undiffMirror( diffMirror( selected, factorStrong ), factorWeak )); setColor( "action.dropdown.selected", middle( disabled, middle( selected, disabled ) )); setColor( "action.dropdown.selected.enabled", selected ); setColor( "action.dropdown.mouse.enabled", undiffMirror( enabled, factor ) ); setColor( "action.dropdown.mouse.selected.enabled", undiffMirror( selected, factor ) ); setColor( "action.dropdown.pressed.enabled", undiffMirror( enabled, factorStrong ) ); setColor( "action.dropdown.pressed.selected.enabled", undiffMirror( selected, factorStrong ) ); setColor( "action.dropdown.selected.focus", diffMirror( middle( disabled, middle( selected, disabled ) ), factorWeak )); setColor( "action.dropdown.selected.enabled.focus", diffMirror( selected, factorWeak )); setColor( "action.dropdown.mouse.enabled.focus", undiffMirror( diffMirror( enabled, factor ), factorWeak )); setColor( "action.dropdown.mouse.selected.enabled.focus", undiffMirror( diffMirror( selected, factor ), factorWeak )); setColor( "action.dropdown.pressed.enabled.focus", undiffMirror( diffMirror( enabled, factorStrong ), factorWeak )); setColor( "action.dropdown.pressed.selected.enabled.focus", undiffMirror( diffMirror( selected, factorStrong ), factorWeak )); setColor( "action.dropdown.line.selected", diffMirror( middle( disabled, middle( selected, disabled ) ), factorWeak )); setColor( "action.dropdown.line.selected.enabled", diffMirror( selected, factorWeak )); setColor( "action.dropdown.line.mouse.enabled", undiffMirror( diffMirror( enabled, factor ), factorWeak )); setColor( "action.dropdown.line.mouse.selected.enabled", undiffMirror( diffMirror( selected, factor ), factorWeak ));
undiffMirror( DockUI.getColor( LookAndFeelColors.TITLE_BACKGROUND ), 0.75 ),