<commit_before>
import com.simsilica.lemur.*;
import com.simsilica.lemur.component.*;
import com.jme3.material.RenderState.BlendMode;

def gradient = TbtQuadBackgroundComponent.create( 
                                        texture( name:"/com/simsilica/lemur/icons/bordered-gradient.png", 
                                                 generateMips:false ),
                                                 1, 1, 1, 126, 126,
                                                 1f, false );
def transparent = new QuadBackgroundComponent(color(0, 0, 0, 0))
 
                                  
selector( "optionPanel", "glass" ) {
    background = gradient.clone()
    background.setColor(color(0.25, 0.5, 0.5, 0.5))
}

selector( "optionPanel.container", "glass" ) {

    background = gradient.clone()
    background.color = color(0.25, 0.4, 0.6, 0.25)
    background.setMargin(10, 10)
    insets = new Insets3f( 2, 2, 2, 2 )
}

selector( "title.label", "glass" ) {
    color = color(0.8, 0.9, 1, 0.85f)
    highlightColor = color(1, 0.8, 1, 0.85f)
    shadowColor = color(0, 0, 0, 0.75f)
    shadowOffset = new com.jme3.math.Vector3f(2, -2, -1);
    background = new QuadBackgroundComponent( color(0.5, 0.75, 0.85, 0.5) );
    background.texture = texture( name:"/com/simsilica/lemur/icons/double-gradient-128.png", 
                                  generateMips:false )
    insets = new Insets3f( 2, 2, 2, 2 );
}

selector( "list.container", "glass" ) {
    background = gradient.clone()
    background.setColor(color(0.25, 0.5, 0.5, 0.5))
    insets = new Insets3f( 2, 2, 2, 2, 2, 2 );
}

selector( "list.item", "glass" ) {
    color = color(0.5, 0.75, 0.75, 0.85)     
    background = transparent;
}

selector( "list.selector", "glass" ) {
    background = gradient.clone();
    background.color = color(0.4, 0.6, 0.6, 0.5)
    //background.material.material.additionalRenderState.blendMode = BlendMode.Exclusion;
    background.material.material.additionalRenderState.blendMode = BlendMode.AlphaAdditive;
}

selector( "colorChooser.value", "glass" ) {
    border = gradient.clone()
    border.setColor(color(0.25, 0.5, 0.5, 0.5))
    insets = new Insets3f( 2, 2, 2, 2, 2, 2 );
}

selector( "colorChooser.colors", "glass" ) {
    border = gradient.clone()
    border.setColor(color(0.25, 0.5, 0.5, 0.5))
    insets = new Insets3f( 2, 2, 2, 2, 2, 2 );
}

selector( "selector.container", "glass" ) {
    background = gradient.clone()
    color = color(0.8, 0.9, 1, 0.85f)
    background.setColor(color(0, 0.75, 0.75, 0.5))
    //insets = new Insets3f( 2, 2, 2, 2 );
}

selector( "selector.item", "glass" ) {
    color = color(0.5, 0.75, 0.75, 0.85)     
    background = transparent;
    insets = new Insets3f(1, 1, 1, 1, 1, 1);
}

selector( "selector.popup", "glass" ) {
    background = gradient.clone()
    background.setColor(color(0, 0.75, 0.75, 0.75))
}
<commit_msg>Tweaking the glass style of the selector expander button to not have insets.  It just creates a weird margin around everything and looks bad.<commit_after>
import com.simsilica.lemur.*;
import com.simsilica.lemur.component.*;
import com.jme3.material.RenderState.BlendMode;

def gradient = TbtQuadBackgroundComponent.create( 
                                        texture( name:"/com/simsilica/lemur/icons/bordered-gradient.png", 
                                                 generateMips:false ),
                                                 1, 1, 1, 126, 126,
                                                 1f, false );
def transparent = new QuadBackgroundComponent(color(0, 0, 0, 0))
 
                                  
selector( "optionPanel", "glass" ) {
    background = gradient.clone()
    background.setColor(color(0.25, 0.5, 0.5, 0.5))
}

selector( "optionPanel.container", "glass" ) {

    background = gradient.clone()
    background.color = color(0.25, 0.4, 0.6, 0.25)
    background.setMargin(10, 10)
    insets = new Insets3f( 2, 2, 2, 2 )
}

selector( "title.label", "glass" ) {
    color = color(0.8, 0.9, 1, 0.85f)
    highlightColor = color(1, 0.8, 1, 0.85f)
    shadowColor = color(0, 0, 0, 0.75f)
    shadowOffset = new com.jme3.math.Vector3f(2, -2, -1);
    background = new QuadBackgroundComponent( color(0.5, 0.75, 0.85, 0.5) );
    background.texture = texture( name:"/com/simsilica/lemur/icons/double-gradient-128.png", 
                                  generateMips:false )
    insets = new Insets3f( 2, 2, 2, 2 );
}

selector( "list.container", "glass" ) {
    background = gradient.clone()
    background.setColor(color(0.25, 0.5, 0.5, 0.5))
    insets = new Insets3f( 2, 2, 2, 2, 2, 2 );
}

selector( "list.item", "glass" ) {
    color = color(0.5, 0.75, 0.75, 0.85)     
    background = transparent;
}

selector( "list.selector", "glass" ) {
    background = gradient.clone();
    background.color = color(0.4, 0.6, 0.6, 0.5)
    //background.material.material.additionalRenderState.blendMode = BlendMode.Exclusion;
    background.material.material.additionalRenderState.blendMode = BlendMode.AlphaAdditive;
}

selector( "colorChooser.value", "glass" ) {
    border = gradient.clone()
    border.setColor(color(0.25, 0.5, 0.5, 0.5))
    insets = new Insets3f( 2, 2, 2, 2, 2, 2 );
}

selector( "colorChooser.colors", "glass" ) {
    border = gradient.clone()
    border.setColor(color(0.25, 0.5, 0.5, 0.5))
    insets = new Insets3f( 2, 2, 2, 2, 2, 2 );
}

selector( "selector.container", "glass" ) {
    background = gradient.clone()
    color = color(0.8, 0.9, 1, 0.85f)
    background.setColor(color(0, 0.75, 0.75, 0.5))
    //insets = new Insets3f( 2, 2, 2, 2 );
}

selector( "selector.item", "glass" ) {
    color = color(0.5, 0.75, 0.75, 0.85)     
    background = transparent;
    insets = new Insets3f(1, 1, 1, 1, 1, 1);
}

selector( "selector.popup", "glass" ) {
    background = gradient.clone()
    background.setColor(color(0, 0.75, 0.75, 0.75))
}

selector( "selector.down.button", "glass" ) {
    insets = new Insets3f(0, 0, 0, 0, 0, 0);
}

{'fraction_non_alphanumeric': 0.15858146537303447, 'fraction_numerical': 0.06942121110739377, 'mean_word_length': 2.4068376068376067, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1798183', 'n_tokens_mistral': 2372, 'n_tokens_neox': 2094, 'n_words': 478}