@Override protected Color convertFocused( Color source, String key ){ if( "stack.tab.background.top.focused.mouse".equals( key )) return Colors.fuller( source, 0.3 ); if( "stack.tab.background.bottom.focused.mouse".equals( key )) return Colors.fuller( Colors.diffMirror( source, 0.3 ), 0.3 ); if( "stack.tab.border.focused.mouse".equals( key )) return Colors.fuller( Colors.diffMirror( source, 0.6 ), 0.3 ); if( "stack.tab.foreground.focused.mouse".equals( key )) return Colors.fuller( Colors.diffMirror( source, 0.9 ), 0.3 ); if( "stack.tab.background.top.focused".equals( key )) return source; if( "stack.tab.background.bottom.focused".equals( key )) return Colors.diffMirror( source, 0.3 ); if( "stack.tab.border.focused".equals( key )) return Colors.diffMirror( source, 0.6 ); if( "stack.tab.foreground.focused".equals( key )) return Colors.diffMirror( source, 0.9 ); 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( "stack.tab.background.top.focused.mouse".equals( key )) return Colors.fuller( source, 0.3 ); if( "stack.tab.background.bottom.focused.mouse".equals( key )) return Colors.fuller( Colors.diffMirror( source, 0.3 ), 0.3 ); if( "stack.tab.border.focused.mouse".equals( key )) return Colors.fuller( Colors.diffMirror( source, 0.6 ), 0.3 ); if( "stack.tab.foreground.focused.mouse".equals( key )) return Colors.fuller( Colors.diffMirror( source, 0.9 ), 0.3 ); if( "stack.tab.background.top.focused".equals( key )) return source; if( "stack.tab.background.bottom.focused".equals( key )) return Colors.diffMirror( source, 0.3 ); if( "stack.tab.border.focused".equals( key )) return Colors.diffMirror( source, 0.6 ); if( "stack.tab.foreground.focused".equals( key )) return Colors.diffMirror( source, 0.9 ); 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.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; }
/** * Converts a color given by a {@link ColorMap} to the color needed * on the displayer. * @param source the source color * @param key the color that is needed, the color is needed for a * focused view * @return the converted <code>source</code>, can be <code>null</code> */ protected Color convertFocused( Color source, String key ) { if( "displayer.border.low.active".equals( key )) return Colors.darker( source, 0.3 ); if( "displayer.border.high.active".equals( key )) return Colors.brighter( source, 0.3 ); if( "displayer.border.low.active.mouse".equals( key )) return Colors.fuller( Colors.darker( source, 0.3 ), 0.3 ); if( "displayer.border.high.active.mouse".equals( key )) return Colors.fuller( Colors.brighter( source, 0.3 ), 0.3 ); return source; }
/** * Converts a color given by a {@link ColorMap} to the color needed * on the displayer. * @param source the source color * @param key the color that is needed, the color is needed for a * focused view * @return the converted <code>source</code>, can be <code>null</code> */ protected Color convertFocused( Color source, String key ) { if( "displayer.border.low.active".equals( key )) return Colors.darker( source, 0.3 ); if( "displayer.border.high.active".equals( key )) return Colors.brighter( source, 0.3 ); if( "displayer.border.low.active.mouse".equals( key )) return Colors.fuller( Colors.darker( source, 0.3 ), 0.3 ); if( "displayer.border.high.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.2 ), key ); if( "stack.tab.background.top.selected.mouse".equals( key )) return Colors.fuller( source, 0.3 ); if( "stack.tab.background.bottom.selected.mouse".equals( key )) return Colors.fuller( Colors.diffMirror( source, 0.3 ), 0.3 ); if( "stack.tab.border.selected.mouse".equals( key )) return Colors.fuller( Colors.diffMirror( source, 0.6 ), 0.3 ); if( "stack.tab.foreground.selected.mouse".equals( key )) return Colors.fuller( Colors.diffMirror( source, 0.9 ), 0.3 ); if( "stack.tab.background.top.selected".equals( key )) return source; if( "stack.tab.background.bottom.selected".equals( key )) return Colors.diffMirror( source, 0.3 ); if( "stack.tab.border.selected".equals( key )) return Colors.diffMirror( source, 0.6 ); if( "stack.tab.foreground.selected".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; }
/** * Converts a color given by a {@link ColorMap} to the color needed * on the displayer. * @param source the source color * @param key the color that is needed * @return the converted <code>source</code>, can be <code>null</code> */ protected Color convert( Color source, String key ) { if( key.contains( "active" ) && !key.contains( "inactive" ) ) return convertFocused( Colors.diffMirror( source, 0.2 ), key ); if( "displayer.border.low.inactive".equals( key )) return Colors.darker( source, 0.3 ); if( "displayer.border.high.inactive".equals( key )) return Colors.brighter( source, 0.3 ); if( "displayer.border.low.inactive.mouse".equals( key )) return Colors.fuller( Colors.darker( source, 0.3 ), 0.3 ); if( "displayer.border.high.inactive.mouse".equals( key )) return Colors.fuller( Colors.brighter( source, 0.3 ), 0.3 ); return source; }
/** * Converts a color given by a {@link ColorMap} to the color needed * on the displayer. * @param source the source color * @param key the color that is needed * @return the converted <code>source</code>, can be <code>null</code> */ protected Color convert( Color source, String key ) { if( key.contains( "active" ) && !key.contains( "inactive" ) ) return convertFocused( Colors.diffMirror( source, 0.2 ), key ); if( "displayer.border.low.inactive".equals( key )) return Colors.darker( source, 0.3 ); if( "displayer.border.high.inactive".equals( key )) return Colors.brighter( source, 0.3 ); if( "displayer.border.low.inactive.mouse".equals( key )) return Colors.fuller( Colors.darker( source, 0.3 ), 0.3 ); if( "displayer.border.high.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( 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; }
/** * Creates a scheme using only one base color. * @param color the base color */ public SimpleBubbleColorScheme( Color color ){ this( fuller( color, 0.5 ), brighter( color, 0.9 ), color, brighter( color, 0.9 ), darker( color, 0.9 ), 0.3, 0.6, 0.9 ); }
/** * Creates a scheme using only one base color. * @param color the base color */ public SimpleBubbleColorScheme( Color color ){ this( fuller( color, 0.5 ), brighter( color, 0.9 ), color, brighter( color, 0.9 ), darker( color, 0.9 ), 0.3, 0.6, 0.9 ); }
@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; }