Example #1
0
        public CameraView()
        {
            this.Build();

            devicelistStore = new Gtk.ListStore(typeof(string), typeof(IDevice));
            CellRendererText ct = new CellRendererText();


            source_box.PackStart(ct, false);
            source_box.AddAttribute(ct, "text", 0);
            source_box.Model = devicelistStore;

            textColor = new Gdk.Color();
            bgColor   = new Gdk.Color();

            Gdk.Color.Parse("white", ref textColor);
            Gdk.Color.Parse("black", ref bgColor);

            bgstats.ModifyBg(StateType.Normal, bgColor);
            bgstats.ModifyBase(StateType.Normal, bgColor);

            IPaddresLabel.ModifyBase(StateType.Normal, bgColor);
            IPaddresLabel.ModifyBg(StateType.Normal, bgColor);
            IPaddresLabel.ModifyFg(StateType.Normal, textColor);

            NameLabel.ModifyFg(StateType.Normal, textColor);
            FpsLabel.ModifyFg(StateType.Normal, textColor);
            DriverLabel.ModifyFg(StateType.Normal, textColor);

            timer = new Stopwatch();
            timer.Start();
        }