style "contrasting_popup" = "medium_monospace_text"
{
  bg[NORMAL]          = @@COLPREFIX@_lightest
  fg[NORMAL]          = @@COLPREFIX@_darkest
  base[NORMAL]        = @@COLPREFIX@_lightest
  text[NORMAL]        = @@COLPREFIX@_darkest
  text[ACTIVE]        = @@COLPREFIX@_darkest
  text[SELECTED]      = @@COLPREFIX@_darkest
}

style "base_frame"
{
	fg[NORMAL] = @@COLPREFIX@_bg
	bg[NORMAL] = @@COLPREFIX@_bg
}

style "transport_base" = "medium_bold_text"
{

}

style "default_button" = "small_text"
{
}

style "mouse_mode_button" = "default_button"
{
        bg[ACTIVE] = @@COLPREFIX@_contrasting_indicator
        fg[ACTIVE] = @@COLPREFIX@_darkest
}

style "default_menu" = "medium_text"
{
  #bg[NORMAL] = darker(@@COLPREFIX@_bg)
}

style "default_generic" = "medium_text"
{
}

style "text_cell_entry" = "medium_text"
{
}

style "very_small_button" = "default_button" 
{
	ythickness = 0
	xthickness = 0
}

style "small_button" = "default_button"
{
}

style "very_small_red_active_and_selected_button" = "very_small_button"
{
	fg[ACTIVE] = @@COLPREFIX@_darkest
	bg[ACTIVE] = @@COLPREFIX@_bright_indicator
	bg[SELECTED] = @@COLPREFIX@_bright_indicator
}

style "small_red_active_and_selected_button" = "small_button"
{
	fg[ACTIVE] = @@COLPREFIX@_darkest
	bg[ACTIVE] = @@COLPREFIX@_bright_indicator
	bg[SELECTED] = @@COLPREFIX@_bright_indicator
}

style "gain_fader"
{
        bg[NORMAL] = shade (0.7, @@COLPREFIX@_bg)
	bg[ACTIVE] = shade (0.705, @@COLPREFIX@_bg)
	bg[INSENSITIVE] = shade (0.705, @@COLPREFIX@_bg)

        fg[INSENSITIVE] = shade(1.4, @@COLPREFIX@_bg)
        fg[NORMAL] = shade(1.4, @@COLPREFIX@_bg)
	fg[ACTIVE] = shade(1.4, @@COLPREFIX@_bg)
}

#MSR and related buttons

style "track_rec_enable_button" = "small_button"
{
	fg[ACTIVE] =   @@COLPREFIX@_darkest
        bg[NORMAL] =   mix(0.08,@@COLPREFIX@_arm,@@COLPREFIX@_bg)
        bg[PRELIGHT] = shade(1.1,mix(0.08,@@COLPREFIX@_arm,@@COLPREFIX@_bg))
}

style "track_rec_enable_button_active" = "small_button"
{
	#fg[ACTIVE] =   @@COLPREFIX@_darkest
	#fg[SELECTED] = @@COLPREFIX@_darkest
	#fg[PRELIGHT] = @@COLPREFIX@_darkest
	#fg[NORMAL] = @@COLPREFIX@_darkest

	bg[NORMAL] =   @@COLPREFIX@_arm
	bg[ACTIVE] =   @@COLPREFIX@_arm
	bg[SELECTED] =   @@COLPREFIX@_arm
	bg[PRELIGHT] =   shade(1.1, @@COLPREFIX@_arm)
}

style "track_rec_enable_button_alternate" = "small_button"
{
	fg[SELECTED] = @@COLPREFIX@_darkest
	fg[ACTIVE] =   @@COLPREFIX@_darkest
	fg[PRELIGHT] = @@COLPREFIX@_darkest
	fg[NORMAL] = @@COLPREFIX@_darkest

	bg[NORMAL] =   lighter(@@COLPREFIX@_arm)
	bg[ACTIVE] =   lighter(@@COLPREFIX@_arm)
	bg[SELECTED] =   lighter(@@COLPREFIX@_arm)
	bg[PRELIGHT] =   shade(1.1, lighter(@@COLPREFIX@_arm))
}

style "track_rec_enable_button_alternate_two" = "small_button"
{
	fg[SELECTED] = @@COLPREFIX@_darkest
	fg[ACTIVE] =   @@COLPREFIX@_darkest
	fg[PRELIGHT] = @@COLPREFIX@_darkest
	fg[NORMAL] = @@COLPREFIX@_darkest

	bg[NORMAL] =   darker(@@COLPREFIX@_arm)
	bg[ACTIVE] =   darker(@@COLPREFIX@_arm)
	bg[SELECTED] =   darker(@@COLPREFIX@_arm)
	bg[PRELIGHT] =   shade(1.1, darker(@@COLPREFIX@_arm))
}

style "mixer_track_rec_enable_button" = "track_rec_enable_button"
{
	xthickness = 0
	ythickness = 0
}

style "mixer_track_rec_enable_button_alternate" = "track_rec_enable_button_alternate"
{
	xthickness = 0
	ythickness = 0
}

style "mixer_track_rec_enable_button_active" = "track_rec_enable_button_active"
{
	xthickness = 0
	ythickness = 0
}

style "monitor" = "small_button"
{
}

style "meterbridge_label" = "small_text"
{
}

style "solo_isolate" = "very_small_text"
{
}

style "solo_safe" = "very_small_text"
{
}

style "solo_button" = "small_button"
{
  bg[NORMAL] = mix(0.1,@@COLPREFIX@_solo,@@COLPREFIX@_bg)
  bg[ACTIVE] = @@COLPREFIX@_solo
  fg[ACTIVE] = @@COLPREFIX@_darkest
}

style "solo_button_alternate" = "small_button"
{
        #
        # this is the "solo-isolated" solo theme
        #

	bg[ACTIVE] = lighter(@@COLPREFIX@_solo)

	fg[ACTIVE] = @@COLPREFIX@_bright_indicator
	fg[SELECTED] = @@COLPREFIX@_bright_indicator
	fg[NORMAL] = @@COLPREFIX@_bright_indicator
	fg[PRELIGHT] = shade(1.1, @@COLPREFIX@_bright_indicator)
}

style "solo_button_alternate2" = "small_button"
{
        #
        # this is the "half-bright" solo theme
        #

	bg[NORMAL] = darker(@@COLPREFIX@_solo) 
	bg[ACTIVE] = darker(@@COLPREFIX@_solo)
	bg[SELECTED] = darker(@@COLPREFIX@_solo)
	bg[PRELIGHT] = shade(1.1, darker(@@COLPREFIX@_solo))

	fg[ACTIVE] = @@COLPREFIX@_darkest
	fg[SELECTED] = @@COLPREFIX@_darkest
	fg[NORMAL] = @@COLPREFIX@_darkest
	fg[PRELIGHT] = @@COLPREFIX@_darkest
}

style "solo_button_active" = "small_button"
{
        #
        # this is the "full-bright" solo theme
        #

	bg[NORMAL] = @@COLPREFIX@_solo
	bg[ACTIVE] = @@COLPREFIX@_solo
	bg[SELECTED] = @@COLPREFIX@_solo
	bg[PRELIGHT] = shade(1.1, @@COLPREFIX@_solo)

	fg[ACTIVE] = @@COLPREFIX@_darkest
	fg[SELECTED] = @@COLPREFIX@_darkest
	fg[NORMAL] = @@COLPREFIX@_darkest
	fg[PRELIGHT] = @@COLPREFIX@_darkest
}

style "processor" = "small_text"
{
}

style "mixer_invert_button" = "small_button"
{
	bg[ACTIVE] = @@COLPREFIX@_not_so_bright_indicator
	fg[ACTIVE] = @@COLPREFIX@_darkest
}

style "mixer_solo_button" = "solo_button"
{
	xthickness = 0
	ythickness = 0
}

style "mixer_solo_button_alternate" = "solo_button_alternate"
{
	xthickness = 0
	ythickness = 0
}

style "mixer_solo_button_alternate2" = "solo_button_alternate2"
{
	xthickness = 0
	ythickness = 0
}


style "mixer_solo_button_active" = "solo_button_active"
{
	xthickness = 0
	ythickness = 0
}

style "monitor_opt_button" = "small_button"
{
        bg[NORMAL] = mix(0.1,@@COLPREFIX@_not_so_bright_indicator,@@COLPREFIX@_bg)
	bg[ACTIVE] = @@COLPREFIX@_not_so_bright_indicator
	fg[ACTIVE] = @@COLPREFIX@_darkest
}

style "monitor_mono_button" = "small_button"
{
	bg[NORMAL] = mix(0.1,@@COLPREFIX@_mono,@@COLPREFIX@_bg)
        bg[ACTIVE] = @@COLPREFIX@_mono
	fg[ACTIVE] = @@COLPREFIX@_darkest
}

style "monitor_invert_button" = "small_button"
{
	bg[NORMAL] = mix(0.1,@@COLPREFIX@_not_so_bright_indicator,@@COLPREFIX@_bg)
        bg[ACTIVE] = @@COLPREFIX@_not_so_bright_indicator
	fg[ACTIVE] = @@COLPREFIX@_darkest
}

style "monitor_mute_button" = "small_button"
{
	bg[NORMAL] = mix(0.1,@@COLPREFIX@_mute,@@COLPREFIX@_bg)
        bg[ACTIVE] = @@COLPREFIX@_mute
	fg[ACTIVE] = @@COLPREFIX@_darkest
}

style "monitor_dim_button" = "small_button"
{
	bg[NORMAL] = mix(0.1,lighter(@@COLPREFIX@_mute),@@COLPREFIX@_bg)
        bg[ACTIVE] = lighter(@@COLPREFIX@_mute)
	fg[ACTIVE] = @@COLPREFIX@_darkest
}

style "monitor_iso_button" = "small_button"
{
	bg[NORMAL] = mix(0.1,@@COLPREFIX@_somewhat_bright_indicator,@@COLPREFIX@_bg)
        bg[ACTIVE] = @@COLPREFIX@_somewhat_bright_indicator
	fg[ACTIVE] = @@COLPREFIX@_darkest
}

style "mute_button" = "small_button"
{
	bg[NORMAL] = mix(0.1,@@COLPREFIX@_mute,@@COLPREFIX@_bg)
        bg[ACTIVE] = @@COLPREFIX@_mute
	fg[ACTIVE] = @@COLPREFIX@_darkest
}

style "mute_button_fullylit" = "small_button"
{
        # this is the normal "active" state for a mute button

	bg[ACTIVE] = @@COLPREFIX@_mute
	bg[NORMAL] = @@COLPREFIX@_mute
	bg[SELECTED] = @@COLPREFIX@_mute
	bg[PRELIGHT] = lighter (@@COLPREFIX@_mute)

	fg[SELECTED] = @@COLPREFIX@_darkest
	fg[ACTIVE] = @@COLPREFIX@_darkest
	fg[NORMAL] = @@COLPREFIX@_darkest
	fg[PRELIGHT] = @@COLPREFIX@_darkest
}

style "mute_button_halflit" = "small_button"
{
 	bg[NORMAL] = mix(0.5,@@COLPREFIX@_lightest,@@COLPREFIX@_mute)
 	bg[SELECTED] = mix(0.5,@@COLPREFIX@_lightest,@@COLPREFIX@_mute)
 	bg[ACTIVE] = mix(0.5,@@COLPREFIX@_lightest,@@COLPREFIX@_mute)
 	bg[PRELIGHT] = mix(0.5,@@COLPREFIX@_lightest,@@COLPREFIX@_mute)

	fg[SELECTED] = @@COLPREFIX@_darkest
	fg[ACTIVE] = @@COLPREFIX@_darkest
	fg[NORMAL] = @@COLPREFIX@_darkest
	fg[PRELIGHT] = @@COLPREFIX@_darkest
}

style "mixer_mute_button" = "mute_button"
{
	xthickness = 0
	ythickness = 0
}

style "mixer_mute_button_fullylit" = "mute_button_fullylit"
{
	xthickness = 0
	ythickness = 0
}

style "mixer_mute_button_halflit" = "mute_button_halflit"
{
	xthickness = 0
	ythickness = 0
}

style "multiline_combo" = "small_button"
{
	xthickness = 0
	ythickness = 0
}

style "track_loop_button" = "small_button"
{
	bg[ACTIVE] = @@COLPREFIX@_somewhat_bright_indicator
	bg[PRELIGHT] = lighter(@@COLPREFIX@_somewhat_bright_indicator)

}

style "mixer_red_active_button" = "very_small_button"
{
	bg[ACTIVE] = @@COLPREFIX@_bright_indicator

 	base[INSENSITIVE] = { 0.16, 0.16, 0.21 }
 	bg[INSENSITIVE] = { 0.16, 0.16, 0.21 }
}

style "ruler_label" = "small_bold_text"
{
        fg[NORMAL] = @@COLPREFIX@_light_text_on_dark
}

style "transport_button"
{
  #bg[NORMAL] = mix(0.05,@@COLPREFIX@_contrasting_indicator,@@COLPREFIX@_bg)   #turns out this is kind of yucky looking, but it's there if you want to try it
	bg[ACTIVE] = @@COLPREFIX@_contrasting_indicator
	fg[ACTIVE] = @@COLPREFIX@_darkest
}

style "transport_button_active"
{
	bg[NORMAL] = @@COLPREFIX@_contrasting_indicator
	bg[ACTIVE] = @@COLPREFIX@_contrasting_indicator
	bg[SELECTED] = @@COLPREFIX@_contrasting_indicator
	bg[PRELIGHT] = @@COLPREFIX@_contrasting_indicator

	fg[NORMAL] = @@COLPREFIX@_darkest
	fg[PRELIGHT] = @@COLPREFIX@_darkest
	fg[SELECTED] = @@COLPREFIX@_darkest
	fg[ACTIVE] = @@COLPREFIX@_darkest
}

style "transport_button_alternate_two"
{
	fg[SELECTED] = @@COLPREFIX@_darkest
	fg[ACTIVE] =   @@COLPREFIX@_darkest
	fg[PRELIGHT] = @@COLPREFIX@_darkest
	fg[NORMAL] = @@COLPREFIX@_darkest

	bg[NORMAL] =   shade(0.2,@@COLPREFIX@_bright_indicator)
	bg[ACTIVE] =   shade(0.2,@@COLPREFIX@_bright_indicator)
	bg[SELECTED] =   shade(0.2,@@COLPREFIX@_bright_indicator)
	bg[PRELIGHT] =   shade(0.2,@@COLPREFIX@_bright_indicator)
}

style "transport_rec_button"
{
        fg[ACTIVE] = @@COLPREFIX@_darkest
	bg[ACTIVE] = darker(@@COLPREFIX@_arm)
        #the rest of these don't quite do what I expected
        #bg[NORMAL] = mix(0.05,@@COLPREFIX@_arm,@@COLPREFIX@_bg)
	#bg[SELECTED] = darker(@@COLPREFIX@_arm)
	#bg[PRELIGHT] = lighter(mix(0.05,@@COLPREFIX@_arm,@@COLPREFIX@_bg))
  
}

style "transport_rec_button_active"
{
	bg[ACTIVE] = darker(@@COLPREFIX@_arm)
	bg[NORMAL] = darker(@@COLPREFIX@_arm)
	bg[SELECTED] = darker(@@COLPREFIX@_arm)
	bg[PRELIGHT] = darker(@@COLPREFIX@_arm)
}

style "transport_rec_button_alternate"
{
	bg[PRELIGHT] = @@COLPREFIX@_arm
	bg[NORMAL] = @@COLPREFIX@_arm
	bg[SELECTED] = @@COLPREFIX@_arm
	bg[ACTIVE] = @@COLPREFIX@_arm
}

style "midi_channel_selector_button"
{
	bg[NORMAL] = @@COLPREFIX@_bg
	bg[ACTIVE] = @@COLPREFIX@_midi_channel_selector
	fg[NORMAL] = @@COLPREFIX@_fg
	fg[ACTIVE] = @@COLPREFIX@_light_text_on_dark
}

style "shuttle_control" = "very_small_text"
{
	fg[NORMAL] = @@COLPREFIX@_control_text2
	fg[ACTIVE] = @@COLPREFIX@_control_text2
	fg[PRELIGHT] = @@COLPREFIX@_control_text2
	fg[SELECTED] = @@COLPREFIX@_control_text2
	fg[INSENSITIVE] = @@COLPREFIX@_control_text2

	bg[NORMAL] = @@COLPREFIX@_darkest
	bg[PRELIGHT] = @@COLPREFIX@_darkest
	bg[INSENSITIVE] = @@COLPREFIX@_darkest
	bg[ACTIVE] = @@COLPREFIX@_bright_color
	bg[SELECTED] = @@COLPREFIX@_bright_color
}

style "ardour_adjusters" = "default_generic"
{
	bg[NORMAL] = @@COLPREFIX@_bg
	bg[PRELIGHT] = lighter(@@COLPREFIX@_bg)
	bg[ACTIVE] = @@COLPREFIX@_darkest
}

style "editor_hscrollbar" = "ardour_adjusters"
{
	#
	# special case: we want this scrollbar to be as tall as the
	# zoom focus selector combobox. scrollbars don't expand to
        # fill the space available to them, so we have to explicitly
	# make it bigger.
	# 
	GtkRange::slider_width = 27
	GtkScrollbar::slider_width = 27
}

style "ardour_progressbars" = "default_generic"
{ 
  # Clearlooks always uses darkest for the advancing bar, sigh
  # so this is just a contrasting color for the trough
  bg[NORMAL] = @@COLPREFIX@_bright_color
}

style "preferences"  = "default"
{
	fg[PRELIGHT] = lighter(@@COLPREFIX@_fg)
}

style "option_entry"  = "default"
{

}

style "very_small_bright_when_active" = "very_small_text"
{
	fg[NORMAL] = @@COLPREFIX@_fg
	bg[NORMAL] = @@COLPREFIX@_bg
        bg[PRELIGHT] = @@COLPREFIX@_bg

	fg[ACTIVE] = @@COLPREFIX@_fg
	bg[ACTIVE] = @@COLPREFIX@_bright_indicator
        bg[PRELIGHT] = @@COLPREFIX@_bright_indicator
}

style "bright_when_active" = "medium_text"
{
	fg[NORMAL] = @@COLPREFIX@_fg
	bg[NORMAL] = @@COLPREFIX@_bg
        bg[PRELIGHT] = @@COLPREFIX@_bg

	fg[ACTIVE] = @@COLPREFIX@_fg
	bg[ACTIVE] = @@COLPREFIX@_bright_indicator
        bg[PRELIGHT] = @@COLPREFIX@_bright_indicator
}

style "xrun_warn"  = "larger_bold_text"
{
	fg[NORMAL] = @@COLPREFIX@_fg
	fg[ACTIVE] = @@COLPREFIX@_fg
	text[NORMAL] = @@COLPREFIX@_fg
	text[ACTIVE] = @@COLPREFIX@_fg
	base[NORMAL] = @@COLPREFIX@_base
	base[ACTIVE] = @@COLPREFIX@_base
	bg[NORMAL] = @@COLPREFIX@_bright_indicator
	bg[ACTIVE] = @@COLPREFIX@_contrasting_indicator
}
/*
style "menu_bar_base" = "default"
{

}
*/
style "fatal_message" = "medium_text"
{
   fg[ACTIVE] = @@COLPREFIX@_bright_indicator
   fg[NORMAL] = @@COLPREFIX@_bright_indicator
   bg[ACTIVE]   = @@COLPREFIX@_base
   bg[NORMAL]   = @@COLPREFIX@_base
   base[NORMAL] = @@COLPREFIX@_base
   base[NORMAL] = @@COLPREFIX@_base
}

style "error_message" = "medium_text"
{
   fg[ACTIVE] = @@COLPREFIX@_bright_indicator
   fg[NORMAL] = @@COLPREFIX@_bright_indicator
   bg[ACTIVE]   = @@COLPREFIX@_base
   bg[NORMAL]   = @@COLPREFIX@_base
   base[NORMAL] = @@COLPREFIX@_base
   base[NORMAL] = @@COLPREFIX@_base
}

style "info_message" = "medium_text"
{
   fg[ACTIVE]   = @@COLPREFIX@_contrasting_indicator
   fg[NORMAL]   = @@COLPREFIX@_contrasting_indicator
   bg[ACTIVE]   = @@COLPREFIX@_base
   bg[NORMAL]   = @@COLPREFIX@_base
   base[NORMAL] = @@COLPREFIX@_base
   base[NORMAL] = @@COLPREFIX@_base
}

style "warning_message" = "medium_text"
{
   fg[ACTIVE] = @@COLPREFIX@_bright_color
   fg[NORMAL] = @@COLPREFIX@_bright_color
   bg[ACTIVE]   = @@COLPREFIX@_base
   bg[NORMAL]   = @@COLPREFIX@_base
   base[NORMAL] = @@COLPREFIX@_base
   base[NORMAL] = @@COLPREFIX@_base
}

style "medium_entry" = "medium_text"
{
	fg[NORMAL] = @@COLPREFIX@_text
	fg[ACTIVE] = @@COLPREFIX@_contrasting_indicator
	fg[SELECTED] = @@COLPREFIX@_fg_selected

	text[NORMAL] = @@COLPREFIX@_text
	text[ACTIVE] = @@COLPREFIX@_text
	text[SELECTED] = @@COLPREFIX@_fg_selected

	bg[NORMAL] = @@COLPREFIX@_base
	bg[SELECTED] = @@COLPREFIX@_base
	bg[SELECTED] = @@COLPREFIX@_bg_selected

	base[NORMAL] = @@COLPREFIX@_base
	base[ACTIVE] = @@COLPREFIX@_base
	base[SELECTED] = @@COLPREFIX@_bg_selected
}

style "medium_entry_noselection_fg" = "medium_entry"
{
        # this seems wrong to me, but the light theme uses it
	fg[SELECTED] = @@COLPREFIX@_contrasting_indicator
}

style "medium_entry_noselection_bg" = "medium_entry"
{
        # this seems wrong to me, but the light theme uses it
	bg[SELECTED] = @@COLPREFIX@_text
}

style "medium_bold_entry"  = "medium_bold_text"
{
	fg[NORMAL] = @@COLPREFIX@_text
	fg[ACTIVE] = @@COLPREFIX@_contrasting_indicator
	fg[SELECTED] = @@COLPREFIX@_fg_selected
	
	text[NORMAL] = @@COLPREFIX@_text
	text[ACTIVE] = @@COLPREFIX@_text
	text[SELECTED] = @@COLPREFIX@_fg_selected

	bg[NORMAL] = @@COLPREFIX@_base
	bg[SELECTED] = @@COLPREFIX@_base
	bg[SELECTED] = @@COLPREFIX@_base
	
	base[NORMAL] = @@COLPREFIX@_base
	base[ACTIVE] = @@COLPREFIX@_base
	base[SELECTED] = @@COLPREFIX@_bg_selected
}

style "small_entry" = "small_text"
{
	fg[NORMAL] = @@COLPREFIX@_text
	fg[ACTIVE] = @@COLPREFIX@_contrasting_indicator
	fg[SELECTED] = @@COLPREFIX@_fg_selected

	text[NORMAL] = @@COLPREFIX@_text
	text[ACTIVE] = @@COLPREFIX@_text
	text[SELECTED] = @@COLPREFIX@_fg_selected

	bg[NORMAL] = @@COLPREFIX@_base
	bg[SELECTED] = @@COLPREFIX@_base
	bg[SELECTED] = @@COLPREFIX@_bg_selected

	base[NORMAL] = @@COLPREFIX@_base
	base[ACTIVE] = @@COLPREFIX@_base
	base[SELECTED] = @@COLPREFIX@_bg_selected
}

style "red_active_small_entry" = "small_entry"
{
	fg[ACTIVE] = @@COLPREFIX@_bright_indicator
	fg[SELECTED] = @@COLPREFIX@_bright_indicator
}

style "small_bold_entry" = "small_bold_text"
{
	fg[NORMAL] = @@COLPREFIX@_text
	fg[ACTIVE] = @@COLPREFIX@_contrasting_indicator
	fg[SELECTED] = @@COLPREFIX@_fg_selected

	text[NORMAL] = @@COLPREFIX@_text
	text[ACTIVE] = @@COLPREFIX@_text
	text[SELECTED] = @@COLPREFIX@_fg_selected

	bg[NORMAL] = @@COLPREFIX@_base
	bg[SELECTED] = @@COLPREFIX@_base
	bg[SELECTED] = @@COLPREFIX@_bg_selected

	base[NORMAL] = @@COLPREFIX@_base
	base[ACTIVE] = @@COLPREFIX@_base
	base[SELECTED] = @@COLPREFIX@_bg_selected
}

style "small_red_on_black_entry"  = "small_bold_text"
{
       fg[NORMAL] = @@COLPREFIX@_bright_indicator
       fg[ACTIVE] = @@COLPREFIX@_bright_indicator
       base[NORMAL] = @@COLPREFIX@_base
       base[ACTIVE] = @@COLPREFIX@_base
       bg[NORMAL] = @@COLPREFIX@_base
       bg[ACTIVE] = @@COLPREFIX@_base
}

style "editor_time_ruler" = "small_text"
{
	fg[NORMAL] = @@COLPREFIX@_fg
	bg[NORMAL] = @@COLPREFIX@_base
        ythickness = 0
}

style "audio_bus_base" = "very_small_text"
{
  fg[NORMAL] = @@COLPREFIX@_fg
  bg[NORMAL] = @@COLPREFIX@_audio_bus
  bg[ACTIVE] = @@COLPREFIX@_bg
}

style "send_strip_base" = "default"
{
  font_name = "@FONT_SMALLER@"
  # NORMAL is used for single-data type labels, or Audio
  # ACTIVE is used for MIDI in the presence of multiple data type
  fg[NORMAL] = @@COLPREFIX@_send_fg
  fg[ACTIVE] = darker(@@COLPREFIX@_fg)

  bg[NORMAL] = @@COLPREFIX@_send_bg
  bg[ACTIVE] = @@COLPREFIX@_send_bg
  bg[PRELIGHT] = @@COLPREFIX@_send_bg
  bg[INSENSITIVE] = @@COLPREFIX@_send_bg
  bg[SELECTED] = @@COLPREFIX@_send_bg
}

style "audio_track_base" = "default"
{
  font_name = "@FONT_SMALLER@"
  # NORMAL is used for single-data type labels, or Audio
  # ACTIVE is used for MIDI in the presence of multiple data type
  fg[NORMAL] = @@COLPREFIX@_fg
  fg[ACTIVE] = darker(@@COLPREFIX@_fg)

  bg[NORMAL] = @@COLPREFIX@_audio_track
  bg[ACTIVE] = @@COLPREFIX@_bg
  bg[PRELIGHT] = @@COLPREFIX@_bg
  bg[INSENSITIVE] = @@COLPREFIX@_bg
  bg[SELECTED] = @@COLPREFIX@_bg
}

style "midi_track_base" = "default"
{
  font_name = "@FONT_SMALLER@"
  # NORMAL is used for single-data type labels, or Audio
  # ACTIVE is used for MIDI in the presence of multiple data type
  fg[NORMAL] = @@COLPREFIX@_fg
  fg[ACTIVE] = darker(@@COLPREFIX@_fg)

  bg[NORMAL] = @@COLPREFIX@_midi_track
  bg[ACTIVE] = @@COLPREFIX@_bg
  bg[PRELIGHT] = @@COLPREFIX@_bg
  bg[INSENSITIVE] = @@COLPREFIX@_bg
  bg[SELECTED] = @@COLPREFIX@_bg
}

style "audio_track_metrics" = "audio_track_base"
{
	font_name = "@FONT_TINY@"
}

style "midi_track_metrics" = "midi_track_base"
{
	font_name = "@FONT_TINY@"
}

style "audiomidi_track_metrics" = "midi_track_base"
{
	font_name = "@FONT_TINY@"
}

style "audio_bus_metrics" = "audio_bus_base"
{
	font_name = "@FONT_TINY@"
}

style "audio_track_metrics_inactive" = "track_controls_inactive"
{
	font_name = "@FONT_TINY@"
}

style "midi_track_metrics_inactive" = "track_controls_inactive"
{
	font_name = "@FONT_TINY@"
}

style "audiomidi_track_metrics_inactive" = "track_controls_inactive"
{
	font_name = "@FONT_TINY@"
}

style "audio_bus_metrics_inactive" = "track_controls_inactive"
{
	font_name = "@FONT_TINY@"
}

style "track_name_display" = "medium_text"
{
	fg[NORMAL] = @@COLPREFIX@_fg
	fg[ACTIVE] = @@COLPREFIX@_fg
	fg[SELECTED] = @@COLPREFIX@_fg

	text[NORMAL] = @@COLPREFIX@_fg
	text[ACTIVE] = @@COLPREFIX@_fg
	text[SELECTED] = @@COLPREFIX@_fg

	base[NORMAL] = @@COLPREFIX@_base
	base[ACTIVE] = lighter(@@COLPREFIX@_base)
        base[SELECTED] = @@COLPREFIX@_bg_selected

	bg[NORMAL] = lighter(@@COLPREFIX@_base)
	bg[ACTIVE] = lighter(@@COLPREFIX@_base)
	bg[SELECTED] = lighter(@@COLPREFIX@_base)
}

style "track_separator"
{
	bg[NORMAL] = lighter(@@COLPREFIX@_bg)
}

# Plugin Editors
style "plugin_slider" 
{
	#font_name ="bold @FONT_BIG@"

	# the slider itself. the inactive part is INSENSITIVE,
	# the active part is taken from some other state.

	fg[NORMAL] = @@COLPREFIX@_bright_color
	fg[ACTIVE] = @@COLPREFIX@_bright_color
	fg[INSENSITIVE] = @@COLPREFIX@_lightest # matches default
	fg[SELECTED] = @@COLPREFIX@_bright_color
	fg[PRELIGHT] = @@COLPREFIX@_bright_color

	# draws the outer rectangle around the slider

	bg[NORMAL] = shade (0.6, @@COLPREFIX@_lightest)
	bg[ACTIVE] = shade (0.6, @@COLPREFIX@_lightest)
	bg[INSENSITIVE] = shade (0.6, @@COLPREFIX@_lightest)
	bg[SELECTED] = shade (0.6, @@COLPREFIX@_lightest)
	bg[PRELIGHT] = shade (0.6, @@COLPREFIX@_lightest)

	# the numeric display

	text[NORMAL] = @@COLPREFIX@_text
	text[ACTIVE] = @@COLPREFIX@_text
	text[INSENSITIVE] = @@COLPREFIX@_text
	text[SELECTED] = @@COLPREFIX@_text
	text[PRELIGHT] = @@COLPREFIX@_text
}

style "track_list_display" = "small_bold_text"
{
 	text[NORMAL] = @@COLPREFIX@_text
  text[ACTIVE] = darker(@@COLPREFIX@_text)
  text[INSENSITIVE] = @@COLPREFIX@_base
  text[SELECTED] = @@COLPREFIX@_fg_selected

  base[NORMAL] = @@COLPREFIX@_base
  base[ACTIVE] = lighter(@@COLPREFIX@_base)
  base[INSENSITIVE] = darker(@@COLPREFIX@_base)
  base[SELECTED] = @@COLPREFIX@_bg_selected
}

style "inspector_track_list_display" = "track_list_display"
{

}

style "processor_list" = "very_small_text"
{
	bg[NORMAL] = @@COLPREFIX@_darkest
        bg[ACTIVE] = shade (1.8, @@COLPREFIX@_fg_selected)
        fg[ACTIVE] = @@COLPREFIX@_darkest
}

# Colour of a processor frame when it is a send whose level is being controller by the fader
style "processor_frame_active_send"
{
	bg[NORMAL] = @@COLPREFIX@_send_fg
}

# MixerPanZone:
#
# the NORMAL fg color is used for the pan puck
# the ACTIVE fg color is used for the speaker boxes

style "pan_zone" = "default"
{
	fg[NORMAL] = @@COLPREFIX@_contrasting_indicator
	fg[ACTIVE] = darker(@@COLPREFIX@_bright_color)
}

style "paler_bright_when_active" = "medium_text"
{
	fg[NORMAL] = @@COLPREFIX@_fg
	fg[PRELIGHT] = @@COLPREFIX@_fg
	bg[NORMAL] = @@COLPREFIX@_bg
	bg[PRELIGHT] = @@COLPREFIX@_bg

	fg[ACTIVE] = @@COLPREFIX@_fg
	bg[ACTIVE] = lighter(@@COLPREFIX@_bright_indicator)
}

style "peak_display_peaked_entry" = "small_text"
{
	fg[NORMAL] = @@COLPREFIX@_text
	fg[ACTIVE] = @@COLPREFIX@_text
	fg[SELECTED] = @@COLPREFIX@_text
	text[NORMAL] = @@COLPREFIX@_text
	text[ACTIVE] = @@COLPREFIX@_text
	text[SELECTED] = @@COLPREFIX@_text

        bg[NORMAL] = @@COLPREFIX@_bright_indicator
        bg[ACTIVE] = @@COLPREFIX@_bright_indicator
        bg[PRELIGHT] = @@COLPREFIX@_bright_indicator
        bg[INSENSITIVE] = @@COLPREFIX@_bright_indicator
        bg[SELECTED] = @@COLPREFIX@_bright_indicator
        base[NORMAL] = @@COLPREFIX@_bright_indicator
        base[ACTIVE] = @@COLPREFIX@_bright_indicator
        base[PRELIGHT] = @@COLPREFIX@_bright_indicator
        base[INSENSITIVE] = @@COLPREFIX@_bright_indicator
        base[SELECTED] = @@COLPREFIX@_bright_indicator
}

style "selected_strip_frame"
{
	fg[NORMAL] = @@COLPREFIX@_bright_indicator
	bg[NORMAL] = darker(@@COLPREFIX@_bright_indicator)
}

style "flashing_alert" = "very_small_text"
{
	GtkButton::child-displacement-x = 0
        GtkButton::child-displacement-y = 0
  
        fg[NORMAL] = darker(@@COLPREFIX@_fg)
        fg[PRELIGHT] = darker(@@COLPREFIX@_fg)
        bg[NORMAL] = mix(0.1,@@COLPREFIX@_bright_indicator,darker(@@COLPREFIX@_bg))
        bg[PRELIGHT] = mix(0.1,@@COLPREFIX@_bright_indicator,darker(@@COLPREFIX@_bg))
        
	fg[ACTIVE] = @@COLPREFIX@_fg
	bg[ACTIVE] = @@COLPREFIX@_bright_indicator
}


style "green_flashing_alert" = "very_small_text"
{
	GtkButton::child-displacement-x = 0
        GtkButton::child-displacement-y = 0

	fg[NORMAL] = darker(@@COLPREFIX@_fg)
        fg[PRELIGHT] = darker(@@COLPREFIX@_fg)
	bg[NORMAL] = mix(0.1,@@COLPREFIX@_contrasting_indicator,darker(@@COLPREFIX@_bg))
        bg[PRELIGHT] = mix(0.1,@@COLPREFIX@_contrasting_indicator,darker(@@COLPREFIX@_bg))

	fg[ACTIVE] = @@COLPREFIX@_fg
	bg[ACTIVE] = @@COLPREFIX@_contrasting_indicator
}

style "sync_alert"
{
	#
	# this is used when the sync button is indicating that sync is
	# active, and alternates with another style if sync is active
	# but we are not locked
	#
	bg[ACTIVE] = @@COLPREFIX@_somewhat_bright_indicator
	bg[PRELIGHT] = @@COLPREFIX@_somewhat_bright_indicator
	bg[SELECTED] = @@COLPREFIX@_somewhat_bright_indicator
	bg[NORMAL] = @@COLPREFIX@_somewhat_bright_indicator
	
	fg[NORMAL] = @@COLPREFIX@_darkest
	fg[PRELIGHT] = @@COLPREFIX@_darkest
	fg[SELECTED] = @@COLPREFIX@_darkest
	fg[ACTIVE] = @@COLPREFIX@_darkest
}

style "tearoff_arrow" = "medium_bold_entry"
{
	fg[NORMAL] = darker(@@COLPREFIX@_fg)
	fg[PRELIGHT] = darker(@@COLPREFIX@_fg)
	bg[NORMAL] = darker(@@COLPREFIX@_fg)
	bg[PRELIGHT] = darker(@@COLPREFIX@_fg)
}

style "location_row_button" = "default_button"
{
	font_name = "@FONT_NORMAL@"
}


style "ardour_button" ="default_button"
{
	xthickness = 1
	ythickness = 1
}

style "padded_button" = "default_button"
{
	xthickness = 8
}

style "tooltip" = "medium_text"
{
        fg[NORMAL] = @@COLPREFIX@_fg_tooltip
        bg[NORMAL] = @@COLPREFIX@_bg_tooltip
}

style "default_toggle_button"
{
	bg[ACTIVE] = @@COLPREFIX@_contrasting_indicator
	fg[ACTIVE] = @@COLPREFIX@_darkest
}


style "meter_strip_dpm" = "default"
{
}

style "meter_strip_ppm" = "default"
{
  bg[NORMAL] = { 0.1, 0.1, 0.1 }
  fg[NORMAL] = { 1.0, 1.0, 1.0 }
}

style "meter_strip_vu" = "default"
{
  bg[NORMAL] = { .84, .77, .58 }
  fg[NORMAL] = { 0.0, 0.0, 0.0 }
}

style "meter_strip_sep" = "default"
{
  bg[NORMAL] = { 0.0, 0.0, 0.0 }
}

style "settings_notebook" = "big_text"
{

}
