Clone in a terminal:
Commit 31ecbc4
Johan Mattsson - 2015-03-17T14:20:21+00:00
31ecbc4883e83b5b1478b4ddd5257c2190d879abjohan.mattsson.m@gmail.com

Foreground color in tables and events for spin buttons in settings tab

Changed files (4)

Diff

diff --git a/libbirdfont/KerningList.vala b/libbirdfont/KerningList.valaindex 692e971..856fe60 100644--- a/libbirdfont/KerningList.vala+++ b/libbirdfont/KerningList.vala@@ -105,6 +105,7 @@ public class KerningList : FontDisplay { 		 		// remove kerning icon 		cr.save ();+		Theme.color (cr, "Foreground 1"); 		cr.set_line_width (1); 		cr.move_to (10, y - 8); 		cr.line_to (15, y - 3);@@ -113,6 +114,7 @@ public class KerningList : FontDisplay { 		cr.stroke (); 		cr.restore (); 		+		Theme.color (cr, "Foreground 1"); 		cr.move_to (60, y); 		cr.show_text (left); 		cr.move_to (230, y);diff --git a/libbirdfont/SettingsDisplay.vala b/libbirdfont/SettingsDisplay.valaindex 816eb86..fd8ac47 100644--- a/libbirdfont/SettingsDisplay.vala+++ b/libbirdfont/SettingsDisplay.vala@@ -1,5 +1,5 @@ /*-    Copyright (C) 2014 Johan Mattsson+    Copyright (C) 2014 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 @@ -344,6 +344,8 @@ public class SettingsDisplay : FontDisplay { 				if (((!) s.button).is_over (x, y) || ((!) s.button).is_active ()) { 					((!) s.button).panel_release_action ((!) s.button, button, x, y); 				}+				+				((!) s.button).panel_release_action (((!) s.button), button, x, y); 			} 			 			if (s.key_bindings && s.y <= y < s.y + 40 * MainWindow.units && button == 1) {diff --git a/libbirdfont/TabBar.vala b/libbirdfont/TabBar.valaindex e0a7304..aa82ba8 100644--- a/libbirdfont/TabBar.vala+++ b/libbirdfont/TabBar.vala@@ -730,7 +730,7 @@ public class TabBar : GLib.Object { 		} 		 		if (has_scroll ()) {-			tabs_end -= 32 / scale;+			tabs_end -= 60 / scale; 			offset = 24 / scale; 		} else { 			offset = 0;diff --git a/libbirdfont/Table.vala b/libbirdfont/Table.valaindex f616bf4..dfe163b 100644--- a/libbirdfont/Table.vala+++ b/libbirdfont/Table.vala@@ -78,6 +78,7 @@ public abstract class Table : FontDisplay {  		if (row.has_delete_button ()) { 			cr.save ();+			Theme.color (cr, "Foreground 1"); 			cr.set_line_width (1); 			cr.move_to (10 * MainWindow.units, y - 8 * MainWindow.units); 			cr.line_to (15 * MainWindow.units, y - 3 * MainWindow.units);@@ -89,6 +90,7 @@ public abstract class Table : FontDisplay { 		 		for (int i = 0; i < row.columns; i++) { 			cr.save ();+			Theme.color (cr, "Foreground 1"); 			margin = (row.has_delete_button ()) ? 120 * MainWindow.units : 3* MainWindow.units; 			cr.move_to (margin + i * 120 * MainWindow.units, y); 			cr.set_font_size (12 * MainWindow.units);

Contact

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