예제 #1
0
        protected override void OnStyleSet(Gtk.Style style)
        {
            base.OnStyleSet(style);

            fill_color_a = DrawingUtilities.GdkColorToCairoColor(Style.Background(StateType.Normal));

            var c = FileFind.Meshwork.GtkClient.GtkHelper.DarkenColor(Style.Background(StateType.Normal), 1);

            fill_color_b = DrawingUtilities.GdkColorToCairoColor(c);
        }
예제 #2
0
            private void RefreshGC()
            {
                if (text_window == null)
                {
                    return;
                }

                text_gc = new Gdk.GC(text_window);
                text_gc.Copy(Style.TextGC(StateType.Normal));
                Gdk.Color color_a = parent.Style.Foreground(StateType.Normal);
                Gdk.Color color_b = parent.Style.Background(StateType.Normal);
                text_gc.RgbFgColor = DrawingUtilities.ColorBlend(color_a, color_b, 0.5);
            }