public static Color undiffMirror( Color color, double factor ){ if( color == null ){ return null; } int sum = color.getRed() + color.getGreen() + color.getBlue(); if( sum > (3*255/2.0) ) return brighter( color, factor ); else return darker( color, factor ); }
public static Color diffMirror( Color color, double factor ){ if( color == null ){ return null; } int sum = color.getRed() + color.getGreen() + color.getBlue(); if( sum < (3*255/2.0) ) return brighter( color, factor ); else return darker( color, factor ); }
@Override protected Color convertFocused( Color source, String key ) { if( "stack.tab.border.out.focused".equals( key )) return null; if( "stack.tab.border.center.focused".equals( key )) return null; if( "stack.tab.background.top.focused".equals( key )) return Colors.darker( source, 0.3 ); if( "stack.tab.background.bottom.focused".equals( key )) return Colors.brighter( source, 0.3 ); if( "stack.tab.foreground.focused".equals( key )) return Colors.diffMirror( source, 1.0 ); return null; }
@Override protected Color convertFocused( Color source, String key ) { if( "stack.tab.border.out.focused".equals( key )) return null; if( "stack.tab.border.center.focused".equals( key )) return null; if( "stack.tab.background.top.focused".equals( key )) return Colors.darker( source, 0.3 ); if( "stack.tab.background.bottom.focused".equals( key )) return Colors.brighter( source, 0.3 ); if( "stack.tab.foreground.focused".equals( key )) return Colors.diffMirror( source, 1.0 ); return null; }
@Override protected Color convertFocused( Color source, String key ) { if( key.contains( "foreground" ) ) return Colors.diffMirror( source, 1.0 ); if( "title.background.top.active".equals( key )) return Colors.darker( source, 0.3 ); if( "title.background.bottom.active".equals( key )) return Colors.brighter( source, 0.3 ); if( "title.background.top.active.mouse".equals( key )) return Colors.fuller( Colors.darker( source, 0.3 ), 0.3 ); if( "title.background.bottom.active.mouse".equals( key )) return Colors.fuller( Colors.brighter( source, 0.3 ), 0.3 ); return source; }
@Override protected Color convertFocused( Color source, String key ) { if( key.contains( "foreground" ) ) return Colors.diffMirror( source, 1.0 ); if( "title.background.top.active.flap".equals( key )) return Colors.darker( source, 0.3 ); if( "title.background.bottom.active.flap".equals( key )) return Colors.brighter( source, 0.3 ); if( "title.background.top.active.mouse.flap".equals( key )) return Colors.fuller( Colors.darker( source, 0.3 ), 0.3 ); if( "title.background.bottom.active.mouse.flap".equals( key )) return Colors.fuller( Colors.brighter( source, 0.3 ), 0.3 ); return source; }
@Override protected Color convertSelected( Color source, String key ) { if( key.contains( "foreground" ) ) return Colors.diffMirror( source, 1.0 ); if( "title.background.top.selected.flap".equals( key )) return Colors.darker( source, 0.3 ); if( "title.background.bottom.selected.flap".equals( key )) return Colors.brighter( source, 0.3 ); if( "title.background.top.selected.mouse.flap".equals( key )) return Colors.fuller( Colors.darker( source, 0.3 ), 0.3 ); if( "title.background.bottom.selected.mouse.flap".equals( key )) return Colors.fuller( Colors.brighter( source, 0.3 ), 0.3 ); return source; }
@Override protected Color convertFocused( Color source, String key ) { if( key.contains( "foreground" ) ) return Colors.diffMirror( source, 1.0 ); if( "title.background.top.active.flap".equals( key )) return Colors.darker( source, 0.3 ); if( "title.background.bottom.active.flap".equals( key )) return Colors.brighter( source, 0.3 ); if( "title.background.top.active.mouse.flap".equals( key )) return Colors.fuller( Colors.darker( source, 0.3 ), 0.3 ); if( "title.background.bottom.active.mouse.flap".equals( key )) return Colors.fuller( Colors.brighter( source, 0.3 ), 0.3 ); return source; }
@Override protected Color convertSelected( Color source, String key ) { if( key.contains( "foreground" ) ) return Colors.diffMirror( source, 1.0 ); if( "title.background.top.selected.flap".equals( key )) return Colors.darker( source, 0.3 ); if( "title.background.bottom.selected.flap".equals( key )) return Colors.brighter( source, 0.3 ); if( "title.background.top.selected.mouse.flap".equals( key )) return Colors.fuller( Colors.darker( source, 0.3 ), 0.3 ); if( "title.background.bottom.selected.mouse.flap".equals( key )) return Colors.fuller( Colors.brighter( source, 0.3 ), 0.3 ); return source; }
@Override protected Color convertFocused( Color source, String key ) { if( key.contains( "foreground" ) ) return Colors.diffMirror( source, 1.0 ); if( "title.background.top.active".equals( key )) return Colors.darker( source, 0.3 ); if( "title.background.bottom.active".equals( key )) return Colors.brighter( source, 0.3 ); if( "title.background.top.active.mouse".equals( key )) return Colors.fuller( Colors.darker( source, 0.3 ), 0.3 ); if( "title.background.bottom.active.mouse".equals( key )) return Colors.fuller( Colors.brighter( source, 0.3 ), 0.3 ); return source; }
@Override protected Color convertSelected( Color source, String key ) { if( key.contains( "focused" )) return convertFocused( Colors.diffMirror( source, 0.3 ), key ); if( "stack.tab.border.out.selected".equals( key )) return null; if( "stack.tab.border.center.selected".equals( key )) return null; if( "stack.tab.background.top.selected".equals( key )) return Colors.darker( source, 0.3 ); if( "stack.tab.background.bottom.selected".equals( key )) return Colors.brighter( source, 0.3 ); if( "stack.tab.foreground.selected".equals( key )) return Colors.diffMirror( source, 1.0 ); return null; }
@Override protected Color convertSelected( Color source, String key ) { if( key.contains( "focused" )) return convertFocused( Colors.diffMirror( source, 0.3 ), key ); if( "stack.tab.border.out.selected".equals( key )) return null; if( "stack.tab.border.center.selected".equals( key )) return null; if( "stack.tab.background.top.selected".equals( key )) return Colors.darker( source, 0.3 ); if( "stack.tab.background.bottom.selected".equals( key )) return Colors.brighter( source, 0.3 ); if( "stack.tab.foreground.selected".equals( key )) return Colors.diffMirror( source, 1.0 ); return null; }
@Override protected Color convert( Color source, String key ) { if( key.contains( "focused" )) return convertFocused( Colors.diffMirror( source, 0.6 ), key ); if( key.contains( "selected" )) return convertSelected( Colors.diffMirror( source, 0.3 ), key ); if( "stack.tab.border.out".equals( key )) return null; if( "stack.tab.border.center".equals( key )) return null; if( "stack.tab.background.top".equals( key )) return Colors.darker( source, 0.3 ); if( "stack.tab.background.bottom".equals( key )) return Colors.brighter( source, 0.3 ); if( "stack.tab.foreground".equals( key )) return Colors.diffMirror( source, 1.0 ); return null; }
@Override protected Color convert( Color source, String key ) { if( key.contains( "focused" )) return convertFocused( Colors.diffMirror( source, 0.6 ), key ); if( key.contains( "selected" )) return convertSelected( Colors.diffMirror( source, 0.3 ), key ); if( "stack.tab.border.out".equals( key )) return null; if( "stack.tab.border.center".equals( key )) return null; if( "stack.tab.background.top".equals( key )) return Colors.darker( source, 0.3 ); if( "stack.tab.background.bottom".equals( key )) return Colors.brighter( source, 0.3 ); if( "stack.tab.foreground".equals( key )) return Colors.diffMirror( source, 1.0 ); return null; }
@Override protected Color convert( Color source, String key ) { if( isFocused( key )) return convertFocused( Colors.diffMirror( source, 0.2 ), key ); if( key.contains( "foreground" ) ) return Colors.diffMirror( source, 1.0 ); if( "title.background.top.inactive".equals( key )) return Colors.darker( source, 0.3 ); if( "title.background.bottom.inactive".equals( key )) return Colors.brighter( source, 0.3 ); if( "title.background.top.inactive.mouse".equals( key )) return Colors.fuller( Colors.darker( source, 0.3 ), 0.3 ); if( "title.background.bottom.inactive.mouse".equals( key )) return Colors.fuller( Colors.brighter( source, 0.3 ), 0.3 ); return source; }
@Override protected Color convert( Color source, String key ) { if( isFocused( key )) return convertFocused( Colors.diffMirror( source, 0.2 ), key ); if( key.contains( "foreground" ) ) return Colors.diffMirror( source, 1.0 ); if( "title.background.top.inactive".equals( key )) return Colors.darker( source, 0.3 ); if( "title.background.bottom.inactive".equals( key )) return Colors.brighter( source, 0.3 ); if( "title.background.top.inactive.mouse".equals( key )) return Colors.fuller( Colors.darker( source, 0.3 ), 0.3 ); if( "title.background.bottom.inactive.mouse".equals( key )) return Colors.fuller( Colors.brighter( source, 0.3 ), 0.3 ); return source; }
@Override protected Color convert( Color source, String key ) { if( isFocused( key )) return convertFocused( Colors.diffMirror( source, 0.2 ), key ); if( isSelected( key )) return convertSelected( Colors.diffMirror( source, 0.2 ), key ); if( key.contains( "foreground" ) ) return Colors.diffMirror( source, 1.0 ); if( "title.background.top.inactive.flap".equals( key )) return Colors.darker( source, 0.3 ); if( "title.background.bottom.inactive.flap".equals( key )) return Colors.brighter( source, 0.3 ); if( "title.background.top.inactive.mouse.flap".equals( key )) return Colors.fuller( Colors.darker( source, 0.3 ), 0.3 ); if( "title.background.bottom.inactive.mouse.flap".equals( key )) return Colors.fuller( Colors.brighter( source, 0.3 ), 0.3 ); return source; }
@Override protected Color convert( Color source, String key ) { if( isFocused( key )) return convertFocused( Colors.diffMirror( source, 0.2 ), key ); if( isSelected( key )) return convertSelected( Colors.diffMirror( source, 0.2 ), key ); if( key.contains( "foreground" ) ) return Colors.diffMirror( source, 1.0 ); if( "title.background.top.inactive.flap".equals( key )) return Colors.darker( source, 0.3 ); if( "title.background.bottom.inactive.flap".equals( key )) return Colors.brighter( source, 0.3 ); if( "title.background.top.inactive.mouse.flap".equals( key )) return Colors.fuller( Colors.darker( source, 0.3 ), 0.3 ); if( "title.background.bottom.inactive.mouse.flap".equals( key )) return Colors.fuller( Colors.brighter( source, 0.3 ), 0.3 ); return source; }