Clone in a terminal:
Commit 9806335
Johan Mattsson - 2015-06-09T11:24:11+00:00
9806335378792cee5791d2b07105dff505217cdejohan.mattsson.m@gmail.com

Theme toolbox

Changed files (1)

Diff

diff --git a/libbirdfont/ThemeTools.vala b/libbirdfont/ThemeTools.valanew file mode 100644index 0000000..d6dc709--- /dev/null+++ b/libbirdfont/ThemeTools.vala@@ -0,0 +1,53 @@+/*+    Copyright (C) 2015 Johan Mattsson++    This library is free software; you can redistribute it and/or modify +    it under the terms of the GNU Lesser General Public License as +    published by the Free Software Foundation; either version 3 of the +    License, or (at your option) any later version.++    This library is distributed in the hope that it will be useful, but +    WITHOUT ANY WARRANTY; without even the implied warranty of +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +    Lesser General Public License for more details.+*/++using Cairo;+using Math;++namespace BirdFont {++public class ThemeTools : ToolCollection  {+	public static Gee.ArrayList<Expander> expanders;+	public static ColorPicker color_picker;++	public ThemeTools () {+		expanders = new Gee.ArrayList<Expander> ();++		Expander font_name = new Expander ();+		font_name.add_tool (new FontName ());++		Expander color_tools = new Expander (t_("Color"));+		color_picker = new ColorPicker ();+		+		color_picker.color_updated.connect (() => {+			ThemeTab.get_instance ().color_updated (color_picker.get_color ());+		});+		+		color_tools.add_tool (color_picker);+		+		expanders.add (font_name);					+		expanders.add (color_tools);+	}++	public override Gee.ArrayList<string> get_displays () {+		Gee.ArrayList<string> d = new Gee.ArrayList<string> ();+		return d;+	}+	+	public override Gee.ArrayList<Expander> get_expanders () {+		return expanders;+	}+}++}

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112