예제 #1
0
 public override void UpdateFromGtkStyle(Gtk.Style style)
 {
     this.selectionStyle   = new ChunkStyle(style.Text(StateType.Selected), style.Base(StateType.Selected));
     this.defaultStyle     = new ChunkStyle(style.Text(StateType.Normal), style.Base(StateType.Normal));
     this.lineNumberStyle  = new ChunkStyle(new Gdk.Color(172, 168, 153), style.Base(StateType.Normal));
     this.iconBarBg        = ToCairoColor(style.Background(StateType.Normal));
     this.iconBarSeperator = ToCairoColor(style.Background(StateType.Active));
 }
예제 #2
0
    public static Gdk.Color GetBackgroundColorSelected()
    {
        Gtk.Style regularLabel = Gtk.Rc.GetStyle(new Gtk.Label());

        return(regularLabel.Background(StateType.Selected));
    }