Commit 838c511
Remove tool images
Changed files (11)
deletedicons/add_new_grid.pngdeletedicons/available_characters.pngdeletedicons/custom_character_set.pngdeletedicons/delete_background.pngdeletedicons/delete_button.pngdeletedicons/delete_selected_glyph.pngdeletedicons/insert_background.pngmodifiedlibbirdfont/DrawingTools.valamodifiedlibbirdfont/Glyph.valamodifiedlibbirdfont/TabBar.valamodifiedlibbirdfont/Tool.vala
Diff
deleted file mode 100644Binary files a/icons/add_new_grid.png and /dev/null differdeleted file mode 100644Binary files a/icons/available_characters.png and /dev/null differdeleted file mode 100644Binary files a/icons/custom_character_set.png and /dev/null differdeleted file mode 100644Binary files a/icons/delete_background.png and /dev/null differdeleted file mode 100644Binary files a/icons/delete_button.png and /dev/null differdeleted file mode 100644Binary files a/icons/delete_selected_glyph.png and /dev/null differdeleted file mode 100644Binary files a/icons/insert_background.png and /dev/null differ@@ -100,7 +100,7 @@ public class DrawingTools : ToolCollection { background_scale = new SpinButton (); draw_tools = new Expander (t_("Drawing Tools"));- draw_tool_modifiers = new Expander (t_("Control Point Tools"));+ draw_tool_modifiers = new Expander (t_("Control Point")); shape_tools = new Expander (t_("Geometrical Shapes")); zoombar_tool = new Expander (t_("Zoom")); view_tools = new Expander ();@@ -1532,7 +1532,7 @@ public class Glyph : FontDisplay { private void draw_zoom_area(Context cr) { cr.save (); cr.set_line_width (2.0);- Theme.color (cr, "Foreground 3");+ Theme.color (cr, "Foreground 4"); cr.rectangle (Math.fmin (zoom_x1, zoom_x2), Math.fmin (zoom_y1, zoom_y2), Math.fabs (zoom_x1 - zoom_x2), Math.fabs (zoom_y1 - zoom_y2)); cr.stroke (); cr.restore ();@@ -737,7 +737,7 @@ public class TabBar : GLib.Object { cr.restore (); } else if (tab_index == over) { cr.save ();- Theme.color (cr, "Backgrund 7");+ Theme.color (cr, "Background 7"); cr.rectangle (0, 0, tab_width, h); cr.fill (); cr.restore (); @@ -70,11 +70,6 @@ public class Tool : Widget { public uint modifier_flag; public unichar key; - private static ImageSurface? selected_button = null;- private static ImageSurface? active_selected_button = null;- private static ImageSurface? deselected_button = null;- private static ImageSurface? active_deselected_button = null;- public bool persistent = false; public bool editor_events = false; @@ -90,13 +85,6 @@ public class Tool : Widget { scale = w / 111.0; // scale to 320 dpi - if (selected_button == null) {- selected_button = Icons.get_icon ("tool_button_selected.png");- active_selected_button = Icons.get_icon ("tool_button_selected_active.png");- deselected_button = Icons.get_icon ("tool_button_deselected.png");- active_deselected_button = Icons.get_icon ("tool_button_deselected_active.png");- }- if (name != null) { set_icon ((!) name); this.name = (!) name;@@ -251,8 +239,8 @@ public class Tool : Widget { double bgx, bgy; double iconx, icony; - string border = "Foreground 1";- string background = "Background 1";+ string border = "Tool Border 3";+ string background = "Tool Border 3"; cr.save (); @@ -267,22 +255,22 @@ public class Tool : Widget { bgy = yt / scale; // Button in four states- if (selected && selected_button != null) {+ if (selected) { border = "Tool Border 1"; background = "Tool Background 1"; } - if (selected && active && active_selected_button != null) {+ if (selected && active) { border = "Tool Border 2"; background = "Tool Background 2"; } - if (!selected && deselected_button != null) {+ if (!selected) { border = "Tool Border 3"; background = "Tool Background 3"; } - if (!selected && active && active_deselected_button != null) {+ if (!selected && active) { border = "Tool Border 4"; background = "Tool Background 4"; }